Commit Graph

364 Commits

Author SHA1 Message Date
Nash Kaminski
d01eda0e9a Implement reboot and shutdown for Dockerized Screenly via host agent process.
This change implements a mechanism for executing a restricted set of commands on the host from within the screenly Docker containers by using a very simple host agent process, which requires only 2 packaged dependencies (python3 and python3-redis) from the standard Raspbian repositories.

Initially, this functionality is used to implement the previously disabled reboot and shutdown features. However, this could fairly easily be expanded to re-implement the USB asset loading functionality.

Furthermore, this change removes the reinstallation of build-essential, as /usr/lib/gcc/arm-linux-gnueabihf/4.9/cc1plus does not exist after reinstalling such and screenly builds without error.

Signed-off-by: Nash Kaminski <nashkaminski@kaminski.io>
2021-04-02 01:57:15 -05:00
Viktor Petersson
7dc9b7ed0d Moves display power check to async 2021-01-22 11:42:14 +00:00
Viktor Petersson
e034132331 Reverts config change 2021-01-22 10:54:42 +00:00
Viktor Petersson
e58d750b12 Minor formatting and adds debug logging support 2021-01-22 10:41:00 +00:00
Viktor Petersson
774d1d878e Minor refactoring of systems page 2021-01-13 15:28:11 +00:00
Viktor Petersson
ef18999206 Removes deprecated upgrade script. 2021-01-08 18:07:53 +00:00
Viktor Petersson
5ee4e2d40a Adds CEC support and minor dependency refactoring 2021-01-08 11:55:05 +00:00
Viktor Petersson
2da935f48d Fixes redis 2020-12-21 17:20:30 +00:00
Viktor Petersson
2d81dc404e Moves some of the file based logic to redis 2020-12-21 15:25:24 +00:00
Rusko124
9f7d486c34 Edits: viewImage works through nginx and fix for a load screen 2020-12-18 12:00:08 +06:00
Viktor Petersson
de4307b8a3 Various QA fixes for pi3 (and some cleanup) 2020-12-17 11:09:17 +00:00
Viktor Petersson
677a465d1d Introduces Nginx container 2020-11-20 15:43:18 +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
Rusko124
2f0f6badee Merge branch 'webkit_instead_uzbl' into edits/merge-master-into-experimental 2020-11-03 13:38:48 +06:00
Rusko124
bbeb50dc9c Merge branch 'master' into webkit_instead_uzbl 2020-11-03 12:40:41 +06:00
Emyll Almonte
1b6377464f Update server.py 2020-10-19 16:14:13 -04:00
Emyll Almonte
5fcdc39575 Update server.py
fixes:
- if escape was used in `uri`, the characters it was escaping to were preventing certain websites such as google slides from parsing parameters necessary for proper function, thus a manual replace had to be implemented to accomplish both needs (escaping while allowing `&` to be used properly)
- when escaping the name of the asset, if you make asset with `&` character inactive and active multiple times, the name starts having many duplicate instances of the word `amp;` (see screenshot)
2020-10-18 15:28:36 -04:00
Viktor Petersson
5bf5384bba More demo site fixes 2020-07-17 17:30:02 +01:00
Viktor Petersson
06acc42c4c Merge pull request #1272 from rusko124/memory_settings
Memory settings
2019-11-27 07:40:04 +00:00
Rusko124
b699d1999c Edit: XSS escaping 2019-11-27 12:59:26 +06:00
Rusko124
b9a2e96c16 Small change 2019-11-27 12:22:27 +06:00
Rusko124
49a21dc0aa New: memory in system info 2019-11-27 12:21:14 +06:00
Viktor Petersson
d8fa5db82b Merge pull request #1226 from burnnat/api-add-up-to-date
Add "up to date" flag to info API.
2019-11-07 10:19:57 +00:00
Rusko124
35bd1d2510 Edits: redis broker instead of rabbitmq 2019-11-05 13:45:53 +06:00
Rusko124
e8afedfb95 Fix: viewers logs in UI 2019-10-09 11:30:39 +06:00
Rusko124
3e876f04f7 Changes: webkit browser instead of UZBL 2019-10-09 09:27:13 +06:00
Rusko124
3c0bdf7b1e Edits for default assets 2019-09-26 10:59:23 +06:00
Nat Burns
c9f55defae Add "up to date" flag to info API. 2019-09-24 08:57:28 -04:00
Rusko124
78ed5f4c23 Deleted print() 2019-09-24 14:38:59 +06:00
Rusko124
dc538c1050 Fix: code quality 2019-09-24 14:24:32 +06:00
Rusko124
b973bc0bcb New: default assets 2019-09-24 14:13:49 +06:00
Rusko124
311790eb27 Small code quality fix for system_info 2019-09-11 14:00:54 +06:00
Rusko124
b9faa6e7b5 Edits: system-info and code quality 2019-09-11 13:51:13 +06:00
Rusko124
d1cc70feda Edits: cleanup in the repo 2019-08-29 15:14:07 +06:00
Rusko124
168fc2dcd8 Edits: small edits for upgrade task of celery 2019-08-29 13:10:23 +06:00
Rusko124
d1a26a3dc0 Celery: change redis broker to rabbitmq 2019-08-28 11:05:38 +06:00
Rusko124
9a3be961e3 Fix to pass PR checks 2019-08-27 10:35:37 +06:00
Rusko124
3d11b383f4 Merge branch 'master' into celery 2019-08-27 10:22:10 +06:00
Rusko124
f119c29db2 Merge branch 'master' into celery 2019-06-10 16:05:00 +06:00
Maico Timmerman
cf14c93023 Allow connection to websocket when server is behind reverse proxy. 2019-06-04 17:49:56 +02:00
Rusko124
935314c575 Merge branch 'master' into celery 2019-05-29 12:06:19 +06:00
Rusko124
e61eb68a89 is_up_to_date 2019-05-28 12:59:13 +06:00
Rusko124
bda1c61dc9 Edits after review 2019-05-28 12:31:35 +06:00
Rusko124
691a3996a1 Merge branch 'master' into edits_network_manage 2019-05-22 18:45:58 +06:00
Rusko124
8744def71e Edits: manage network 2019-05-22 18:43:16 +06:00
Viktor Petersson
60f8715b85 Fixes copyright notice 2019-05-16 17:03:16 +01:00
Viktor Petersson
9c86de17ef Adds integration with Balena 2019-05-16 17:01:33 +01:00
Viktor Petersson
b80c0ad770 Don't use '_' in URLs, but rather '-' 2019-05-16 16:06:53 +01:00
Rusko124
da8babe3ab Some edits for 2019-05-14 00:59:51 +06:00