Giter Club home page Giter Club logo

balena-dash's People

Contributors

andrewnhem avatar balena-ci avatar bettse avatar chrisys avatar craftbyte avatar dansku avatar dimitrisnl avatar iamsolankiamit avatar jtonello avatar maggie44 avatar mozz100 avatar nucleardreamer avatar phil-d-wilson avatar rahul-thakoor avatar shaunmulligan avatar tmigone avatar tuna-f1sh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

balena-dash's Issues

google photos slide show not working (only showing one photo from the google album).

Hi,

I am trying the get a slide show of one my shared google albums but it is only showing one photo from the album.

FYI here below my log file.

20.11.19 17:37:45 (+0100) Restarting service 'photos sha256:dcee19a56e592e32ce93de7a975b6f6abf1f55808253df949de95731c523db32'
20.11.19 17:37:48 (+0100)  photos  
20.11.19 17:37:48 (+0100)  photos  > [email protected] start /
20.11.19 17:37:48 (+0100)  photos  > node server.js
20.11.19 17:37:48 (+0100)  photos  
20.11.19 17:37:50 (+0100)  photos  ๐Ÿ“ท - Fetching images...
20.11.19 17:37:50 (+0100)  photos  ๐Ÿ“ท - Starting a google photos slideshow.
20.11.19 17:37:50 (+0100)  photos  โœจ - Magic happens on port 8888
20.11.19 17:37:52 (+0100)  photos  Found 1 images.
20.11.19 17:37:52 (+0100)  photos  ๐Ÿ”€ - Shuffling images OFF ๐Ÿ”€

WebGL Support?

I went to render a datadog dashboard today using one of my rPi 3b+ and the rendered output didn't match expectations:
IMG_1061

Does this application support WebGL?

WARNING: WebProcess crashed: restarting it ...

Just pushed the project in development mode on a device and got this error in loop:

[wpe] WARNING: WebProcess crashed: restarting it ... 
[wpe] * failed to add service - already in use?

Build log:

