Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System Bridge 3.0.0 - Stage 1 #1529

Merged
merged 166 commits into from
Apr 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
44b40b3
Clean slate
timmo001 Apr 17, 2022
b9256b5
Renames
timmo001 Apr 17, 2022
f747ea7
Fix
timmo001 Apr 17, 2022
be81123
Renames
timmo001 Apr 17, 2022
735f3f5
Rename
timmo001 Apr 17, 2022
25fa5a0
Rename
timmo001 Apr 17, 2022
6bff4dd
Setup
timmo001 Apr 17, 2022
9a1870e
CPU module
timmo001 Apr 17, 2022
822515c
Output to DB
timmo001 Apr 17, 2022
f419841
To JSON
timmo001 Apr 17, 2022
c397994
Cleanup
timmo001 Apr 17, 2022
f21914a
Update module
timmo001 Apr 17, 2022
b5779bd
Base to init
timmo001 Apr 17, 2022
d293012
Cleanup logs
timmo001 Apr 17, 2022
df89cc8
DB with params
timmo001 Apr 17, 2022
7d30a69
Cleanup
timmo001 Apr 17, 2022
39639e4
API
timmo001 Apr 17, 2022
4cba46c
Setup handlers in same class
timmo001 Apr 17, 2022
f303184
Generic handlers
timmo001 Apr 17, 2022
02c287d
Memory class
timmo001 Apr 17, 2022
bf16a17
Disk
timmo001 Apr 17, 2022
9177dbb
Network
timmo001 Apr 17, 2022
c63e41c
Add
timmo001 Apr 17, 2022
cdad0c8
Fix
timmo001 Apr 17, 2022
5d8ecf5
Formatting
timmo001 Apr 17, 2022
72a0414
Fix link and remove obsolete dev docs
timmo001 Apr 17, 2022
a61b153
Remove PR template link
timmo001 Apr 17, 2022
cfa36e3
Data API
timmo001 Apr 17, 2022
a27a18e
Open endpoint
timmo001 Apr 17, 2022
8d302e2
Notificaiton
timmo001 Apr 17, 2022
3deba21
Battery
timmo001 Apr 17, 2022
64c8179
Update
timmo001 Apr 17, 2022
7427917
png if not windows
timmo001 Apr 17, 2022
3e14487
Format
timmo001 Apr 17, 2022
94626a3
Add missing package
timmo001 Apr 18, 2022
1087730
Rename
timmo001 Apr 18, 2022
46eff29
Check data is an implemented module
timmo001 Apr 18, 2022
b888963
Initial auth
timmo001 Apr 18, 2022
1b85cf7
Authentication on all endpoints
timmo001 Apr 18, 2022
ca7953a
Add todo
timmo001 Apr 18, 2022
2cd37ba
Use sanic scheduler to update data
timmo001 Apr 18, 2022
ddef736
Sort
timmo001 Apr 18, 2022
06e5fbd
Sort
timmo001 Apr 18, 2022
fe99e16
Default to info
timmo001 Apr 18, 2022
7c6becd
Split linters
timmo001 Apr 18, 2022
9faeb6c
Add eslint to frontend
timmo001 Apr 18, 2022
9bc44c3
Find version file
timmo001 Apr 18, 2022
e034ca5
Fixes
timmo001 Apr 18, 2022
7758172
Print
timmo001 Apr 18, 2022
c27edcc
ESLint Fixes
timmo001 Apr 18, 2022
0a4c6d1
Print
timmo001 Apr 18, 2022
67acc10
Prettified Code!
timmo001 Apr 18, 2022
9956490
Print
timmo001 Apr 18, 2022
ae01c77
Fix
timmo001 Apr 18, 2022
6857c31
Fix
timmo001 Apr 18, 2022
f9daf02
Move version to package dir
timmo001 Apr 18, 2022
6b3b143
Update
timmo001 Apr 18, 2022
4c45520
Keyboard
timmo001 Apr 18, 2022
a88ae92
Adjust launch config
timmo001 Apr 18, 2022
e4f26a8
Zeroconf discovery of other bridges
timmo001 Apr 19, 2022
ad8e06c
Fix
timmo001 Apr 19, 2022
aa08e8a
MDNS Advertisement (initial)
timmo001 Apr 19, 2022
57b9504
Settings and secrets
timmo001 Apr 19, 2022
6bc2585
Handle permission error with non admin accounts
timmo001 Apr 20, 2022
57e27ff
Logging to user data directory
timmo001 Apr 20, 2022
3a30a49
Database to user data dir
timmo001 Apr 20, 2022
aa9ebea
Secret key to user data path
timmo001 Apr 20, 2022
c6bfd60
Fix
timmo001 Apr 20, 2022
b3b0c76
Check for record
timmo001 Apr 20, 2022
c8c5f8c
Create CLI package
timmo001 Apr 20, 2022
31bfded
Show headers
timmo001 Apr 20, 2022
4461e69
Prettified Code!
timmo001 Apr 20, 2022
35a164a
Fix
timmo001 Apr 20, 2022
54c6f36
Add other directories to dependabot
timmo001 Apr 20, 2022
018b358
Update pipelines
timmo001 Apr 20, 2022
aaab2a6
Fix name
timmo001 Apr 20, 2022
c3e6161
Annotations
timmo001 Apr 20, 2022
f5f4943
Module over file
timmo001 Apr 20, 2022
b9936a3
Multiple launch config
timmo001 Apr 20, 2022
ee15abf
Rename
timmo001 Apr 20, 2022
a3b8b91
Add module name to linters
timmo001 Apr 20, 2022
ab86c0c
Lint fixes for backend
timmo001 Apr 20, 2022
f178a05
Log level from settings
timmo001 Apr 20, 2022
e1a26a0
Log
timmo001 Apr 20, 2022
b9250e9
Split updates for frequent data to update more often
timmo001 Apr 20, 2022
664b266
Logging
timmo001 Apr 20, 2022
a53425f
Fix name
timmo001 Apr 20, 2022
77a78c5
Fix lint
timmo001 Apr 20, 2022
2372a3f
Fix
timmo001 Apr 20, 2022
308f41c
Fix
timmo001 Apr 20, 2022
292d951
Fix lint
timmo001 Apr 20, 2022
f1347d8
Media endpoint
timmo001 Apr 20, 2022
9fb6ed3
Convert values to correct data type
timmo001 Apr 21, 2022
45b3456
Addition
timmo001 Apr 21, 2022
5387fb3
Move battery sensors to battery module
timmo001 Apr 21, 2022
53c600b
Cleanup battery module
timmo001 Apr 21, 2022
8ae599f
Average of tuple
timmo001 Apr 21, 2022
1804745
Cleanup
timmo001 Apr 21, 2022
f71f0dc
Frontend tasks
timmo001 Apr 21, 2022
0555d46
Launch task
timmo001 Apr 21, 2022
59f1680
Remove unused package
timmo001 Apr 21, 2022
430ab6d
Fix
timmo001 Apr 21, 2022
a6d32cd
Prettified Code!
timmo001 Apr 21, 2022
a9dbdd3
Remove logs page
timmo001 Apr 21, 2022
9169b7b
Cleanup and handle missing window object
timmo001 Apr 21, 2022
70ba6c7
Remove classes in place for sx props
timmo001 Apr 21, 2022
1e1f167
Cleanup
timmo001 Apr 21, 2022
40c7da1
Fixes
timmo001 Apr 21, 2022
ee44339
Remove restart option
timmo001 Apr 21, 2022
1484e30
Remove header color
timmo001 Apr 21, 2022
165a647
Fixes
timmo001 Apr 21, 2022
ed870fc
Add export script
timmo001 Apr 21, 2022
a69616b
Serve export output dir
timmo001 Apr 21, 2022
35f1fe1
WebSocket handler (initial)
timmo001 Apr 21, 2022
4cae95d
Allow rollover to error
timmo001 Apr 21, 2022
3a18f1e
Inital websocket setup
timmo001 Apr 21, 2022
a5c2687
Listeners
timmo001 Apr 21, 2022
99d0fa2
Unregister listeners
timmo001 Apr 21, 2022
46b15d8
Close connection and get data
timmo001 Apr 21, 2022
805f945
Logging
timmo001 Apr 21, 2022
042384c
Update individual data
timmo001 Apr 21, 2022
0ed7065
Context in replies
timmo001 Apr 21, 2022
2edc512
Add data to CLI
timmo001 Apr 21, 2022
ccd1928
Casing
timmo001 Apr 21, 2022
2ae7fc0
Casing
timmo001 Apr 21, 2022
cf4c23a
Lint
timmo001 Apr 21, 2022
c34eab6
Lint
timmo001 Apr 21, 2022
d4150ec
Lint
timmo001 Apr 21, 2022
96cb4cd
Lint
timmo001 Apr 21, 2022
7fb8ce4
Lint
timmo001 Apr 21, 2022
15d8ddd
Update packages
timmo001 Apr 21, 2022
0724b94
Clear
timmo001 Apr 21, 2022
c4025f3
Cleanup
timmo001 Apr 22, 2022
ded916b
Settings
timmo001 Apr 22, 2022
46c3976
Settings dummy module
timmo001 Apr 22, 2022
d760efc
Save button
timmo001 Apr 22, 2022
0daa092
Update setting
timmo001 Apr 22, 2022
6dceab1
Logging
timmo001 Apr 22, 2022
befbf72
Debug if debug
timmo001 Apr 22, 2022
e644b83
Data
timmo001 Apr 22, 2022
2b2c6bc
Data
timmo001 Apr 22, 2022
f5ee71f
Fix
timmo001 Apr 22, 2022
09a0701
Cleanup
timmo001 Apr 22, 2022
63e7fb8
Shared package
timmo001 Apr 22, 2022
bcbae47
FIxes
timmo001 Apr 22, 2022
ae72e95
Private functions
timmo001 Apr 22, 2022
0b6e23e
Open log files
timmo001 Apr 22, 2022
e786ab3
Logging
timmo001 Apr 22, 2022
8ed4f31
Logging
timmo001 Apr 22, 2022
b137d5c
Update websocket to constants
timmo001 Apr 22, 2022
65fddfa
Create websocket client
timmo001 Apr 22, 2022
c7d5e3e
Logging
timmo001 Apr 22, 2022
b429b34
Fix
timmo001 Apr 22, 2022
c24beb5
Get URL
timmo001 Apr 22, 2022
cd48b49
Reduce zeroconf logging level
timmo001 Apr 22, 2022
e4096d1
Return logger
timmo001 Apr 22, 2022
9638975
Explicit paths
timmo001 Apr 22, 2022
7d00380
Fix
timmo001 Apr 22, 2022
29f4f60
Show error and exit when backend is not availiable
timmo001 Apr 23, 2022
e5cea40
Exit application
timmo001 Apr 23, 2022
11b788f
Launch GUI from backend if --no-gui not set
timmo001 Apr 23, 2022
32f83fd
Include module in logger name
timmo001 Apr 23, 2022
77ed72f
Formatting
timmo001 Apr 23, 2022
db41988
Sort imports
timmo001 Apr 23, 2022
566604e
Inputs
timmo001 Apr 23, 2022
c8cad00
Fix
timmo001 Apr 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 0 additions & 15 deletions .devcontainer/devcontainer.json

