Commit Graph

188 Commits

Author SHA1 Message Date
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
Viktor Petersson
7001860dc4 Updates GitHub reference 2022-12-13 13:06:49 +00:00
nicomiguelino
0582ed372f Use OMX as video media player for Raspberry Pi 4. 🔧
- OMX is stil not able to play .mov files on a Raspberry Pi 4.
2022-12-06 21:41:15 -08:00
Emyll Almonte
5e1b7d46dc Update diagnostics.py 2022-12-05 11:14:51 -05:00
Emyll Almonte
636968e64d Update diagnostics.py 2022-12-01 19:47:44 -05:00
Emyll Almonte
774cc2b367 Update diagnostics.py 2022-11-29 21:52:59 -05:00
Emyll Almonte
8554adeee4 Update diagnostics.py 2022-11-29 16:21:36 -05:00
Emyll Almonte
4b83b51dd3 Update diagnostics.py 2022-11-29 16:18:45 -05:00
Emyll Almonte
95ad385b62 Merge branch 'Screenly:master' into patch-1 2022-11-29 15:15:16 -05:00
Emyll Almonte
febdf25251 Update diagnostics.py 2022-11-29 15:08:24 -05:00
Emyll Almonte
917b4b81a3 Update github.py 2022-11-29 13:36:38 -05:00
Emyll Almonte
8b51a1855d Update raspberry_pi_helper.py 2022-11-29 13:15:57 -05:00
Emyll Almonte
d1b8b98dde Update github.py 2022-11-29 13:13:25 -05:00
Emyll Almonte
09ab3b1f43 Merge branch 'Screenly:master' into patch-1 2022-11-29 12:57:38 -05:00
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
fc063779ba Update raspberry_pi_helper.py
Even if we stop using this file in a near future, it seems the key "model name" is not part of the outcome of proc/cpuinfo in bullseye, rather it just says "Model".

The first run of test file `model.py` using the original code returns cpu_count, hardware, revision, and serial, but not model.
Second edited test file `model.py` which replaces the "model name" key with "Model" as it is returned by proc/cpuinfo, properly shows the model:
2022-11-22 23:53:21 -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