Debug: original argv0="node" argv=[/home/steeve/.nvm/versions/node/v12.6.0/bin/node,/home/steeve/.nvm/versions/node/v12.6.0/bin/balena,push,192.168.1.120,--nocache] length=5
[debug] Using . as build source
[Debug]   Checking we can access device
[Debug]   Sending request to http://192.168.1.120:48484/ping
[Debug]   Checking device version: 9.15.7
[Info]    Starting build on device 192.168.1.120
[Debug]   Loading project...
[Debug]   Resolving project...
[Info]    Compose file detected
[Debug]   Creating project...
[Debug]   Sending request to http://192.168.1.120:48484/v2/local/device-info
[Debug]   Found build tasks:
[Debug]       wpe: build [./wpe]
[Debug]       scheduler: build [./scheduler]
[Debug]       wifi-connect: build [./wifi-connect]
[Debug]   Resolving services with [raspberrypi3|armv7hf]
[Debug]   Found project types:
[Debug]       wpe: Standard Dockerfile
[Debug]       scheduler: Standard Dockerfile
[Debug]       wifi-connect: Dockerfile.template
[Debug]   Probing remote daemon for cache images
[Debug]   Using 12 on-device images for cache...
[Debug]   Starting builds...
[Build]   [wpe] Step 1/9 : FROM petrosagg/resin-wpe:raspberrypi3-30c7465
[Build]   [wpe]  ---> 4b90e1c6a06a
[Build]   [wpe] Step 2/9 : COPY udev-rules/ /etc/udev/rules.d/
[Build]   [scheduler] Step 1/6 : FROM balenalib/raspberrypi3-alpine
[Build]   [wifi-connect] Step 1/9 : FROM balenalib/raspberrypi3
[Build]   [wifi-connect]  ---> d5103aaa1141
[Build]   [wifi-connect] Step 2/9 : ENV INITSYSTEM on
[Build]   [scheduler]  ---> 1b6b50491297
[Build]   [scheduler] Step 2/6 : COPY scripts /usr/src/
[Build]   [wifi-connect]  ---> Running in 5308dce5b04e
[Build]   [wpe]  ---> 4c602080751b
[Build]   [wpe] Step 3/9 : COPY wpe-init /wpe-init
[Build]   [scheduler]  ---> 987381c2ceba
[Build]   [scheduler] Step 3/6 : RUN chmod +x /usr/src/*.sh
[Build]   [wifi-connect] Removing intermediate container 5308dce5b04e
[Build]   [wifi-connect]  ---> c548be1af8b7
[Build]   [wifi-connect] Step 3/9 : RUN install_packages dnsmasq wireless-tools wget
[Build]   [scheduler]  ---> Running in a1557a992322
[Build]   [wpe]  ---> 77444c14f368
[Build]   [wpe] Step 4/9 : RUN chmod +x wpe-init
[Build]   [wifi-connect]  ---> Running in 4118954bbf61
[Build]   [wpe]  ---> Running in 51141cd699e2
[Build]   [scheduler] Removing intermediate container a1557a992322
[Build]   [scheduler]  ---> e5885895ebb8
[Build]   [scheduler] Step 4/6 : CMD /usr/src/start.sh
[Build]   [scheduler]  ---> Running in 35a957eab8a0
[Build]   [scheduler] Removing intermediate container 35a957eab8a0
[Build]   [scheduler]  ---> d8a8b55c4385
[Build]   [scheduler] Step 5/6 : LABEL io.resin.local.image=1
[Build]   [scheduler]  ---> Running in 4fe6fa5ec5fa
[Build]   [wpe] Removing intermediate container 51141cd699e2
[Build]   [wpe]  ---> 8d00362bda95
[Build]   [wpe] Step 5/9 : CMD [ "/wpe-init" ]
[Build]   [wpe]  ---> Running in 5f37590a6437
[Build]   [scheduler] Removing intermediate container 4fe6fa5ec5fa
[Build]   [scheduler]  ---> 21b7619151e6
[Build]
[Build]   [wpe] Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (52.216.185.187:443)
[Build]
[Build]   [wpe] tohora.tgz            25% |*******                        |   611k  0:00:02 ETA
[Build]
[Build]   [wpe] tohora.tgz           100% |*******************************|  2419k  0:00:00 ETA
[Build]
[Build]   [wpe] Removing intermediate container fd47d0aa976c
[Build]   [wpe]  ---> c4e5a945a5bd
[Build]   [wpe] Step 8/9 : LABEL io.resin.local.image=1
[Build]   [wpe]  ---> Running in e8fe84e3b838
[Build]   [wpe] Removing intermediate container e8fe84e3b838
[Build]   [wpe]  ---> c5be7d838bd4
[Build]   [wpe] Step 9/9 : LABEL io.resin.local.service=wpe
[Build]   [wpe]  ---> Running in b1d8494ed279
[Build]   [wpe] Removing intermediate container b1d8494ed279
[Build]   [wpe]  ---> 24292356f0b4
[Build]   [wpe] Successfully built 24292356f0b4
[Build]   [wpe] Successfully tagged local_image_wpe:latest
[Build]   [wifi-connect] Reading package lists...
[Build]   [wifi-connect] Building dependency tree...
[Build]   [wifi-connect] 
[Build]   Reading state information...
[Build]   [wifi-connect] The following additional packages will be installed:
[Build]   [wifi-connect]   dnsmasq-base libdbus-1-3 libiw30 libnetfilter-conntrack3 libnfnetlink0
[Build]   [wifi-connect]   libpcre2-8-0     
[Build]   [wifi-connect] Suggested packages:
[Build]     resolvconf
[Build]   Recommended packages:
[Build]     dns-root-data dbus
[Build]   [wifi-connect] The following NEW packages will be installed:
[Build]   [wifi-connect]   dnsmasq dnsmasq-base libdbus-1-3 libiw30 libnetfilter-conntrack3
[Build]   [wifi-connect]   libnfnetlink0 libpcre2-8-0 wget wireless-tools
[Build]   [wifi-connect] 0 upgraded, 9 newly installed, 0 to remove and 31 not upgraded.
[Build]   Need to get 1851 kB of archives.
[Build]   After this operation, 5291 kB of additional disk space will be used.
[Build]   Get:1 http://deb.debian.org/debian buster/main armhf libpcre2-8-0 armhf 10.32-5 [190 kB]
[Build]   [wifi-connect] Get:2 http://deb.debian.org/debian buster/main armhf wget armhf 1.20.1-1.1 [881 kB]
[Build]   [wifi-connect] Get:3 http://archive.raspberrypi.org/debian buster/main armhf dnsmasq-base armhf 2.80-1+rpt1 [400 kB]
[Build]   [wifi-connect] Get:4 http://deb.debian.org/debian buster/main armhf libdbus-1-3 armhf 1.12.16-1 [190 kB]
[Build]   [wifi-connect] Get:5 http://deb.debian.org/debian buster/main armhf libnfnetlink0 armhf 1.0.1-3+b1 [12.1 kB]
[Build]   [wifi-connect] Get:6 http://deb.debian.org/debian buster/main armhf libnetfilter-conntrack3 armhf 1.0.7-1 [34.1 kB]
[Build]   [wifi-connect] Get:7 http://deb.debian.org/debian buster/main armhf libiw30 armhf 30~pre9-13 [19.0 kB]
[Build]   [wifi-connect] Get:8 http://deb.debian.org/debian buster/main armhf wireless-tools armhf 30~pre9-13 [109 kB]
[Build]   [wifi-connect] Get:9 http://archive.raspberrypi.org/debian buster/main armhf dnsmasq all 2.80-1+rpt1 [16.5 kB]
[Build]   [wifi-connect] debconf: delaying package configuration, since apt-utils is not installed
[Build]   
[Build]   [wifi-connect] Fetched 1851 kB in 3s (649 kB/s)
[Build]   [wifi-connect] Selecting previously unselected package libpcre2-8-0:armhf.
[Build]   (Reading database ...
[Build]   [wifi-connect] (Reading database ... 5%
[Build]   [wifi-connect] (Reading database ... 10%
[Build]   [wifi-connect] (Reading database ... 15%
(Reading database ... 10102 files and directories currently installed.)
[Build]   Preparing to unpack .../0-libpcre2-8-0_10.32-5_armhf.deb ...
[Build]   [wifi-connect] Unpacking libpcre2-8-0:armhf (10.32-5) ...
[Build]   [wifi-connect] Selecting previously unselected package wget.
[Build]   [wifi-connect] Preparing to unpack .../1-wget_1.20.1-1.1_armhf.deb ...
[Build]   [wifi-connect] Unpacking wget (1.20.1-1.1) ...
[Build]   [wifi-connect] Selecting previously unselected package libdbus-1-3:armhf.
[Build]   [wifi-connect] Preparing to unpack .../2-libdbus-1-3_1.12.16-1_armhf.deb ...
[Build]   [wifi-connect] Unpacking libdbus-1-3:armhf (1.12.16-1) ...
[Build]   [wifi-connect] Selecting previously unselected package libnfnetlink0:armhf.
[Build]   [wifi-connect] Preparing to unpack .../3-libnfnetlink0_1.0.1-3+b1_armhf.deb ...
[Build]   [wifi-connect] Unpacking libnfnetlink0:armhf (1.0.1-3+b1) ...
[Build]   [wifi-connect] Selecting previously unselected package libnetfilter-conntrack3:armhf.
[Build]   [wifi-connect] Preparing to unpack .../4-libnetfilter-conntrack3_1.0.7-1_armhf.deb ...
[Build]   [wifi-connect] Unpacking libnetfilter-conntrack3:armhf (1.0.7-1) ...
[Build]   [wifi-connect] Selecting previously unselected package dnsmasq-base.
[Build]   [wifi-connect] Preparing to unpack .../5-dnsmasq-base_2.80-1+rpt1_armhf.deb ...
[Build]   [wifi-connect] Unpacking dnsmasq-base (2.80-1+rpt1) ...
[Build]   [wifi-connect] Selecting previously unselected package dnsmasq.
[Build]   [wifi-connect] Preparing to unpack .../6-dnsmasq_2.80-1+rpt1_all.deb ...
[Build]   [wifi-connect] Unpacking dnsmasq (2.80-1+rpt1) ...
[Build]   [wifi-connect] Selecting previously unselected package libiw30:armhf.
[Build]   [wifi-connect] Preparing to unpack .../7-libiw30_30~pre9-13_armhf.deb ...
[Build]   [wifi-connect] Unpacking libiw30:armhf (30~pre9-13) ...
[Build]   [wifi-connect] Selecting previously unselected package wireless-tools.
[Build]   [wifi-connect] Preparing to unpack .../8-wireless-tools_30~pre9-13_armhf.deb ...
[Build]   [wifi-connect] Unpacking wireless-tools (30~pre9-13) ...
[Build]   [wifi-connect] Setting up libdbus-1-3:armhf (1.12.16-1) ...
[Build]   [wifi-connect] Setting up libpcre2-8-0:armhf (10.32-5) ...
[Build]   [wifi-connect] Setting up libnfnetlink0:armhf (1.0.1-3+b1) ...
[Build]   [wifi-connect] Setting up libiw30:armhf (30~pre9-13) ...
[Build]   [wifi-connect] Setting up wget (1.20.1-1.1) ...
[Build]   [wifi-connect] Setting up wireless-tools (30~pre9-13) ...
[Build]   [wifi-connect] Setting up libnetfilter-conntrack3:armhf (1.0.7-1) ...
[Build]   [wifi-connect] Setting up dnsmasq-base (2.80-1+rpt1) ...
[Build]   [wifi-connect] Setting up dnsmasq (2.80-1+rpt1) ...
[Build]   [wifi-connect] invoke-rc.d: could not determine current runlevel
[Build]   [wifi-connect] invoke-rc.d: policy-rc.d denied execution of start.
[Build]   [wifi-connect] Processing triggers for libc-bin (2.28-10) ...
[Build]   [wifi-connect] Removing intermediate container 4118954bbf61
[Build]   [wifi-connect]  ---> f8884c476031
[Build]   [wifi-connect] Step 4/9 : WORKDIR /usr/src/app
[Build]   [wifi-connect]  ---> Running in 151457d7af7d
[Build]   [wifi-connect] Removing intermediate container 151457d7af7d
[Build]   [wifi-connect]  ---> cb17c3853bc9
[Build]   [wifi-connect] Step 5/9 : RUN curl https://api.github.com/repos/balena-io/wifi-connect/releases/latest -s     | grep -hoP 'browser_download_url": "\K.*armv7hf\.tar\.gz'     | xargs -n1 curl -Ls     | tar -xvz -C /usr/src/app/
[Build]   [wifi-connect]  ---> Running in 835f7507cd1f
[Build]   [wifi-connect] ./
[Build]   ./wifi-connect
[Build]   [wifi-connect] ./ui/
[Build]   [wifi-connect] ./ui/css/
[Build]   [wifi-connect] ./ui/css/bootstrap.min.css
[Build]   [wifi-connect] ./ui/js/
[Build]   [wifi-connect] ./ui/js/jquery.min.js
[Build]   [wifi-connect] ./ui/js/bootstrap.min.js
[Build]   [wifi-connect] ./ui/js/index.js
[Build]   [wifi-connect] ./ui/index.html
[Build]   ./ui/img/
[Build]   ./ui/img/favicon.png
[Build]   ./ui/img/logo.svg
[Build]   [wifi-connect] Removing intermediate container 835f7507cd1f
[Build]   [wifi-connect]  ---> c736f7bd59a5
[Build]   [wifi-connect] Step 6/9 : COPY ./start.sh .
[Build]   [wifi-connect]  ---> 0a5003092a7c
[Build]   [wifi-connect] Step 7/9 : CMD ["bash", "start.sh"]
[Build]   [wifi-connect]  ---> Running in c3aae718be9f
[Build]   [wifi-connect] Removing intermediate container c3aae718be9f
[Build]   [wifi-connect]  ---> 712db306b3ee
[Build]   [wifi-connect] Step 8/9 : LABEL io.resin.local.image=1
[Build]   [wifi-connect]  ---> Running in e4575f862bc8
[Build]   [wifi-connect] Removing intermediate container e4575f862bc8
[Build]   [wifi-connect]  ---> d1d494e446be
[Build]   [wifi-connect] Step 9/9 : LABEL io.resin.local.service=wifi-connect
[Build]   [wifi-connect]  ---> Running in f05579aec91d
[Build]   [wifi-connect] Removing intermediate container f05579aec91d
[Build]   [wifi-connect]  ---> 36cd61f29028
[Build]   [wifi-connect] Successfully built 36cd61f29028
[Build]   [wifi-connect] Successfully tagged local_image_wifi-connect:latest
[Debug]   Setting device state...
[Debug]   Sending request to http://192.168.1.120:48484/v2/local/target-state
[Debug]   Sending target state: {"local":{"name":"hidden-dust","config":{"HOST_CONFIG_disable_splash":"1","HOST_CONFIG_dtparam":"\"i2c_arm=on\",\"spi=on\",\"audio=on\"","HOST_CONFIG_enable_uart":"1","HOST_CONFIG_gpu_mem":"16","SUPERVISOR_LOCAL_MODE":"1","SUPERVISOR_POLL_INTERVAL":"900000","SUPERVISOR_VPN_CONTROL":"true","SUPERVISOR_INSTANT_UPDATE_TRIGGER":"true","SUPERVISOR_CONNECTIVITY_CHECK":"true","SUPERVISOR_LOG_CONTROL":"true","SUPERVISOR_DELTA":"false","SUPERVISOR_DELTA_REQUEST_TIMEOUT":"30000","SUPERVISOR_DELTA_APPLY_TIMEOUT":"0","SUPERVISOR_DELTA_RETRY_COUNT":"30","SUPERVISOR_DELTA_RETRY_INTERVAL":"10000","SUPERVISOR_DELTA_VERSION":"2","SUPERVISOR_OVERRIDE_LOCK":"false","SUPERVISOR_PERSISTENT_LOGGING":"false"},"apps":{"1":{"name":"localapp","commit":"localrelease","releaseId":"1","services":{"1":{"environment":{},"labels":{},"restart":"always","privileged":true,"ports":["8080:8080"],"imageId":1,"serviceName":"wpe","serviceId":1,"image":"local_image_wpe:latest","running":true},"2":{"environment":{},"labels":{},"restart":"always","privileged":true,"imageId":2,"serviceName":"scheduler","serviceId":2,"image":"local_image_scheduler:latest","running":true},"3":{"environment":{},"labels":{"io.balena.features.dbus":"1","io.balena.features.firmware":"1"},"restart":"always","network_mode":"host","privileged":true,"imageId":3,"serviceName":"wifi-connect","serviceId":3,"image":"local_image_wifi-connect:latest","running":true}},"volumes":{},"networks":{}}}},"dependent":{"apps":[],"devices":[]}}
[Debug]   Sending request to http://192.168.1.120:48484/v2/local/target-state

[Debug]   Sending request to http://192.168.1.120:48484/v2/local/device-info
[Live]    Waiting for device state to settle...
[Info]    Streaming device logs...
[Live]    Watching for file changes...
[Logs]    [8/22/2019, 2:15:46 PM] [wpe] WARNING: WebProcess crashed: restarting it ...
[Logs]    [8/22/2019, 2:15:46 PM] [wpe] * failed to add service - already in use?
[Logs]    [8/22/2019, 2:15:46 PM] [wpe] * failed to add service - already in use?
[Logs]    [8/22/2019, 2:15:46 PM] [wpe] WARNING: WebProcess crashed: restarting it ...
[Logs]    [8/22/2019, 2:15:46 PM] [wpe] WARNING: WebProcess crashed: restarting it ...

Add shuffle images

It would be nice to add a variable that enables the shuffling of images in a slideshow instead of showing them in the regular order. Probably also check that all images from the array have been displayed before start repeating.

Tohora doesn't launch quick enough

Running on a Pi3B+, I am starting to see an issue where if WPE_URL is set, even though Tohora starts, the startup script is too fast and the wget command doesn't connect to it. I suggest adding another sleep to the branch if WPE_URL is set.

More fonts in wpe

I just installed this for the first time, and discovered that the selection of fonts is the wpe container is a bit limited.

How can I install more fonts in the wpe container?
It doesn't seem to be based on Debian?

Remove X-Frame-Options

Is it somehow possible to remove the X-Frame Options, of the pages loaded.

I want to load an url which contains a frame of an external page, which sets the X-Frame-Options to deny.

Error: Refused to display 'https://AN-URL-WITH-UNSECURE_FRAMES/' in a frame because it set 'X-Frame-Options' to 'deny'.

For my old dashboard with chrome I had this plugin enabled:
https://chrome.google.com/webstore/detail/ignore-x-frame-headers/gleekbfjekiniecknbkamfmkohkpodhe

Drops X-Frame-Options and Content-Security-Policy HTTP response headers, allowing all pages to be iframed.

Django integration

Hey folks, this might not be an issue. Anyway I am working on a project where I want Django and balena Dash on the same device. Is that in any way possible?

Page Load Error Inquiry

I had a quick question regarding the page that is displayed when the system experiences a network drop, a server error, or you go to setup a new wifi network on the device (image attached below). Is there a way to customize this page?

I tried digging into the code, but can not find where the page is hosted locally. I would like to customize the page so I can troubleshoot easier as well as possibly add a function that auto restarts WPE/the device periodically when in this state to see if the network has resolved itself/connected to the new network without having to unplug the device or login to the dashboard to manually restart it.

Any suggestions or tips would be greatly appreciated, thank you!

15785134552932053901067225226974

Browser not displayed, only console

When I run the latest master (81e28ec) I can't seem to get anything to appear on the screen except the balenaOS console output (screenshot to follow).

Type: Raspberry Pi 3 (using 64bit OS) (BETA)
Host OS: balenaOS 2.38.0+rev1 (development)
Supervisor: 9.15.7
Services:

  • wpe: 8fb2fe8
  • scheduer: 8fb2fe8
  • wifi-connect: 8fb2fe8

Logs

23.07.19 11:16:42 (+0000)  wifi-connect  Spider mode enabled. Check if remote file exists.
23.07.19 11:16:42 (+0000)  wifi-connect  --2019-07-23 11:16:42--  http://google.com/
23.07.19 11:16:43 (+0000)  wifi-connect  Resolving google.com (google.com)... 172.217.168.238, 2a00:1450:400e:809::200e
23.07.19 11:16:43 (+0000)  wifi-connect  Connecting to google.com (google.com)|172.217.168.238|:80... connected.
23.07.19 11:16:43 (+0000)  wifi-connect  HTTP request sent, awaiting response... 301 Moved Permanently
23.07.19 11:16:43 (+0000)  wifi-connect  Location: http://www.google.com/ [following]
23.07.19 11:16:43 (+0000)  wifi-connect  Spider mode enabled. Check if remote file exists.
23.07.19 11:16:43 (+0000)  wifi-connect  --2019-07-23 11:16:43--  http://www.google.com/
23.07.19 11:16:43 (+0000)  wifi-connect  Resolving www.google.com (www.google.com)... 172.217.19.196, 2a00:1450:400e:809::2004
23.07.19 11:16:43 (+0000)  wifi-connect  Connecting to www.google.com (www.google.com)|172.217.19.196|:80... connected.
23.07.19 11:16:43 (+0000)  wifi-connect  HTTP request sent, awaiting response... 200 OK
23.07.19 11:16:43 (+0000)  wifi-connect  Length: unspecified [text/html]
23.07.19 11:16:43 (+0000)  wifi-connect  Remote file exists and could contain further links,
23.07.19 11:16:43 (+0000)  wifi-connect  but recursion is disabled -- not retrieving.
23.07.19 11:16:43 (+0000)  wifi-connect  
23.07.19 11:16:43 (+0000)  wifi-connect  Skipping WiFi Connect
23.07.19 11:16:54 (+0000) Started service 'wpe sha256:c4d12e302e539a0ca9bdd77e754cea49d307b72f0546433ab0a087ed5f3bf4ea'
23.07.19 11:16:54 (+0000) Started service 'scheduler sha256:25eb4cca013915fa8c876653b9a0c685b52efdc3dbccefbe965eb1ec2aaffc43'
23.07.19 11:16:50 (+0000)  wpe  2019/07/23 11:16:50 Command is 'cog'
23.07.19 11:16:50 (+0000)  wpe  2019/07/23 11:16:50 Starting listening on port 8080
23.07.19 11:16:51 (+0000)  wpe  Connecting to localhost:8080 (127.0.0.1:8080)
23.07.19 11:16:51 (+0000)  wpe  2019/07/23 11:16:51 Launch page with desiredURL = 'https://www.google.co.uk/'. Slack: false
23.07.19 11:16:51 (+0000)  wpe  2019/07/23 11:16:51 Redirecting to home page
23.07.19 11:16:51 (+0000)  wpe  2019/07/23 11:16:51 Running 'cog https://www.google.co.uk/'
23.07.19 11:16:51 (+0000)  wpe  2019/07/23 11:16:51 Responded with home page
index.html           100% |********************************|  2102  0:00:00 ETA
23.07.19 11:16:52 (+0000)  scheduler  /usr/src/start.sh: line 2: [: : integer expression expected
23.07.19 11:16:52 (+0000)  scheduler  crond[12]: crond (busybox 1.30.1) started, log level 8
23.07.19 11:17:43 (+0000)  wifi-connect  Spider mode enabled. Check if remote file exists.
23.07.19 11:17:43 (+0000)  wifi-connect  --2019-07-23 11:17:43--  http://google.com/
23.07.19 11:17:43 (+0000)  wifi-connect  Resolving google.com (google.com)... 172.217.168.238, 2a00:1450:400e:809::200e
23.07.19 11:17:43 (+0000)  wifi-connect  Connecting to google.com (google.com)|172.217.168.238|:80... connected.
23.07.19 11:17:43 (+0000)  wifi-connect  HTTP request sent, awaiting response... 301 Moved Permanently
23.07.19 11:17:43 (+0000)  wifi-connect  Location: http://www.google.com/ [following]
23.07.19 11:17:43 (+0000)  wifi-connect  Spider mode enabled. Check if remote file exists.
23.07.19 11:17:43 (+0000)  wifi-connect  --2019-07-23 11:17:43--  http://www.google.com/
23.07.19 11:17:43 (+0000)  wifi-connect  Resolving www.google.com (www.google.com)... 172.217.19.196, 2a00:1450:400e:809::2004
23.07.19 11:17:43 (+0000)  wifi-connect  Connecting to www.google.com (www.google.com)|172.217.19.196|:80... connected.
23.07.19 11:17:43 (+0000)  wifi-connect  HTTP request sent, awaiting response... 200 OK
23.07.19 11:17:43 (+0000)  wifi-connect  Length: unspecified [text/html]
23.07.19 11:17:43 (+0000)  wifi-connect  Remote file exists and could contain further links,
23.07.19 11:17:43 (+0000)  wifi-connect  but recursion is disabled -- not retrieving.
23.07.19 11:17:43 (+0000)  wifi-connect  
23.07.19 11:17:43 (+0000)  wifi-connect  Skipping WiFi Connect
23.07.19 11:18:43 (+0000)  wifi-connect  Spider mode enabled. Check if remote file exists.
23.07.19 11:18:43 (+0000)  wifi-connect  --2019-07-23 11:18:43--  http://google.com/
23.07.19 11:18:43 (+0000)  wifi-connect  Resolving google.com (google.com)... 172.217.168.238, 2a00:1450:400e:809::200e
23.07.19 11:18:43 (+0000)  wifi-connect  Connecting to google.com (google.com)|172.217.168.238|:80... connected.
23.07.19 11:18:43 (+0000)  wifi-connect  HTTP request sent, awaiting response... 301 Moved Permanently
23.07.19 11:18:43 (+0000)  wifi-connect  Location: http://www.google.com/ [following]
23.07.19 11:18:43 (+0000)  wifi-connect  Spider mode enabled. Check if remote file exists.
23.07.19 11:18:43 (+0000)  wifi-connect  --2019-07-23 11:18:43--  http://www.google.com/
23.07.19 11:18:43 (+0000)  wifi-connect  Resolving www.google.com (www.google.com)... 216.58.210.36, 2a00:1450:400e:809::2004
23.07.19 11:18:43 (+0000)  wifi-connect  Connecting to www.google.com (www.google.com)|216.58.210.36|:80... connected.
23.07.19 11:18:43 (+0000)  wifi-connect  HTTP request sent, awaiting response... 200 OK
23.07.19 11:18:43 (+0000)  wifi-connect  Length: unspecified [text/html]
23.07.19 11:18:43 (+0000)  wifi-connect  Remote file exists and could contain further links,
23.07.19 11:18:43 (+0000)  wifi-connect  but recursion is disabled -- not retrieving.
23.07.19 11:18:43 (+0000)  wifi-connect  
23.07.19 11:18:43 (+0000)  wifi-connect  Skipping WiFi Connect
23.07.19 11:19:43 (+0000)  wifi-connect  Spider mode enabled. Check if remote file exists.
23.07.19 11:19:43 (+0000)  wifi-connect  --2019-07-23 11:19:43--  http://google.com/
23.07.19 11:19:43 (+0000)  wifi-connect  Resolving google.com (google.com)... 172.217.168.238, 2a00:1450:400e:80d::200e
23.07.19 11:19:43 (+0000)  wifi-connect  Connecting to google.com (google.com)|172.217.168.238|:80... connected.
23.07.19 11:19:43 (+0000)  wifi-connect  HTTP request sent, awaiting response... 301 Moved Permanently
23.07.19 11:19:43 (+0000)  wifi-connect  Location: http://www.google.com/ [following]
23.07.19 11:19:43 (+0000)  wifi-connect  Spider mode enabled. Check if remote file exists.
23.07.19 11:19:43 (+0000)  wifi-connect  --2019-07-23 11:19:43--  http://www.google.com/
23.07.19 11:19:43 (+0000)  wifi-connect  Resolving www.google.com (www.google.com)... 216.58.210.36, 2a00:1450:400e:809::2004
23.07.19 11:19:43 (+0000)  wifi-connect  Connecting to www.google.com (www.google.com)|216.58.210.36|:80... connected.
23.07.19 11:19:44 (+0000)  wifi-connect  HTTP request sent, awaiting response... 200 OK
23.07.19 11:19:44 (+0000)  wifi-connect  Length: unspecified [text/html]
23.07.19 11:19:44 (+0000)  wifi-connect  Remote file exists and could contain further links,
23.07.19 11:19:44 (+0000)  wifi-connect  but recursion is disabled -- not retrieving.
23.07.19 11:19:44 (+0000)  wifi-connect  
23.07.19 11:19:44 (+0000)  wifi-connect  Skipping WiFi Connect
23.07.19 11:20:44 (+0000)  wifi-connect  Spider mode enabled. Check if remote file exists.
23.07.19 11:20:44 (+0000)  wifi-connect  --2019-07-23 11:20:44--  http://google.com/
23.07.19 11:20:49 (+0000)  wifi-connect  Resolving google.com (google.com)... 172.217.168.238, 2a00:1450:400e:80d::200e
23.07.19 11:20:49 (+0000)  wifi-connect  Connecting to google.com (google.com)|172.217.168.238|:80... connected.
23.07.19 11:20:49 (+0000)  wifi-connect  HTTP request sent, awaiting response... 301 Moved Permanently
23.07.19 11:20:49 (+0000)  wifi-connect  Location: http://www.google.com/ [following]
23.07.19 11:20:49 (+0000)  wifi-connect  Spider mode enabled. Check if remote file exists.
23.07.19 11:20:49 (+0000)  wifi-connect  --2019-07-23 11:20:49--  http://www.google.com/
23.07.19 11:20:49 (+0000)  wifi-connect  Resolving www.google.com (www.google.com)... 216.58.210.36, 2607:f8b0:4002:c08::6a
23.07.19 11:20:49 (+0000)  wifi-connect  Connecting to www.google.com (www.google.com)|216.58.210.36|:80... connected.
23.07.19 11:20:49 (+0000)  wifi-connect  HTTP request sent, awaiting response... 200 OK
23.07.19 11:20:49 (+0000)  wifi-connect  Length: unspecified [text/html]
23.07.19 11:20:49 (+0000)  wifi-connect  Remote file exists and could contain further links,
23.07.19 11:20:49 (+0000)  wifi-connect  but recursion is disabled -- not retrieving.
23.07.19 11:20:49 (+0000)  wifi-connect  
23.07.19 11:20:49 (+0000)  wifi-connect  Skipping WiFi Connect

Possible typo in udev files

[jtonello] A user is attempting to get the balena-dash to read from an attached USB, but he's getting errors. Is it possible that the /usr/src/app~/ path is a typo in photos/udev/usb.rules and photos/udev/copy.sh?

Black border at the top and left on rpi4

Hello all,

I'm using this project to display a web-app on the official rpi touchscreen with a raspberry pi 4 and I observe an undesired 3-4mm black border at the top and left sides of the screen.

IMG_20200616_095353

I don't know if this is intended or if it happens on the rpi3, but I was wondering if there's a way to remove it?

Thanks!

problem with WebProcess

right after i push the directory from my computer to my pi, i keep getting this error, and it doesn't stop. any ideas on why this could be happening?

Kiosk: Disable F1 Key?

When in Kiosk mode utilizing a keyboard, hitting F1 will bring up a Chromium browser page with help. If there an Environmental Variable setting that will disable some of the F key functions?

Low framerate and choppy videos

Hi balenaDash team,

Thank you for this great project. I'm trying to setup 2 displays in my university to display content for the IT department : web pages, announcements, newsfeeds, videos, etc. I find that I'm getting really choppy videos on youtube, twitch, etc. As suggested in a tutorial, I cranked the GPU memory to 296Mb but I'm still getting poor video performance. Should the videos be fullspeed or am I doing somethign wrong?

Thank you for your help and for this project!

ROTATE_DISPLAY does not behave as expected

I am trying to create a kiosk in portrait orientation. I have set an environment variable ROTATE_DISPLAY=left but this appears to rotate the chromium window and relocate it's top-left corner to the new position but it does not appear to resize the window to 1080x1920, as expected. I have tried specifying the window size manually, via WINDOW_SIZE=1080,1920 but that appears to just change the black area of the screen to white, but not render content there.

Furthermore, the touch-panel doesn't appear to rotate with the screen, although I think I have a solution for this by including xserver-xorg-input-libinput and modifying 40-libinput.conf.

I am using a Raspberry Pi 4 (4GB).

I would be extremely thankful for any assistance on this - I've been hitting my head on a wall for nearly a week now!

Installing the Balena-Cli not working

Hi i am trying to install the balena-cli with the comands shown on the video but when i type it it shows this

root@1d0396d:~# npm install balena-cli -g
bash: npm: command not found

can some one help me?

High DPI Screens scaling

Hey,

I would like to know if there is any way to make things I show on the Dashboard bigger.
I could think of

  • Lowering the Resolution
  • Changing the browsers scaling factor

I investigated a little on WPE but could not find how to do this. Does someone know if it's possible?

Google photos gallery only displays 501 first photos of album.

I'm encountering this issue where Google photos album is only loading the first 501 photos of an album, seeing the code it seems that is doing pretty simple fetching comparing to the iCloud one, any idea how it could be improved, any improvement to be done?

Not much versed in this Google photos web, but I could try with some guidance

Display resolution

Raspberry pi4 connected to 4k display on HDMI bootsup with 4k res.
When I run tvservice -s
I get state 0xa [HDMI CUSTOM RGB lim 16:9], 3840x2160 @ 30.00Hz, progressive

cat /sys/class/graphics/fb0/virtual_size
Gives
1920,1080

The Kiosk web url now displays on 1/4 of the screen alligned on top left.

Please advise.

Container keeps restarting if WPE_URL is undefined

https://github.com/balena-io-projects/balena-dash/blob/32361d047ccb99f9f4f694583f716ab69ff2f0cf/wpe/wpe-init#L41-L45

This block will be skipped if WPE_URL is not set, leading to the script exiting, leading to the container restarting forever.

The solution would be to add an else statement to the previous block, setting a default URL as stated in the README:

The default value is Youtube TV

Here is the thread explaining all the steps it took me to get here ๐Ÿ˜… : https://forums.balena.io/t/logbackend-server-responded-with-status-code-504/22564/18

Photo-gallary sometimes won't start or stops and only display Balena Logo

Running 3 Pi4's with
Host OS version balenaOS 2.56.0+rev1
Supervisor version 11.14.0
Current release 60211ae

The only difference in the 3 units is one is on a wired network and the other two are on WiFi network. The wired seems more stable but exhibits this behavior every once in a while after being rebooted. The logs last messages after a reboot are:
13.10.20 23:03:17 (+0000) kiosk 2020/10/13 23:03:17 Starting listening on port 8080
13.10.20 23:03:20 (+0000) kiosk Loading gallery
13.10.20 23:03:25 (+0000) kiosk 2020/10/13 23:03:25 Launch page with desiredURL = 'file:///home/chromium/public_html/index.html'. Slack: false
13.10.20 23:03:25 (+0000) kiosk 2020/10/13 23:03:25 Redirecting to home page
13.10.20 23:03:25 (+0000) kiosk 2020/10/13 23:03:25 Running '/home/chromium/launch.sh file:///home/chromium/public_html/index.html'
13.10.20 23:03:25 (+0000) kiosk 2020/10/13 23:03:25 Responded with home page

But it doesn't get past the Balena Logo. Just stops there and never displays the Google photo gallery.
I can provide other settings if more info is needed. I'm at wits end. I don't know where to look. The last "run" was everything was working fine for 3 weeks, then the two WiFi units started displaying the Logo. The logs all looks fine, show the gallery is reloading on schedule every 15 minutes per the Scheduler..... I rebooted the two WiFi units, tried restarting the app, tried restarting the Kiosk, tried restarting the Gallery. Finally got one of them working again, but the other is being stubborn.

Any ideas on something to try are welcome!

RP4 display all of the content, but not on the entire Screen for Chromium Update

I have been following this project for a while now, and may I start off by saying it is awesome! I recently updated to the latest version as I was hoping it being ported directly from the browser block, some issues would be resolved, main one being the sizing issue I am having on a Vizio 32" screen (Picture of specs and issue attached below.) When I updated, there were quite a few things that were resolved, but unfortunately this was not one...

I have tried solutions like the one outlined here, and even a large amount of other random configurations as well. The closest I can get is to it filling the entire length, but then it has an even shorter width with using the WINDOW_SIZE flag and I set it to 1920, 1080 as recommended. The odd things as that the Balena Logo displays full screen when it boots up, so I know it can display at that size, it's just the browser. Any suggestions?

TV Specs

Normal Configuration

1920, 1080 COnfiguration

Suggestion: Document that the kiosk can be used to display the photo app

Apologies if this is already included somewhere, but I couldn't find anything showing that the kiosk could be made to display the photo app on the monitor. A user on the forum was asking about this functionality (will link here in a moment).

On my device, I was able to get this to work by putting http://[ip address of my device]:8888 into the form at http://[ip address of my device]:8080. My device was in dev mode, though I don't think that should make a difference here.

Edit: And of course, you can also add http://photos:8888...which is a lot easier. ๐Ÿ˜

Loss of URL parameters from WPE_URL

This issue was originally raised in https://www.balena.io/blog/using-google-slides-with-balenadash/#comment-4549162493

The symptom is that google slides shows are not looping. I think I have isolated it to the extra "loop" parameter being lost from the URL being shown. If I browse to the web host (port 8080 on the host device), then I can see that the url parameters are being dropped:

https://docs.google.com/presentation/d/e/<identifier>/pub?start=true

when that needs to be:

https://docs.google.com/presentation/d/e/<identifier>/pub?start=true&loop=true&delayms=1000

Pasting that latter URL into the web app at port 8080 has the proper looping behavior, so I think it's not a problem with wpe itself. I think I have isolated this to wpe-init, where wget posts the URL to the web host:

https://github.com/balena-io-projects/balena-dash/blob/master/wpe/wpe-init#L41

What I'm pretty sure is happening is that the ampersands in the URL are being interpreted as separators between variables to post. So, instead of:

url=https://docs.google.com/presentation/d/e/<identifier>/pub?start=true&loop=true&delayms=1000

we are getting:

https://docs.google.com/presentation/d/e/<identifier>/pub?start=true
loop=true
delayms=1000

as separate variables. These seem to be getting passed along to the slideshow somehow (the delayms certainly seems to change), but the loop argument doesn't seem to stick.

I thought putting data into a file and then passing the file instead of a string might be a nice fix: https://superuser.com/a/1328046/184799

but unfortunately, the wget in the container doesn't support the --post-file parameter. I can't seem to track down where the true base image is - I followed it to a few users' personal repos, but got lost.

Is there a good way that you know of to prevent these URL parameters from getting stripped out and lost? Is it worthwhile to try to install a more complete wget implementation to try the --post-file approach?

Not support unicode

Cannot display unicode correctly, can only display rectangle rather than characters.

First image is repeated twice in rotation

Setup:

Pi4 w/ 2 gb ram
Host OS version: balenaOS 2.56.0+rev1
production
Supervisor version: 11.14.0
Balena-dash: current build

Device Variables:
CRON_SCHEDULE * */12 * * *
GALLERY_EFFECT false
GALLERY_IMAGE_STYLE contain
GALLERY_SLIDESHOW_DELAY 10000
GALLERY_URL https://photos.app.goo.gl/xxxxxxxxxxxxxx

