Skip to content

Commit 5309a2a

Browse files
authored
Merge branch 'master' into listener_clnt_m5stickc_update
2 parents ad0b333 + f8c9387 commit 5309a2a

File tree

109 files changed

+44822
-36857
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+44822
-36857
lines changed

Diff for: .github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# These are supported funding model platforms
22

3-
github: #
3+
github: josephdadams #
44
patreon: # Replace with a single Patreon username
55
open_collective: # Replace with a single Open Collective username
66
ko_fi: # Replace with a single Ko-fi username

Diff for: .github/codeql/codeql-config.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: "TallyArbiter CodeQL Scanning"
2+
3+
paths-ignore:
4+
- node_modules
5+
- ui-dist
6+
- '**/*.test.js'

Diff for: .github/workflows/build-listener-clients.yaml

+35-26
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
11
name: Build Listener Clients
22

3-
on: [push, workflow_dispatch]
3+
on:
4+
push:
5+
paths:
6+
- 'listener_clients/**'
7+
- '.github/workflows/build-listener-clients.yaml'
8+
pull_request:
9+
paths:
10+
- 'listener_clients/**'
11+
- '.github/workflows/build-listener-clients.yaml'
12+
workflow_dispatch:
413

514
jobs:
615
build_m5stickc-listener:
716
name: Build M5StickC Listener
817
runs-on: ubuntu-latest
918
steps:
10-
- uses: actions/checkout@v1
19+
- uses: actions/checkout@v4
1120
- uses: arduino/compile-sketches@v1
1221
with:
1322
platforms: |
1423
- name: esp32:esp32
1524
source-url: https://dl.espressif.com/dl/package_esp32_index.json
1625
fqbn: 'esp32:esp32:m5stick-c'
1726
libraries: |
18-
- source-url: https://github.com/m5stack/M5StickC/archive/refs/tags/0.2.4.zip
19-
- source-url: https://github.com/m5stack/M5StickC-Plus/archive/refs/tags/0.0.4.zip
27+
- source-url: https://github.com/m5stack/M5StickC/archive/refs/tags/0.2.9.zip
28+
- source-url: https://github.com/m5stack/M5StickC-Plus/archive/refs/tags/0.1.0.zip
2029
- name: WebSockets
2130
- name: WiFiManager
2231
- name: MultiButton
@@ -27,7 +36,7 @@ jobs:
2736
- listener_clients/m5stickc-listener
2837
enable-deltas-report: true
2938
- name: Upload Artifact
30-
uses: actions/upload-artifact@v2
39+
uses: actions/upload-artifact@v3
3140
with:
3241
name: 'TallyArbiter-Listener-M5StickC'
3342
path: 'listener_clients/m5stickc-listener/build/esp32.esp32.m5stick-c'
@@ -36,15 +45,15 @@ jobs:
3645
name: Build M5Atom Listener
3746
runs-on: ubuntu-latest
3847
steps:
39-
- uses: actions/checkout@v1
48+
- uses: actions/checkout@v4
4049
- uses: arduino/compile-sketches@v1
4150
with:
4251
platforms: |
4352
- name: esp32:esp32
4453
source-url: https://dl.espressif.com/dl/package_esp32_index.json
4554
fqbn: 'esp32:esp32:m5stack-atom'
4655
libraries: |
47-
- source-url: https://github.com/m5stack/M5Atom/archive/refs/tags/0.0.6.zip
56+
- source-url: https://github.com/m5stack/M5Atom/archive/refs/tags/0.1.2.zip
4857
- name: WebSockets
4958
- name: WiFiManager
5059
- name: MultiButton
@@ -56,7 +65,7 @@ jobs:
5665
- listener_clients/M5AtomMatrix-listener/tallyarbiter-m5atom
5766
enable-deltas-report: true
5867
- name: Upload Artifact
59-
uses: actions/upload-artifact@v2
68+
uses: actions/upload-artifact@v3
6069
with:
6170
name: 'TallyArbiter-Listener-M5Atom'
6271
path: 'listener_clients/M5AtomMatrix-listener/tallyarbiter-m5atom/build/esp32.esp32.m5stack-atom'
@@ -65,7 +74,7 @@ jobs:
6574
name: Build ESP32 NeoPixel Listener
6675
runs-on: ubuntu-latest
6776
steps:
68-
- uses: actions/checkout@v1
77+
- uses: actions/checkout@v4
6978
- uses: arduino/compile-sketches@v1
7079
with:
7180
platforms: |
@@ -84,7 +93,7 @@ jobs:
8493
- listener_clients/esp32-neopixel-listener
8594
enable-deltas-report: true
8695
- name: Upload Artifact
87-
uses: actions/upload-artifact@v2
96+
uses: actions/upload-artifact@v3
8897
with:
8998
name: 'TallyArbiter-Listener-ESP32-NeoPixel'
9099
path: 'listener_clients/esp32-neopixel-listener/build/esp32.esp32.esp32'
@@ -105,10 +114,10 @@ jobs:
105114
name: Build ${{ matrix.board.name }} Listener
106115
runs-on: ubuntu-latest
107116
steps:
108-
- uses: actions/checkout@v1
117+
- uses: actions/checkout@v4
109118
- name: Setup TFT_eSPI and select User Setup
110119
run: |
111-
git clone https://github.com/Bodmer/TFT_eSPI/
120+
git clone --branch v2.5.33 https://github.com/Bodmer/TFT_eSPI/
112121
cd TFT_eSPI
113122
sed -i 's/#include <User_Setup.h>/\/\/#include <User_Setup.h>/g' User_Setup_Select.h
114123
sed -i 's/\/\/#include <User_Setups\/Setup22_TTGO_T4.h>/#include <User_Setups\/Setup22_TTGO_T4.h>/g' User_Setup_Select.h
@@ -135,7 +144,7 @@ jobs:
135144
FQBN_REPLACED=$(echo $RAW_FQBN | sed 's/:/./g')
136145
echo "FQBN_REPLACED=$FQBN_REPLACED" >> $GITHUB_ENV
137146
- name: Upload Artifact
138-
uses: actions/upload-artifact@v2
147+
uses: actions/upload-artifact@v3
139148
with:
140149
name: 'TallyArbiter-Listener-${{ matrix.board.name }}'
141150
path: 'listener_clients/TTGO_T-listener/build/${{ env.FQBN_REPLACED }}'
@@ -144,7 +153,7 @@ jobs:
144153
name: Analyse Blink1 Listener
145154
runs-on: ubuntu-latest
146155
steps:
147-
- uses: actions/checkout@v1
156+
- uses: actions/checkout@v4
148157
- name: Install prosepector
149158
run: pip install prospector[with_everything]
150159
- name: Analyse
@@ -155,7 +164,7 @@ jobs:
155164
name: Analyse Pimoroni Blinkt Listener
156165
runs-on: ubuntu-latest
157166
steps:
158-
- uses: actions/checkout@v1
167+
- uses: actions/checkout@v4
159168
- name: Install prosepector
160169
run: pip install prospector[with_everything]
161170
- name: Analyse
@@ -166,7 +175,7 @@ jobs:
166175
name: Analyse GPO Listener
167176
runs-on: ubuntu-latest
168177
steps:
169-
- uses: actions/checkout@v1
178+
- uses: actions/checkout@v4
170179
- name: Install prosepector
171180
run: pip install prospector[with_everything]
172181
- name: Analyse
@@ -177,13 +186,13 @@ jobs:
177186
name: Analyse Relay Listener
178187
runs-on: ubuntu-latest
179188
steps:
180-
- uses: actions/checkout@v1
181-
- name: Install dependencies
182-
working-directory: listener_clients/relay-listener
183-
run: |
184-
sudo apt install libudev-dev libusb-1.0-0 libusb-1.0-0-dev
185-
npm install
186-
npm install --global eslint
187-
- name: Run eslint
188-
working-directory: listener_clients/relay-listener
189-
run: eslint index.js || exit 0
189+
- uses: actions/checkout@v4
190+
#- name: Install dependencies
191+
# working-directory: listener_clients/relay-listener
192+
# run: |
193+
# sudo apt install libudev-dev libusb-1.0-0 libusb-1.0-0-dev
194+
# npm install
195+
# npm install --global eslint
196+
#- name: Run eslint
197+
# working-directory: listener_clients/relay-listener
198+
# run: eslint index.js || exit 0