This file was deleted.

24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

6 changes: 0 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,3 @@ You are welcome to edit, fork and create pull requests as you like.
issues the bots find.
- I, and any other users I approve will be able to merge your changes so
be patient.

## Docs

Feel free to improve documentation as you like by making a pull request in
`/docs`. Once merged into the master branch, my ci server will update the
docs in the `gh-pages` branch.
4 changes: 1 addition & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Related Issues

> ([Github link][autolink-references] to related issues or pull requests)
> (GitHub link to related issues or pull requests)

## Checklist

Expand All @@ -15,5 +15,3 @@
<!-- All other checks are handled by the CI server as preflight checks.
Make sure to fix any errors found.
Your PR will not be merged if fixable errors are not resolved -->

[autolink-references]: https://help.github.com/articles/autolinked-references-and-urls/
13 changes: 9 additions & 4 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ updates:
directory: "/"
schedule:
interval: daily
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: "pip"
directory: "/backend"
open-pull-requests-limit: 20
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/frontend"
- package-ecosystem: "pip"
directory: "/cli"
open-pull-requests-limit: 20
schedule:
interval: "daily"
Expand All @@ -20,3 +20,8 @@ updates:
open-pull-requests-limit: 20
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/frontend"
open-pull-requests-limit: 20
schedule:
interval: "daily"
23 changes: 0 additions & 23 deletions .github/workflows/build-linux.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/build-macos.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/build-windows.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Build

