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

Integration of 4.1.0 #197

Merged
merged 221 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
4a42e5d
Close #173
dostuffthatmatters Jul 8, 2023
4cfafd2
Improve static type checks script
dostuffthatmatters Jul 8, 2023
4e8a4a6
Upgrade pydantic to version 2
dostuffthatmatters Jul 8, 2023
b82d95a
Upgrade mypy to version 1.4.1
dostuffthatmatters Jul 8, 2023
f7315d9
Fully migrate to pydantic v2 (1)
dostuffthatmatters Jul 8, 2023
aae0755
Fully migrate to pydantic v2 (2)
dostuffthatmatters Jul 8, 2023
7cee617
Fully migrate to pydantic v2 (3)
dostuffthatmatters Jul 8, 2023
a167c5d
Fully migrate to pydantic v2 (4)
dostuffthatmatters Jul 8, 2023
54aa351
Fully migrate to pydantic v2 (5)
dostuffthatmatters Jul 8, 2023
1d8cfd9
Fully migrate to pydantic v2 (6)
dostuffthatmatters Jul 8, 2023
287c116
Fully migrate to pydantic v2 (7)
dostuffthatmatters Jul 8, 2023
a2ea3f7
Fully migrate to pydantic v2 (8)
dostuffthatmatters Jul 8, 2023
5d8cc23
Fully migrate to pydantic v2 (9)
dostuffthatmatters Jul 8, 2023
61534f4
Fully migrate to pydantic v2 (10)
dostuffthatmatters Jul 9, 2023
4f8b693
Fully migrate to pydantic v2 (11)
dostuffthatmatters Jul 9, 2023
5908bd3
Improve upload directory checksum script
dostuffthatmatters Jul 9, 2023
1bc243b
Move static type tests to pytests
dostuffthatmatters Aug 23, 2023
f676c5e
Upgrade UI dependencies
dostuffthatmatters Oct 4, 2023
efe945f
Fully migrate to pydantic v2 (12)
dostuffthatmatters Oct 4, 2023
0f25651
Fully migrate to pydantic v2 (13)
dostuffthatmatters Oct 4, 2023
21a04ba
Fully migrate to pydantic v2 (14)
dostuffthatmatters Oct 4, 2023
b82c96e
Fully migrate to pydantic v2 (15)
dostuffthatmatters Oct 4, 2023
94e4369
Close #183
dostuffthatmatters Oct 4, 2023
18f43a1
#107 - Deal with large CamTracker log files (1)
dostuffthatmatters Oct 4, 2023
7c77ca1
#107 - Deal with large CamTracker log files (2)
dostuffthatmatters Oct 4, 2023
9018594
#184 - CamTracker is stuck at initialization (1)
dostuffthatmatters Oct 4, 2023
ddb4592
#184 - CamTracker is stuck at initialization (2)
dostuffthatmatters Oct 4, 2023
7bed45a
#184 - CamTracker is stuck at initialization (3)
dostuffthatmatters Oct 4, 2023
b9a09e6
#107 - Deal with large CamTracker log files (3)
dostuffthatmatters Oct 8, 2023
b5c8c98
Cleanup (1)
dostuffthatmatters Oct 9, 2023
7a75606
Cleanup (2)
dostuffthatmatters Oct 9, 2023
c879e1a
Cleanup (3)
dostuffthatmatters Oct 9, 2023
ff3874b
Cleanup (4)
dostuffthatmatters Oct 9, 2023
615e772
#175 Refine UI (1)
dostuffthatmatters Oct 9, 2023
e2fe58e
#175 Refine UI (2)
dostuffthatmatters Oct 9, 2023
45003b3
#175 Refine UI (3)
dostuffthatmatters Oct 9, 2023
6a9c42a
#175 Refine UI (4)
dostuffthatmatters Oct 9, 2023
8c90f1d
Update version numbers
dostuffthatmatters Oct 9, 2023
9d4cb9b
#175 Refine UI (5)
dostuffthatmatters Oct 9, 2023
ef7728c
#175 Refine UI (6)
dostuffthatmatters Oct 9, 2023
0e02ed7
#175 Refine UI (7)
dostuffthatmatters Oct 9, 2023
1a313d9
#175 Refine UI (8)
dostuffthatmatters Oct 23, 2023
bf653dc
#175 Refine UI (9)
dostuffthatmatters Oct 23, 2023
6768be5
#175 Refine UI (10)
dostuffthatmatters Oct 23, 2023
4213c48
#175 Refine UI (11)
dostuffthatmatters Oct 23, 2023
c938b89
#175 Refine UI (12)
dostuffthatmatters Oct 23, 2023
5ce5fdb
#175 Refine UI (13)
dostuffthatmatters Oct 23, 2023
d49f519
#175 Refine UI (14)
dostuffthatmatters Oct 23, 2023
0d4d323
#175 Refine UI (15)
dostuffthatmatters Oct 23, 2023
dfa4223
#175 Refine UI (16)
dostuffthatmatters Oct 23, 2023
ceadebb
#175 Refine UI (17)
dostuffthatmatters Oct 23, 2023
1fc8c38
#175 Refine UI (18)
dostuffthatmatters Oct 23, 2023
b5cd4c4
#175 Refine UI (19)
dostuffthatmatters Oct 23, 2023
a41b545
#175 Refine UI (20)
dostuffthatmatters Oct 24, 2023
8a29beb
#175 Refine UI (21)
dostuffthatmatters Oct 24, 2023
5128900
#188 Improve Activity History (1)
dostuffthatmatters Oct 24, 2023
b942e5a
#188 Improve Activity History (2)
dostuffthatmatters Oct 24, 2023
64322bb
#188 Improve Activity History (3)
dostuffthatmatters Oct 24, 2023
84c6ec4
#188 Improve Activity History (4)
dostuffthatmatters Oct 24, 2023
d12bdf9
#188 Improve Activity History (5)
dostuffthatmatters Oct 24, 2023
991b293
#189 Simplify log file setup (1)
dostuffthatmatters Oct 24, 2023
2e06457
#189 Simplify log file setup (2)
dostuffthatmatters Oct 24, 2023
9660543
#189 Simplify log file setup (3)
dostuffthatmatters Oct 24, 2023
b9070a0
#189 Simplify log file setup (4)
dostuffthatmatters Oct 24, 2023
7da522c
#189 Simplify log file setup (5)
dostuffthatmatters Oct 24, 2023
4d5c427
#188 Improve Activity History (6)
dostuffthatmatters Oct 24, 2023
3a5a1de
#190 Simplify state (1)
dostuffthatmatters Oct 24, 2023
328bb52
#190 Simplify state (2)
dostuffthatmatters Oct 24, 2023
6cfcf49
#190 Simplify state (3)
dostuffthatmatters Oct 24, 2023
68bf365
#190 Simplify state (4)
dostuffthatmatters Oct 24, 2023
e0dfaf4
#190 Simplify state (5)
dostuffthatmatters Oct 24, 2023
f7cf4d4
#190 Simplify state (6)
dostuffthatmatters Oct 24, 2023
24c826f
#190 Simplify state (7)
dostuffthatmatters Oct 24, 2023
2631832
Improve types of PLC specification
dostuffthatmatters Oct 24, 2023
4270254
Use more `tum-esm-utils` (1)
dostuffthatmatters Oct 24, 2023
162f100
Use more `tum-esm-utils` (2)
dostuffthatmatters Oct 24, 2023
f6871f0
Update dependencies carefully
dostuffthatmatters Oct 24, 2023
84f1547
#109 Add button to send a test email (1)
dostuffthatmatters Oct 24, 2023
57f6e0a
#109 Add button to send a test email (2)
dostuffthatmatters Oct 24, 2023
7e8be45
#109 Add button to send a test email (3)
dostuffthatmatters Oct 24, 2023
e85a78d
#191 Make SMTP server configurable
dostuffthatmatters Oct 24, 2023
47fd257
Debug things
dostuffthatmatters Oct 24, 2023
264d1ef
#192 Log current sun angle
dostuffthatmatters Oct 25, 2023
d796fff
#179 Perform camera power cycle at midnight
dostuffthatmatters Oct 25, 2023
1c0e839
#193 Improve upload (1)
dostuffthatmatters Oct 25, 2023
4a5608e
#193 Improve upload (2)
dostuffthatmatters Oct 25, 2023
281e7f0
#193 Improve upload (3)
dostuffthatmatters Oct 25, 2023
c2d9557
#188 Improve Activity History (7)
dostuffthatmatters Oct 25, 2023
34d069b
Clean up and sort import statements
dostuffthatmatters Oct 25, 2023
ebc416c
#194 Refactor Helios (1)
dostuffthatmatters Oct 25, 2023
4c7f147
#194 Refactor Helios (2)
dostuffthatmatters Oct 25, 2023
ae26276
#194 Refactor Helios (3)
dostuffthatmatters Oct 25, 2023
d6cc7d1
#194 Refactor Helios (4)
dostuffthatmatters Oct 25, 2023
1d36f50
#193 Improve upload (4)
dostuffthatmatters Oct 26, 2023
2e3271d
#193 Improve upload (5)
dostuffthatmatters Oct 26, 2023
07fe53e
#193 Improve upload (6)
dostuffthatmatters Oct 26, 2023
03af9e3
#193 Improve upload (7)
dostuffthatmatters Oct 26, 2023
a3ab2ae
#193 Improve upload (8)
dostuffthatmatters Oct 26, 2023
c08f8a9
#193 Improve upload (9)
dostuffthatmatters Oct 26, 2023
2926434
#193 Improve upload (10)
dostuffthatmatters Oct 26, 2023
777a94f
#193 Improve upload (11)
dostuffthatmatters Oct 26, 2023
c237943
#193 Improve upload (12)
dostuffthatmatters Oct 26, 2023
40efbbd
#109 Add button to send a test email (4)
dostuffthatmatters Oct 26, 2023
a8917d8
Make all tests pass again (1)
dostuffthatmatters Oct 26, 2023
9976997
Make all tests pass again (2)
dostuffthatmatters Oct 26, 2023
639dab8
Make all tests pass again (3)
dostuffthatmatters Oct 26, 2023
c327385
#172 Clarify PLC documentation
dostuffthatmatters Oct 26, 2023
415758a
#188 Improve Activity History (8)
dostuffthatmatters Oct 27, 2023
80b1a32
#175 Refine UI (22)
dostuffthatmatters Oct 29, 2023
abcf015
#175 Refine UI (23)
dostuffthatmatters Oct 29, 2023
d33f092
#182 Add button to copy config
dostuffthatmatters Oct 29, 2023
961dd63
#190 Simplify state (8)
dostuffthatmatters Oct 29, 2023
481818a
Improve core docstrings, exclude nohup.out file
dostuffthatmatters Oct 29, 2023
0d8c2c6
#175 Refine UI (24)
dostuffthatmatters Oct 29, 2023
ec7d25b
#175 Refine UI (25)
dostuffthatmatters Oct 29, 2023
163eb33
#175 Refine UI (26)
dostuffthatmatters Oct 29, 2023
431364a
#175 Refine UI (27)
dostuffthatmatters Oct 29, 2023
a3496ee
#175 Refine UI (28)
dostuffthatmatters Oct 29, 2023
f6c4430
Change method to start core with cli
dostuffthatmatters Oct 29, 2023
42b0ddb
Update UI dependencies
dostuffthatmatters Oct 29, 2023
5a9d7cc
#175 Refine UI (29)
dostuffthatmatters Oct 29, 2023
c52eb03
#175 Refine UI (30)
dostuffthatmatters Oct 29, 2023
2df7de7
#175 Refine UI (31)
dostuffthatmatters Oct 29, 2023
c46a6c7
#175 Refine UI (32)
dostuffthatmatters Oct 30, 2023
9c53b80
#175 Refine UI (33)
dostuffthatmatters Oct 30, 2023
5451f8d
#175 Refine UI (34)
dostuffthatmatters Oct 30, 2023
4f02f6e
#175 Refine UI (35)
dostuffthatmatters Oct 30, 2023
9f8d505
#175 Refine UI (36)
dostuffthatmatters Oct 30, 2023
ecf200d
#175 Refine UI (37)
dostuffthatmatters Oct 31, 2023
c46272d
#175 Refine UI (38)
dostuffthatmatters Oct 31, 2023
3a63c77
#175 Refine UI (39)
dostuffthatmatters Oct 31, 2023
a8fcba6
#175 Refine UI (40)
dostuffthatmatters Oct 31, 2023
ef17684
#175 Refine UI (41)
dostuffthatmatters Oct 31, 2023
d1df2f4
#175 Refine UI (42)
dostuffthatmatters Oct 31, 2023
07aac19
#175 Refine UI (43)
dostuffthatmatters Oct 31, 2023
c61ddfe
#175 Refine UI (44)
dostuffthatmatters Oct 31, 2023
3970e21
#175 Refine UI (45)
dostuffthatmatters Oct 31, 2023
06d69fc
#200 Expose more Helios parameters to config (1)
dostuffthatmatters Nov 1, 2023
f76bf59
#200 Expose more Helios parameters to config (2)
dostuffthatmatters Nov 1, 2023
1dc10a3
#194 Refactor Helios (5)
dostuffthatmatters Nov 1, 2023
8355afb
#195 Reduce quickly alternating Helios decisions (1)
dostuffthatmatters Nov 2, 2023
9fdfa64
#195 Reduce quickly alternating Helios decisions (2)
dostuffthatmatters Nov 2, 2023
e508047
#184 - CamTracker is stuck at initialization (4)
dostuffthatmatters Nov 2, 2023
e106602
#184 - CamTracker is stuck at initialization (5)
dostuffthatmatters Nov 2, 2023
216db86
#184 - CamTracker is stuck at initialization (6)
dostuffthatmatters Nov 2, 2023
5460f91
#184 - CamTracker is stuck at initialization (7)
dostuffthatmatters Nov 2, 2023
99de333
Close #178
dostuffthatmatters Nov 2, 2023
1ba132d
#26 Add coordinates and sun elevation to state
dostuffthatmatters Nov 2, 2023
7814f83
Make tests run (1)
dostuffthatmatters Nov 2, 2023
e6bac59
Make tests run (2)
dostuffthatmatters Nov 2, 2023
ea39437
Make tests run (3)
dostuffthatmatters Nov 2, 2023
f2da2c6
Make tests run (4)
dostuffthatmatters Nov 2, 2023
c8134ab
Make tests run (5)
dostuffthatmatters Nov 2, 2023
c4d0e31
Make tests run (6)
dostuffthatmatters Nov 2, 2023
a8ed12d
#196 Render UI logs in logs tab (1)
dostuffthatmatters Nov 2, 2023
e38243d
#196 Render UI logs in logs tab (2)
dostuffthatmatters Nov 2, 2023
d6352bc
#196 Render UI logs in logs tab (3)
dostuffthatmatters Nov 2, 2023
70cf3f0
#196 Render UI logs in logs tab (4)
dostuffthatmatters Nov 2, 2023
7fdc0f8
#196 Render UI logs in logs tab (5)
dostuffthatmatters Nov 2, 2023
4f71e8d
Improve error messages when config is invalid
dostuffthatmatters Nov 2, 2023
582b674
Only update the changed config parameters
dostuffthatmatters Nov 2, 2023
0378ef5
#196 Render UI logs in logs tab (6)
dostuffthatmatters Nov 2, 2023
84ba43d
#196 Render UI logs in logs tab (7)
dostuffthatmatters Nov 2, 2023
c9835b6
#175 Refine UI (46)
dostuffthatmatters Nov 2, 2023
4ef5b30
Make all CLI commands log their execution
dostuffthatmatters Nov 2, 2023
c87d729
#175 Refine UI (47)
dostuffthatmatters Nov 2, 2023
ee06ad5
#171 Show buttons "open in explorer" on file/dir inputs
dostuffthatmatters Nov 2, 2023
a6b99bf
#109 Add button to send a test email (5)
dostuffthatmatters Nov 2, 2023
722f56c
#120 Add button to test upload
dostuffthatmatters Nov 2, 2023
0fa91fc
#175 Refine UI (48)
dostuffthatmatters Nov 2, 2023
5bdecc7
#193 Improve upload (13)
dostuffthatmatters Nov 2, 2023
27f64eb
#193 Improve upload (14)
dostuffthatmatters Nov 2, 2023
ec00a99
#175 Refine UI (49)
dostuffthatmatters Nov 2, 2023
50d88e5
#175 Refine UI (50)
dostuffthatmatters Nov 2, 2023
067dc88
#175 Refine UI (51)
dostuffthatmatters Nov 2, 2023
4ca0233
#175 Refine UI (52)
dostuffthatmatters Nov 2, 2023
e032df8
#175 Refine UI (53)
dostuffthatmatters Nov 2, 2023
5ad9bf7
#175 Refine UI (54)
dostuffthatmatters Nov 2, 2023
52bead9
#175 Refine UI (55)
dostuffthatmatters Nov 2, 2023
56d04d8
#175 Refine UI (56)
dostuffthatmatters Nov 2, 2023
6ebfea5
#175 Refine UI (57)
dostuffthatmatters Nov 2, 2023
e5c3d50
#163 Add link to docs and issue tracker to Pyra UI
dostuffthatmatters Nov 2, 2023
9ada43b
Refine things written to state and activity history
dostuffthatmatters Nov 2, 2023
172173a
Try to debug CI
dostuffthatmatters Nov 2, 2023
9ab0a23
Make CI also run on integration branches
dostuffthatmatters Nov 2, 2023
6cbdf0a
Debug CI
dostuffthatmatters Nov 2, 2023
085432f
Refactor docstring and code of sun tracking
dostuffthatmatters Nov 5, 2023
59cf683
#199 Show current Helios view (1)
dostuffthatmatters Nov 5, 2023
aa791fe
#199 Show current Helios view (2)
dostuffthatmatters Nov 5, 2023
c1d7ffe
#199 Show current Helios view (3)
dostuffthatmatters Nov 5, 2023
6f8b64e
#199 Show current Helios view (4)
dostuffthatmatters Nov 5, 2023
912ed57
#199 Show current Helios view (5)
dostuffthatmatters Nov 5, 2023
82752a4
Fix header design, update API reference
dostuffthatmatters Nov 5, 2023
788f028
#198 Do not run Opus macro while cover is closed
dostuffthatmatters Nov 7, 2023
c531f18
Add check of the Python version to sun tracking code
dostuffthatmatters Nov 7, 2023
02a351d
Update the API reference
dostuffthatmatters Nov 7, 2023
c9270b4
#200 Expose more Helios parameters to config (3)
dostuffthatmatters Nov 8, 2023
623eefc
#200 Expose more Helios parameters to config (4)
dostuffthatmatters Nov 8, 2023
6919604
#200 Expose more Helios parameters to config (5)
dostuffthatmatters Nov 8, 2023
12dce8f
#202 Do not launch multiple Opus instances
dostuffthatmatters Nov 8, 2023
87a54fa
#202 Clean up Opus closing logic in CLI
dostuffthatmatters Nov 8, 2023
bc17b9d
#202 Clean up Opus module code
dostuffthatmatters Nov 8, 2023
56eab02
#202 Remove commented out code of previous fix
dostuffthatmatters Nov 8, 2023
dc1eca7
Make Helios' `edge_pixel_threshold` a percent value
dostuffthatmatters Nov 8, 2023
d4dc425
#200 Expose more Helios parameters to config (6)
dostuffthatmatters Nov 8, 2023
3dfb068
Debug logs lines in emails
dostuffthatmatters Nov 8, 2023
f088d0c
Remove TODO's and unnecessary prints
dostuffthatmatters Nov 8, 2023
6f63586
Debug things
dostuffthatmatters Nov 8, 2023
7854f04
Improve overview tab
dostuffthatmatters Nov 8, 2023
3c2b066
Improve overview tab
dostuffthatmatters Nov 8, 2023
09c35bf
Improve overview tab
dostuffthatmatters Nov 8, 2023
fcd5ab7
Improve error message when Camtracker file is invalid
dostuffthatmatters Nov 8, 2023
050ae7c
Improve labels on UI buttons
dostuffthatmatters Nov 8, 2023
2742f2d
#201 Write PLC state to log files (1)
dostuffthatmatters Nov 8, 2023
b73b1d2
#201 Write PLC state to log files (2)
dostuffthatmatters Nov 8, 2023
471fc2d
Fix mypy issues and update APIn reference
dostuffthatmatters Nov 8, 2023
bfd1730
Improve CamTracker code (1)
dostuffthatmatters Nov 10, 2023
7b9a965
Improve CamTracker code (2)
dostuffthatmatters Nov 10, 2023
ef2d9b7
Improve CamTracker code (3)
dostuffthatmatters Nov 10, 2023
be46ec2
Improve CamTracker code (4)
dostuffthatmatters Nov 10, 2023
65c8513
Fix grammar things in the UI
dostuffthatmatters Nov 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
135 changes: 66 additions & 69 deletions .github/workflows/test-python-codebase-on-main.yml
Original file line number Diff line number Diff line change
@@ -1,75 +1,72 @@
name: 'test-python-codebase-on-main'
name: "test-python-codebase-on-main"
on:
push:
branches:
- main
paths-ignore:
- 'packages/core/ui/**'
- 'packages/core/docs/**'
- '.gitignore'
- 'README.md'
- 'LICENSE.md'
- 'netlify.toml'
- '.github/workflows/*.yml'
- '!.github/workflows/test-python-codebase-on-main.yml'
pull_request:
branches:
- main
paths-ignore:
- 'packages/core/ui/**'
- 'packages/core/docs/**'
- '.gitignore'
- 'README.md'
- 'LICENSE.md'
- 'netlify.toml'
- '.github/workflows/*.yml'
- '!.github/workflows/test-python-codebase-on-main.yml'
push:
branches:
- main
paths-ignore:
- "packages/core/ui/**"
- "packages/core/docs/**"
- ".gitignore"
- "README.md"
- "LICENSE.md"
- "netlify.toml"
- ".github/workflows/*.yml"
- "!.github/workflows/test-python-codebase-on-main.yml"
pull_request:
branches:
- main
- integration-*
paths-ignore:
- "packages/core/ui/**"
- "packages/core/docs/**"
- ".gitignore"
- "README.md"
- "LICENSE.md"
- "netlify.toml"
- ".github/workflows/*.yml"
- "!.github/workflows/test-python-codebase-on-main.yml"
jobs:
test:
runs-on: ubuntu-latest
steps:
# check-out repo and set-up python
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python 3.10.6
uses: actions/setup-python@v4
with:
python-version: 3.10.6
test:
runs-on: ubuntu-latest
steps:
# check-out repo and set-up python
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python 3.10.6
uses: actions/setup-python@v4
with:
python-version: 3.10.6

