Commit Graph

95 Commits

Author SHA1 Message Date
Nico Miguelino
f935b95115 Enables Flake8 E501 (#2019) 2024-08-13 15:48:33 -07:00
Nico Miguelino
8ac54dd019 fix: server startup takes a minute to start in local dev mode (#2016) 2024-08-12 08:06:48 -07:00
Nico Miguelino
035f2c8dd1 Fixes IP address on splash screen not updating (#1950)
* fix: IP address previewed on splash screen doesn't update
* fix: consider multiple IPv4 and IPv6 as well
2024-07-11 09:28:45 -07:00
Nico Miguelino
8a60fb5efc chore: rename all Resin references to Balena (#1945)
* the changes exclude references to Docker volumes
2024-06-28 06:54:13 -07:00
Nico Miguelino
87e2d493ce Adds Python linting in CI (#1939) 2024-06-21 09:11:14 -07:00
nicomiguelino
300d5c2347 chore: cleanup WoTT code 2024-06-17 16:07:43 -07:00
nicomiguelino
1ed719674e fix: get Supervisor version from the API 2024-05-27 09:37:38 -07:00
Michael Schwinghammer
d939a5772a Updated PyYAML
Set yt-dlp version
Fixed yt-dlp arguments
2023-09-29 03:04:58 -05:00
Michael Schwinghammer
42348fc67c Replace youtube-dl with yt-dlp 2023-09-28 20:42:24 -05:00
nicomiguelino
32d7dac94e Have the Redis connection decode the responses (via GET) by default.
- Doing so, responses will be returned as `str` instead of `bytes`.
2023-03-06 09:31:12 -08:00
nicomiguelino
79534040f6 Fix some failing unit test cases. Enforce unicode strings. 2023-02-21 15:02:54 -08:00
nicomiguelino
3d1e64a0f9 Apply Stage 2 changes to .py files using futurize
- Changes are not yet tested thoroughly.
2023-02-16 22:26:31 -08:00
nicomiguelino
c8869fa9f8 Apply Stage 1 changes to .py files using futurize. 2023-02-16 22:08:56 -08:00
nicomiguelino
bd4499e8c6 Send updated IP address(es) to the viewer upon reconnection.
- Make use of Redis as a temporary storage of IP addresses.
2023-01-06 14:36:57 -08:00
nicomiguelino
b145554a86 Fix syntax error. 2022-12-14 12:54:56 -08:00
nicomiguelino
43f54cc52a Do a refactor for functions doing Supervisor API calls. 2022-12-14 12:28:20 -08:00
nicomiguelino
46b2fece80 Rename function for getting device info via Balena Supervisor API. 2022-12-14 12:19:40 -08:00
nicomiguelino
91a7092e95 Fix broken splash screen issue. 2022-12-14 12:17:11 -08:00
nicomiguelino
81f8d7a779 Make use of the Supervisor API on shutdown and reboot.
- Do some refactoring as well.
2022-12-14 11:55:07 -08:00
nicomiguelino
cde020309e Remove unused imports. 2022-11-28 21:47:21 -08:00
nicomiguelino
47e7448a6a Do minor code cleanup.
- Remove unused imports.
- Format import statements.
2022-11-28 21:42:03 -08:00
nicomiguelino
747ad5fdd9 Have the viewer browser re-load until the supervisor API response is OK.
- The use of `retry` was temporarily removed.
2022-11-28 09:44:52 -08:00
nicomiguelino
d1472e23d3 Refactor code for getting Balena supervisor API response. 2022-11-22 19:44:28 -08:00
nicomiguelino
c5d22d5227 Write a new function that waits for the supervisor API to be ready. 2022-11-22 16:47:32 -08:00
nicomiguelino
7d46eb2996 Add NewConnectionError on the exceptions to be catched. 2022-11-07 07:28:20 -08:00
nicomiguelino
00341f3c19 Add more commonly-thrown exceptions during a requests call. 2022-11-03 09:50:13 -07:00
nicomiguelino
25725a46c7 Add support for retries on calling the Supervisor APIA for IP address. 2022-11-02 17:19:16 -07:00
nicomiguelino
1bef3e597c Remove broken import: mplayer 2022-10-20 07:44:39 -07:00
nicomiguelino
35d093fa16 Restore test case for streaming assets. 2022-10-16 11:43:05 -07:00
Viktor Petersson
5a727fe3ce Removes Mixpanel dependency 2022-09-20 16:34:56 +01:00
Viktor Petersson
a97d3e1ade Adds new logic for retrieving IP 2020-12-22 07:58:52 +00:00
Viktor Petersson
020d60c943 Resolves #1456 for Balena 2020-12-22 07:39:47 +00:00
Viktor Petersson
2b51bd3cf0 Slight improvements to logic 2020-12-22 07:22:54 +00:00
Viktor Petersson
2d81dc404e Moves some of the file based logic to redis 2020-12-21 15:25:24 +00:00
Viktor Petersson
8bcedf74bd Deprecates omxplayer for checks in favor of ffprobe 2020-12-16 18:09:35 +00:00
Viktor Petersson
b82cc8bf29 Tries to fix permission of video interface 2020-12-11 10:03:02 +00:00
Viktor Petersson
fa9b9f0767 Fixes ffprobe command 2020-12-10 17:28:42 +00:00
Viktor Petersson
bc2b4737c8 Moves server to use ffprobe instead 2020-12-10 15:03:17 +00:00
Viktor Petersson
33b77842e0 Simplifies splash page 2020-11-12 13:43:36 +00:00
Rusko124
e3e69117ff Edits: docker-compose in the ansible task 2020-11-05 13:57:12 +06:00
Emyll Almonte
04ba69624f Update utils.py
removing the letter `i` so that it is never confused with `l` (lowercase L) from far away, although lowercase L is not included in the string of lowercase letters, users dont normally know this.
2020-10-06 22:59:40 -04:00
Emyll Almonte
53679dbd33 Update utils.py
fix for wlan connections that were raising: Exception("Unable to resolve local IP address.")

*added the import time module.. which was omitted in previous commit..
2019-12-11 11:06:21 -05:00
Emyll Almonte
62f8dbd544 Update utils.py
fix for wlan connections that were raising: Exception("Unable to resolve local IP address.")
2019-11-27 09:21:23 -05:00
eugenosm
5fd3a24058 change wott-agent cecking logic 2019-06-21 17:48:32 +06:00
eugenosm
f375eb2c82 pep8 corrections 2019-06-21 17:46:34 +06:00
eugenosm
a1d4242270 change device id retrieving, from sh.wott_agent to metadata.json reading 2019-06-21 17:46:33 +06:00
eugenosm
9000f378eb change from popen() to sh. 2019-06-21 17:46:33 +06:00
eugenosm
2dacbf710f remove sudo on device id reading 2019-06-21 17:46:33 +06:00
eugenosm
eafbc7ace8 wott sectipn in integration tab 2019-06-21 17:42:22 +06:00
Viktor Petersson
093f5946c8 Cleanup Balena/Resin reference 2019-05-15 13:41:18 +01:00