Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
22876c8
Combine reader and writer threads
joshhead Feb 4, 2022
3ab7ca1
Move more initialization to end of server.py
joshhead Feb 5, 2022
4cf5d3e
Handle websocket closing better
joshhead Feb 5, 2022
290c6f3
Put broadcast back where it was
joshhead Feb 5, 2022
3737649
Move some server.py setup to a main function
joshhead Feb 5, 2022
d92faca
Use asyncio.Lock instead of threading.Lock
joshhead Feb 5, 2022
9588ec0
Add backpressure to broadcasts from serial thread
joshhead Feb 5, 2022
ff6f767
Fit more ValueMonitors without breaking layout
joshhead Feb 6, 2022
4f20731
Replace serial thread with asyncio task
joshhead Feb 8, 2022
1991cf7
Don't send ChangeProfile "X" when clicking delete
joshhead Feb 8, 2022
a543fd2
Refactor around run_websockets task
joshhead Feb 8, 2022
9dfe01a
Refactor to move serial handling back to a class
joshhead Feb 9, 2022
8ad2cbd
Bring back value polling
joshhead Feb 9, 2022
5e8e167
Reconnect serial handler after error
joshhead Feb 9, 2022
9b5a8d1
Make WebUI wait for serial connection
joshhead Feb 9, 2022
8eaa5bd
Send thresholds after serial connect
joshhead Feb 9, 2022
3674b55
Remove sensor_numbers range
joshhead Feb 10, 2022
cd88fc4
Construct ProfileHandler in run_websockets
joshhead Feb 10, 2022
43d9ef3
Get panel count from MCU
joshhead Feb 10, 2022
d2d8420
Save response from MCU when setting thresholds
joshhead Feb 10, 2022
990ffca
Change format of update threshold command
joshhead Feb 10, 2022
eb6aa83
Refactor /defaults handler class
joshhead Feb 12, 2022
9707517
Merge remote-tracking branch 'origin/master' into single-serial-thread
joshhead Feb 12, 2022
bb4d778
Move websocket handler function into class
joshhead Feb 12, 2022
c13e326
Keep lock and websocket sets in WebsocketHandler
joshhead Feb 12, 2022
f00c90e
Remove unused app parameter for run_websockets
joshhead Feb 12, 2022
eb7d713
Fix nesting of task_done call
joshhead Feb 13, 2022
ad64912
Move serial commands to new class
joshhead Feb 13, 2022
f387f93
Added broadcast helpers in WebSocketHandler
joshhead Feb 13, 2022
3c3ac4b
Make some info logging more specific
joshhead Feb 13, 2022
0910c9d
Extract handle_client_message function
joshhead Feb 13, 2022
c66ac7a
Handle serial timeout like other serial errors
joshhead Feb 13, 2022
8563f8b
Update remove_profile log message
joshhead Feb 13, 2022
434447c
Remove empty line
joshhead Feb 13, 2022
e05437a
Reorder some definitions in server.py
joshhead Feb 13, 2022
fcaf9ba
Rename run_websockets to run_main_task_loop
joshhead Feb 13, 2022
9f88462
Update method and property names in serial classes
joshhead Feb 13, 2022
632dd9b
Single leading underscore in private properties
joshhead Feb 13, 2022
3aaef1f
Use properties for getters
joshhead Feb 13, 2022
8422f25
Remove unused import
joshhead Feb 14, 2022
643efab
More underscore prefixes for private fields
joshhead Feb 14, 2022
bf7a872
Docstrings, misc changes to ProfileHandler
joshhead Feb 14, 2022
6cff1ce
Document serial classes
joshhead Feb 14, 2022
e7f5ffa
Document WebSocketHandler in server.py
joshhead Feb 14, 2022
7bce265
Close websockets properly
joshhead Feb 14, 2022
06d6696
DefaultsHandler docstrings
joshhead Feb 16, 2022
27e6665
Clean up server.py main function
joshhead Feb 16, 2022
8aac01e
Add SERVE_STATIC_FRONTEND_FILES config constant
joshhead Feb 16, 2022
ccf4c83
Add main and run_main_task_loop docstrings
joshhead Feb 16, 2022
5acaced
Rename some CamelCase to snake_case in server.py
joshhead Feb 16, 2022
d0c91b3
Fix unused argument/variable warnings
joshhead Feb 16, 2022
9206608
Use format strings in server.py
joshhead Feb 16, 2022
071cf22
Specify file encodings in server.py
joshhead Feb 16, 2022
da6b6b2
Use single quoted strings in server.py
joshhead Feb 16, 2022
5c3527d
Autoformat server.py
joshhead Feb 16, 2022
a27ae68
Fix line lengths in server.py
joshhead Feb 16, 2022
eb7b182
Add basic module docstring
joshhead Feb 16, 2022
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
Loading