# load caches (dependencies and poetry binaries)
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Load cached .local
uses: actions/cache@v3
with:
path: ~/.local
key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/test-python-codebase-on-main.yml') }}
# load caches (dependencies and poetry binaries)
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Load cached .local
uses: actions/cache@v3
with:
path: ~/.local
key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/test-python-codebase-on-main.yml') }}

# install poetry (will be quick after it has been cached)
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.2
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
# install poetry (will be quick after it has been cached)
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.2
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

# install dependencies if cache does not exist
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install
# install dependencies if cache does not exist
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install

# run test suite
- name: Run mypy static type analysis
run: |
source .venv/bin/activate
bash scripts/check_static_types.sh
- name: Run pytest tests
run: |
source .venv/bin/activate
pytest -m "ci" --cov=packages tests
coverage report
# run test suite
- name: Run pytests
run: |
source .venv/bin/activate
pytest -m "ci" --cov=packages tests
coverage report
61 changes: 31 additions & 30 deletions .github/workflows/test-typescript-codebase-on-main.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
name: 'test-typescript-codebase-on-main'
name: "test-typescript-codebase-on-main"
on:
push:
branches:
- main
paths:
- 'packages/ui/**'
- '.github/workflows/test-typescript-codebase-on-main.yml'
pull_request:
branches:
- main
paths:
- 'packages/ui/**'
- '.github/workflows/test-typescript-codebase-on-main.yml'
push:
branches:
- main
paths:
- "packages/ui/**"
- ".github/workflows/test-typescript-codebase-on-main.yml"
pull_request:
branches:
- main
- integration-*
paths:
- "packages/ui/**"
- ".github/workflows/test-typescript-codebase-on-main.yml"

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set up NodeJS with Yarn
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
cache-dependency-path: packages/ui/yarn.lock
- name: Set up NodeJS with Yarn
uses: actions/setup-node@v3
with:
node-version: "20"
cache: "yarn"
cache-dependency-path: packages/ui/yarn.lock

- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: packages/ui
- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: packages/ui

- name: Build frontend
run: yarn build
working-directory: packages/ui
- name: Build frontend
run: yarn build
working-directory: packages/ui
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ test-tmp/
.idea
hidden/
packages/docs/docs/api-reference/ui
cli.sh

# runtime data
pids
Expand All @@ -20,8 +21,12 @@ pids
runtime-data/
config/**/*.json
!config/**/*.default.json
logs/**/*
logs/**/*.json
logs/**/*.log
logs/**/*.png
logs/**/*.jpg
!logs/**/.gitkeep
nohup.out


# Created by https://www.toptal.com/developers/gitignore/api/linux,macos,opencv,python,windows,node
Expand Down Expand Up @@ -77,7 +82,6 @@ Temporary Items

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
Expand Down
105 changes: 55 additions & 50 deletions config/config.default.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,59 @@
{
"general": {
"version": "4.0.8",
"seconds_per_core_interval": 30,
"test_mode": false,
"station_id": "...",
"min_sun_elevation": 11
"general": {
"version": "4.1.0",
"seconds_per_core_interval": 30,
"test_mode": false,
"station_id": "...",
"min_sun_elevation": 11
},
"opus": {
"em27_ip": "10.10.0.1",
"executable_path": "C:\\Program Files (x86)\\Bruker\\OPUS_7.8.44\\opus.exe",
"experiment_path": "C:\\Users\\Public\\Documents\\Bruker\\OPUS_7.8.44\\XPM\\experiment.xpm",
"macro_path": "C:\\Users\\Public\\Documents\\Bruker\\OPUS_7.8.44\\Macro\\macro.mtx",
"username": "Default",
"password": "..."
},
"camtracker": {
"config_path": "C:\\Users\\Public\\Documents\\Bruker\\camtracker_3_9_1_0\\CamTrackerConfig.txt",
"executable_path": "C:\\Users\\Public\\Documents\\Bruker\\camtracker_3_9_1_0\\CamTracker_3_9.exe",
"learn_az_elev_path": "C:\\Users\\Public\\Documents\\Bruker\\camtracker_3_9_1_0\\LEARN_Az_Elev.dat",
"sun_intensity_path": "C:\\Users\\Public\\Documents\\Bruker\\camtracker_3_9_1_0\\SunIntensity.dat",
"motor_offset_threshold": 10,
"restart_if_logs_are_too_old": false,
"restart_if_cover_remains_closed": false
},
"error_email": {
"smtp_host": "smtp.gmail.com",
"smtp_port": 587,
"smtp_username": "technical-user@domain.com",
"smtp_password": "...",
"sender_address": "technical-user@domain.com",
"notify_recipients": true,
"recipients": "your@mail.com"
},
"measurement_decision": {
"mode": "automatic",
"manual_decision_result": false,
"cli_decision_result": false
},
"measurement_triggers": {
"consider_time": true,
"consider_sun_elevation": true,
"consider_helios": false,
"start_time": {
"hour": 7,
"minute": 0,
"second": 0
},
"opus": {
"em27_ip": "10.10.0.1",
"executable_path": "C:\\Program Files (x86)\\Bruker\\OPUS_7.8.44\\opus.exe",
"experiment_path": "C:\\Users\\Public\\Documents\\Bruker\\OPUS_7.8.44\\XPM\\experiment.xpm",
"macro_path": "C:\\Users\\Public\\Documents\\Bruker\\OPUS_7.8.44\\Macro\\macro.mtx",
"username": "Default",
"password": "..."
"stop_time": {
"hour": 21,
"minute": 0,
"second": 0
},
"camtracker": {
"config_path": "C:\\Users\\Public\\Documents\\Bruker\\camtracker_3_9_1_0\\CamTrackerConfig.txt",
"executable_path": "C:\\Users\\Public\\Documents\\Bruker\\camtracker_3_9_1_0\\CamTracker_3_9.exe",
"learn_az_elev_path": "C:\\Users\\Public\\Documents\\Bruker\\camtracker_3_9_1_0\\LEARN_Az_Elev.dat",
"sun_intensity_path": "C:\\Users\\Public\\Documents\\Bruker\\camtracker_3_9_1_0\\SunIntensity.dat",
"motor_offset_threshold": 10
},
"error_email": {
"sender_address": "technical-user@domain.com",
"sender_password": "...",
"notify_recipients": true,
"recipients": "your@mail.com"
},
"measurement_decision": {
"mode": "automatic",
"manual_decision_result": false,
"cli_decision_result": false
},
"measurement_triggers": {
"consider_time": true,
"consider_sun_elevation": true,
"consider_helios": false,
"start_time": {
"hour": 7,
"minute": 0,
"second": 0
},
"stop_time": {
"hour": 21,
"minute": 0,
"second": 0
},
"min_sun_elevation": 0
},
"tum_plc": null,
"helios": null,
"upload": null
"min_sun_elevation": 0
},
"tum_plc": null,
"helios": null,
"upload": null
}
14 changes: 9 additions & 5 deletions config/helios.config.default.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"camera_id": 0,
"evaluation_size": 15,
"seconds_per_interval": 6,
"edge_detection_threshold": 0.01,
"save_images": false
"camera_id": 0,
"evaluation_size": 15,
"seconds_per_interval": 6,
"min_seconds_between_state_changes": 180,
"edge_pixel_threshold": 1,
"edge_color_threshold": 40,
"target_pixel_brightness": 50,
"save_images_to_archive": false,
"save_current_image": false
}
6 changes: 3 additions & 3 deletions config/tum_plc.config.default.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ip": "10.0.0.4",
"version": 1,
"controlled_by_user": false
"ip": "10.0.0.4",
"version": 1,
"controlled_by_user": false
}
Loading