# yamllint disable-line rule:truthy
on:
push:
branches:
- master
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:

concurrency:
group: lint-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build-backend:
uses: timmo001/workflows/.github/workflows/build-python-linux.yml@master
secrets:
CODE_PATH: backend
build-cli:
uses: timmo001/workflows/.github/workflows/build-python-linux.yml@master
secrets:
CODE_PATH: cli
build-gui:
uses: timmo001/workflows/.github/workflows/build-python-linux.yml@master
secrets:
CODE_PATH: gui
build-frontend:
uses: timmo001/workflows/.github/workflows/build-node-linux.yml@master
secrets:
CODE_PATH: frontend
3 changes: 1 addition & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: "CodeQL"

# yamllint disable-line rule:truthy
Expand All @@ -17,7 +18,5 @@ concurrency:
cancel-in-progress: true

jobs:
codeql-analyze-javascript:
uses: timmo001/workflows/.github/workflows/codeql-javascript.yml@master
codeql-analyze-python:
uses: timmo001/workflows/.github/workflows/codeql-python.yml@master
1 change: 1 addition & 0 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Dependabot - Auto-merge

# yamllint disable-line rule:truthy
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/deploy-linux.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/deploy-macos.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/deploy-windows.yml

This file was deleted.

42 changes: 35 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Lint