Issue:
The first or last (not sure which it is) image in the Google Gallery repeats twice in the rotation (stays visible for two delays)

(The gallery images updating has resolved itself ?!?!!)

Issue where photos do not load automatically

First off thank you for a great and fun balena project I've enjoyed playing with it over the last few days. I am having a bit of an issue though.

Setup:
Raspberry pi 3 B+
64gb micro sd
Official Raspberry pi 7" touchscreen display

I am using the latest code off the master branch, no modifications except line break adjustments because I am on windows.

I specified a GALLERY_URL for google photos album and when I visit http://:8888 from my browser I see the correct photos.

However WPE is displaying a balena logo and so is my pi.

I can visit http://:8080 and manually specify http://photos:8888 and it does work as intended.

I believe there's an issue with https://github.com/balena-io-projects/balena-dash/blob/master/wpe/public_html/index.html. I am not a developer and js looks confusing to me so I can't be sure.

Please let me know what I am doing wrong.

Touch screen not working

I just installed this on a Rpi3B+ with the standard Rpi 7" touch screen.
The display works, but the touch-driver seems to be missing, as nothing happens when I touch the screen.

Add swipe to change photos

Another idea I was thinking was to add left and right swipe on the touch screen to advance the photos overriding the auto-advance timer. Not sure how tricky that might be. cc @dansku

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.