Skip to content

Commit 24c0921

Browse files
authored
v4 (#5)
1 parent 0f0b427 commit 24c0921

27 files changed

+2160
-368
lines changed

.github/screenshot1.png

509 KB
Loading

.github/workflows/balena-push.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: balenapush
2+
on:
3+
create:
4+
tags:
5+
- v*
6+
jobs:
7+
balenapush:
8+
name: Push to Balena.io
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
- run: npm install balena-cli -g --production --unsafe-perm
14+
- run: balena login --token ${secrets.BALENA_API_TOKEN}
15+
- run: balena push ${secrets.BALENA_APPLICATION_NAME}
16+
working-directory: ./backend
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on: pull_request
15+
16+
jobs:
17+
analyze:
18+
name: Analyze
19+
runs-on: ubuntu-latest
20+
permissions:
21+
actions: read
22+
contents: read
23+
security-events: write
24+
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
language: [ 'javascript' ]
29+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
30+
# Learn more:
31+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
32+
33+
steps:
34+
- name: Checkout repository
35+
uses: actions/checkout@v2
36+
37+
# Initializes the CodeQL tools for scanning.
38+
- name: Initialize CodeQL
39+
uses: github/codeql-action/init@v1
40+
with:
41+
languages: ${{ matrix.language }}
42+
# If you wish to specify custom queries, you can do so here or in a config file.
43+
# By default, queries listed here will override any specified in a config file.
44+
# Prefix the list here with "+" to use these queries and those in the config file.
45+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
46+
47+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
48+
# If this step fails, then you should remove it and run the build manually (see below)
49+
- name: Autobuild
50+
uses: github/codeql-action/autobuild@v1
51+
52+
# ℹ️ Command-line programs to run using the OS shell.
53+
# 📚 https://git.io/JvXDl
54+
55+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
56+
# and modify them (or add more) to build your code if your project
57+
# uses a compiled language
58+
59+
#- run: |
60+
# make bootstrap
61+
# make release
62+
63+
- name: Perform CodeQL Analysis
64+
uses: github/codeql-action/analyze@v1

.gitignore

Lines changed: 3 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,3 @@
1-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
2-
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
3-
4-
# User-specific stuff:
5-
.idea/**/workspace.xml
6-
.idea/**/tasks.xml
7-
.idea/dictionaries
8-
9-
# Sensitive or high-churn files:
10-
.idea/**/dataSources/
11-
.idea/**/dataSources.ids
12-
.idea/**/dataSources.xml
13-
.idea/**/dataSources.local.xml
14-
.idea/**/sqlDataSources.xml
15-
.idea/**/dynamic.xml
16-
.idea/**/uiDesigner.xml
17-
18-
# Gradle:
19-
.idea/**/gradle.xml
20-
.idea/**/libraries
21-
22-
# CMake
23-
cmake-build-debug/
24-
25-
# Mongo Explorer plugin:
26-
.idea/**/mongoSettings.xml
27-
28-
## File-based project format:
29-
*.iws
30-
31-
## Plugin-specific files:
32-
33-
# IntelliJ
34-
/out/
35-
36-
# mpeltonen/sbt-idea plugin
37-
.idea_modules/
38-
39-
# JIRA plugin
40-
atlassian-ide-plugin.xml
41-
42-
# Cursive Clojure plugin
43-
.idea/replstate.xml
44-
45-
# Crashlytics plugin (for Android Studio and IntelliJ)
46-
com_crashlytics_export_strings.xml
47-
crashlytics.properties
48-
crashlytics-build.properties
49-
fabric.properties
50-
51-
.idea
1+
.idea
2+
.vscode
3+
**/node_modules/**

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
weather.port-tides.com

Dockerfile.template

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian-node:15.10-buster
2+
3+
RUN install_packages gcc g++ python3 udev build-essential
4+
ENV UDEV=1
5+
6+
WORKDIR /usr/src/app
7+
COPY package.json ./package.json
8+
COPY package-lock.json ./package-lock.json
9+
RUN npm ci --only=production
10+
11+
COPY src/ ./
12+
13+
ENV NODE_ENV=production
14+
CMD ["node", "/usr/src/app/main.js"]

InternetAndPowerMonitoring/Dockerfile.template

Lines changed: 0 additions & 14 deletions
This file was deleted.

InternetAndPowerMonitoring/index.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

InternetAndPowerMonitoring/index.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

InternetAndPowerMonitoring/main.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)