# yamllint disable-line rule:truthy
Expand All @@ -17,12 +18,22 @@ concurrency:
cancel-in-progress: true

jobs:
lint-black:
lint-black-backend:
uses: timmo001/workflows/.github/workflows/lint-black.yml@master
secrets:
CODE_PATH: gui
lint-eslint:
with:
code-path: backend
lint-black-cli:
uses: timmo001/workflows/.github/workflows/lint-black.yml@master
with:
code-path: cli
lint-black-gui:
uses: timmo001/workflows/.github/workflows/lint-black.yml@master
with:
code-path: gui
lint-eslint-frontend:
uses: timmo001/workflows/.github/workflows/lint-eslint.yml@master
with:
code-path: frontend
lint-jsonlint:
uses: timmo001/workflows/.github/workflows/lint-jsonlint.yml@master
lint-markdown-links:
Expand All @@ -31,9 +42,26 @@ jobs:
uses: timmo001/workflows/.github/workflows/lint-markdownlint.yml@master
lint-prettier:
uses: timmo001/workflows/.github/workflows/lint-prettier.yml@master
lint-pylint:
lint-pylint-backend:
uses: timmo001/workflows/.github/workflows/lint-pylint.yml@master
with:
code-path: backend
module-name: systembridgebackend
pre-install-command: |
cd ../shared && pip install .
lint-pylint-cli:
uses: timmo001/workflows/.github/workflows/lint-pylint.yml@master
with:
code-path: cli
module-name: systembridgecli
pre-install-command: |
cd ../shared && pip install .
lint-pylint-gui:
uses: timmo001/workflows/.github/workflows/lint-pylint.yml@master
secrets:
CODE_PATH: gui
with:
code-path: gui
module-name: systembridgegui
pre-install-command: |
cd ../shared && pip install .
lint-yamllint:
uses: timmo001/workflows/.github/workflows/lint-yamllint.yml@master
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ on:

jobs:
release-drafter:
uses: timmo001/workflows/.github/workflows/release-drafter-node-executable.yml@master
uses: timmo001/workflows/.github/workflows/release-drafter.yml@master
Loading