Commit Graph

168 Commits

Author SHA1 Message Date
Nico Miguelino
a8a40c0975 Merge branch 'Screenly:master' into 1648-splash-2 2022-11-29 08:53:25 -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
Emyll Almonte
b2f4273ccf Update backup_helper.py 2022-11-24 13:10:23 -05:00
Emyll Almonte
42079bf64a Update backup_helper.py 2022-11-24 12:33:24 -05:00
Emyll Almonte
d2301d8e8c Update backup_helper.py 2022-11-24 12:03:39 -05:00
Emyll Almonte
65e348e1a3 Update backup_helper.py 2022-11-22 23:06:55 -05: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
Emyll Almonte
4b76815f86 Update backup_helper.py 2022-11-22 16:20:53 -05: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
41eff742cf Add certain options if device is Raspberry Pi 4. 2022-10-30 15:23:50 -07:00
nicomiguelino
e60c8d49f3 Use list of strings instead when specifying options.
- No major changes.
- MMAL display is hardcoded to HDMI-2.
- However, output is still visible on HDMI-1, given that a display is
  connected to that port.
- There's still a need to find a way to mirror the displays on both
  displays.
2022-10-24 14:56:18 -07:00
nicomiguelino
e5abc023ac Specify options when creating a VLC player instance. 2022-10-21 11:01:40 -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
Terrence Meiczinger
04077e39b0 Add Pi 4B rev 1.5 1GB. Add unknown revision and return instead of str to prevent return type mismatch. 2022-09-29 13:57:39 -04:00
Terrence Meiczinger
9ffa4c9063 remove uneeded imports. Fix lookup_raspberry_pi_revision to prevent KeyError exception 2022-09-29 13:55:54 -04:00
Viktor Petersson
a93756353d Adds error handling 2022-09-20 16:37:46 +01:00
Viktor Petersson
5a727fe3ce Removes Mixpanel dependency 2022-09-20 16:34:56 +01:00
Viktor Petersson
ce13a61b9c Merge pull request #1557 from nkaminski/pr_mm_ghapi
OOM and Github API error handling improvements
2022-09-12 16:29:10 +01:00
Pro Velo ICT
ec0d2dffc8 Adding revision c03115 2022-04-14 17:07:02 +02:00
Semaf Electronics
72a2088714 added revision d03115
Raspberry Pi 4 8GB Rev 1.5 Revision d03115
2022-03-20 09:02:09 +01:00
Emyll Almonte
86457a9832 Add Raspberry Pi 4 Model B board revision 1.5 2022-02-25 15:17:53 -05:00
Nash Kaminski
a2cf9956bd Improve error handling when interacting with the Github API.
This change improves the error handling when interacting with the github
API by enforcing a 5 minute backoff on API call failures as well as
caches the remote branch presence/absence for 24 hours.

This prevents potential crashes when Internet connectivity is
unavailable, as well as from having one's IP address rate limited by Github
if the remote branch on the pi references a branch name that does not exist
under https://github.com/Screenly/screenly-ose/tree/

Prior to this change, this scenario causes the remote branch status to be
checked during every UI request.

Signed-off-by: Nash Kaminski <nashkaminski@kaminski.io>
2021-10-01 19:53:26 -05:00
Sam Bannister
c996d566c0 added revision c03114 2021-04-12 14:35:39 +01:00
Viktor Petersson
d788a76563 Quick fix for CEC 2021-01-22 09:29:24 +00:00
Viktor Petersson
0e4e00dd17 Bugfix 2021-01-14 09:54:18 +00:00
Viktor Petersson
cc42877225 Refactors uptime 2021-01-13 15:35:53 +00:00
Viktor Petersson
774d1d878e Minor refactoring of systems page 2021-01-13 15:28:11 +00:00
Viktor Petersson
1660f5b20e Adds CEC fix 2021-01-11 18:36:18 +00:00
Viktor Petersson
8587b18143 Updates dependency 2021-01-08 16:41:49 +00:00
Viktor Petersson
03d50af0d8 More cleanup. 2021-01-08 16:38:53 +00:00
Viktor Petersson
96b8db6d81 Cleans up diagnostics code a bit with some refactoring. 2021-01-08 16:35:51 +00:00
Viktor Petersson
5ee4e2d40a Adds CEC support and minor dependency refactoring 2021-01-08 11:55:05 +00:00
Viktor Petersson
9540024fd2 More analytics. 2020-12-27 16:33:32 +00: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
fdca754ccb Adds cleanup and fixes missing string 2020-12-21 18:29:12 +00:00
Viktor Petersson
191e87b5bb Adds missing import 2020-12-21 18:17:25 +00:00
Viktor Petersson
2d81dc404e Moves some of the file based logic to redis 2020-12-21 15:25:24 +00:00
Rusko124
be9749fd2d Edits: after review 2020-12-18 18:20:06 +06:00
Rusko124
7816ac576b Edits: vlc player instead of omxplayer 2020-12-18 17:33:01 +06:00
Viktor Petersson
8bcedf74bd Deprecates omxplayer for checks in favor of ffprobe 2020-12-16 18:09:35 +00:00
Viktor Petersson
b00c73c05c Merge branch 'master' into experimental
# Conflicts:
#	balena.yml
#	bin/start_balena.sh
#	docker-compose.yml
#	docker/Dockerfile.base
#	docker/Dockerfile.server.template
#	docker/Dockerfile.viewer.template
#	docker/Dockerfile.websocket.template
#	docs/developer-documentation.md
2020-12-16 17:47:18 +00:00
Viktor Petersson
b82cc8bf29 Tries to fix permission of video interface 2020-12-11 10:03:02 +00:00