Diff for: .github/workflows/build.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
name: Build
22

3-
on: [push, workflow_dispatch]
3+
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
build_cli:
77
name: Build CLI on Ubuntu
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v4
1111
- name: Setup Node.js
12-
uses: actions/setup-node@v1
12+
uses: actions/setup-node@v4
1313
with:
14-
node-version: 14
14+
node-version: 20
1515
- name: Install dependencies
16-
run: npm i
16+
run: npm i -f
1717
- name: Create env file
1818
run: |
1919
touch .env
@@ -38,13 +38,13 @@ jobs:
3838
name: Build Docker image on Ubuntu
3939
runs-on: ubuntu-latest
4040
steps:
41-
- uses: actions/checkout@v1
41+
- uses: actions/checkout@v4
4242
- name: Setup Node.js
43-
uses: actions/setup-node@v1
43+
uses: actions/setup-node@v4
4444
with:
45-
node-version: 14
45+
node-version: 20
4646
- name: Install dependencies and build
47-
run: npm i; npm run build
47+
run: npm i -f; npm run build
4848
- name: Set up QEMU
4949
if: startsWith(github.ref, 'refs/tags/v')
5050
uses: docker/setup-qemu-action@master
@@ -99,20 +99,20 @@ jobs:
9999
runs-on: ${{ matrix.os }}
100100
strategy:
101101
matrix:
102-
os: [windows-latest, ubuntu-latest, macos-latest]
102+
os: [windows-2022, ubuntu-latest, macos-latest]
103103
steps:
104-
- uses: actions/checkout@v1
104+
- uses: actions/checkout@v4
105105
- name: Setup Node.js
106-
uses: actions/setup-node@v1
106+
uses: actions/setup-node@v4
107107
with:
108-
node-version: 14
108+
node-version: 20
109109
- name: Create env file
110110
run: |
111111
touch .env
112112
echo SENTRY_ENABLED=1 >> .env
113113
echo SENTRY_DSN=${{ secrets.SENTRY_DSN }} >> .env
114114
- name: Install dependencies and build
115-
run: npm i; npm run build
115+
run: npm i -f; npm run build
116116
- name: Build
117117
uses: samuelmeuli/[email protected]
118118
with:

Diff for: .github/workflows/codeql-analysis.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
language: [ 'javascript' ]
23+
language: [ 'javascript', 'python' ]
2424

2525
steps:
2626
- name: Checkout repository
@@ -29,6 +29,7 @@ jobs:
2929
- name: Initialize CodeQL
3030
uses: github/codeql-action/init@v1
3131
with:
32+
config-file: ./.github/codeql/codeql-config.yml
3233
languages: ${{ matrix.language }}
3334

3435
- name: Setup Node.js
@@ -37,7 +38,7 @@ jobs:
3738
node-version: 14
3839

3940
- name: Install dependencies
40-
run: npm i
41+
run: npm i -f
4142

4243
- name: Perform CodeQL Analysis
4344
uses: github/codeql-action/analyze@v1
@@ -57,19 +58,14 @@ jobs:
5758
- name: Checkout repository
5859
uses: actions/checkout@v2
5960

60-
- name: Initialize CodeQL
61-
uses: github/codeql-action/init@v1
62-
with:
63-
languages: ${{ matrix.language }}
64-
6561
- name: Setup Node.js
6662
uses: actions/setup-node@v1
6763
with:
68-
node-version: 14
64+
node-version: 18
6965

7066
- name: Install dependencies and build
7167
run: |
72-
npm i
68+
npm i -f
7369
npm run build; cd UI; npm run build
7470
7571
- name: Build an image from Dockerfile

Diff for: .github/workflows/welcome-first-time-contributor.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ jobs:
2020
2121
Welcome to TallyArbiter!
2222
23-
Thank you for opening your first issue for the Tally Arbiter project. TallyArbiter fosters an open and welcoming environment for all our contributors. Please adhere to our [Code Of Conduct](https://github.com/josephdadams/TallyArbiter/blob/master/CODE_OF_CONDUCT.md).
23+
Thank you for opening your first issue for the Tally Arbiter project. Tally Arbiter fosters an open and welcoming environment for all our contributors. Please adhere to our [Code Of Conduct](https://github.com/josephdadams/TallyArbiter/blob/master/CODE_OF_CONDUCT.md).
2424
25-
Incase you want to claim this issue, please comment down below! We will try to get back to you as soon as we can.
26-
27-
Feel free to contact the author or for any other information, please visit [www.techministry.blog](www.techministry.blog). We would love to hear your interesting ideas and engage in discussions.
25+
If you have more to contribute to this issue, please comment down below! We will try to get back to you as soon as we can.
2826
2927
pr-message: |
3028
Hello there ${{ github.actor }} 👋

Diff for: .gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,13 @@ config_relays.json
132132
*.hex
133133
*.hex.bin
134134

135+
# don't include Python listener clients dev files
136+
venv
137+
env
138+
135139
# don't include .DS_Store file and vscode workspace file
136140
.DS_Store
137141
TallyArbiter.code-workspace
142+
143+
# Angular Cache
144+
UI/.angular/cache

Diff for: .gitpod.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
tasks:
2-
- init: npm i -g npm redundancyjs; cd UI; npm i --ignore-scripts; npm run build; cd ..; npm i --ignore-scripts
2+
- name: Server
3+
init: npm i -g npm redundancyjs; cd UI; npm i --ignore-scripts; npm run build; cd ..; npm i --ignore-scripts; npm rebuild bcrypt; gp sync-done server
34
command: npm start
5+
- name: Angular serve
6+
init: gp sync-await server
7+
command: cd UI; npm start
8+
openMode: split-right
49
ports:
510
- port: 4455
6-
onOpen: open-preview
11+
onOpen: notify
12+
visibility: public
13+
- port: 4200
14+
onOpen: notify
15+
visibility: public
716
- port: 8099
817
onOpen: ignore
918
- port: 5958

Diff for: Dockerfile

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ FROM alpine
33
WORKDIR /app
44
COPY package.json package-lock.json dist ./
55
COPY ui-dist /app/ui-dist
6-
RUN apk add --update nodejs npm; npm i --ignore-script --only=prod
6+
RUN apk add --update nodejs npm \
7+
&& apk add --no-cache --virtual .build-deps alpine-sdk python3 \
8+
&& npm install node-gyp -g \
9+
&& npm i --ignore-script --omit=dev \
10+
&& npm uninstall bcrypt \
11+
&& npm install bcrypt \
12+
&& npm uninstall node-gyp -g \
13+
&& apk del .build-deps
714

815
EXPOSE 4455 8099 5958
916
CMD ["node", "index.js"]

Diff for: Dockerfile.standalone

-8
This file was deleted.

0 commit comments

Comments
 (0)