willswire / balena-dashboards Goto Github PK
View Code? Open in Web Editor NEWManaged IoT ElectronJS Application for Web Dashboards
Managed IoT ElectronJS Application for Web Dashboards
Hi,
great project!
The credentials (username and password) of a website are not saved after restarting the raspberry pi.
I saw that another user had already reported this problem, but it seems to have not yet been resolved.
Do you think there is any way to fix it?
Thank you :)
Hi.
We use a dark schema in Grafana, so the white screen flickering during switching the dashboards (~1/2 sec.) is disturbing people in the office. If there is any chance to improve this behaviour we will be so happy.
Thanks,
M.
It works, thanks a lot!
But, there is another issue with Electron itself, which is not going to be appropriately installed (i use RPi2).
This issue #21070 was already reported.
Here is the error from the build log:
[electron] > [email protected] postinstall /usr/src/app/node_modules/electron
[electron] > node install.js
[electron] (node:38) UnhandledPromiseRejectionWarning: HTTPError: Response code 404 (Not Found)
[electron] at EventEmitter.<anonymous> (/usr/src/app/node_modules/got/source/as-stream.js:35:24)
[electron] at EventEmitter.emit (events.js:210:5)
[electron] at module.exports (/usr/src/app/node_modules/got/source/get-response.js:22:10)
[electron] at ClientRequest.handleResponse (/usr/src/app/node_modules/got/source/request-as-event-emitter.js:155:5)
[electron] at Object.onceWrapper (events.js:300:26)
[electron] at ClientRequest.emit (events.js:215:7)
[electron] at ClientRequest.origin.emit (/usr/src/app/node_modules/@szmarczak/http-timer/source/index.js:37:11)
[electron] at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:585:27)
[electron] at HTTPParser.parserOnHeadersComplete (_http_common.js:111:17)
[electron] at TLSSocket.socketOnData (_http_client.js:454:22)
[electron] (node:38) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
[electron] (node:38) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[
When it's downgraded to version 6.1.4, everything seems to be okay:
root@6f838e3:/usr/src/app# npm install electron@6
> [email protected] postinstall /usr/src/app/node_modules/electron
> node install.js
Downloading tmp-85-1-SHASUMS256.txt-6.1.4
[============================================>] 100.0% of 5.15 kB (5.15 kB/s)
+ [email protected]
added 112 packages from 96 contributors, removed 51 packages, updated 14 packages and audited 204 packages in 101.151s
found 0 vulnerabilities
╭────────────────────────────────────────────────────────────────╮
│ │
│ New minor version of npm available! 6.12.0 → 6.13.0 │
│ Changelog: https://github.com/npm/cli/releases/tag/v6.13.0 │
│ Run npm install -g npm to update! │
│ │
╰────────────────────────────────────────────────────────────────╯
root@6f838e3:/usr/src/app# ./start.sh &
[1] 96
Setting hostname...
Increased memory allocation
Removed temporary startx data
$NOVNC_PASSWORD is set
Storing X11 VNC password...
mkdir: cannot create directory ‘/root/.x11vnc’: File exists
stored passwd in file: /root/.x11vnc/passwd
Setup complete
The VNC desktop is: 6f838e3:1
PORT=5901
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.15.0-48-generic armv8l Raspbian
Current Operating System: Linux 6f838e3 4.19.71 #1 SMP Tue Sep 17 09:52:03 UTC 2019 armv7l
Kernel command line: coherent_pool=1M bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1200 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=null rootfstype=ext4 rootwait vt.global_cursor_default=0 root=PARTUUID=4f14f3cf-02 rootwait
Build Date: 05 June 2019 12:49:54PM
xorg-server 2:1.20.4-1+rpt1 (https://www.debian.org/support)
Current version of pixman: 0.36.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Nov 11 18:31:35 2019
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Starting dashboard...
The screen dimensions are: { width: 1920, height: 1200 }
The display will be kept alive: true
Slides created
Slides configured
Originally posted by @rudam in #5 (comment)
When I am trying to build and push code to raspberry I'am getting error:
[electron] Successfully built 44984bc9ca2f
[Info] Uploading images
[Success] Successfully uploaded images
[Error] Some services failed to build:
[Error] Service: vnc
[Error] Error: manifest for balenalib/raspberrypi4-64-alpine-python:latest not found
[Info] Built on arm01
[Error] Not deploying release.
Remote build failed
How can I fix it?
I want to ask for instructions or improvement if needed to be able to set the local timezone for the Electron container.
Thanks.
Having followed the instructions in the README, I just get a black screen. The machine is OK, I've use balena-dash OK, but this app doesn't seem to work.
I suspect it's something to do with the following error in the log, but I'm not sure:
25.04.19 12:03:33 (+0100) dashboard xauth: (argv):1: bad display name "f59629a:0" in "remove" command
Full log attached as well. Any suggestions greatly appreciated!
Hi,
Not really a issue but more a request if it is possible to program some lines which makes us able to add a variable to zoom in or out on a webpage.
Thanks in advance!
Dion
Hi,
I've searched for days to find a solution to this issue but i can't find one.
I'm far away from being a programmer but at least i tried.
Maybe the issue sounds familiar to u and you maybe could provide me a simple solution to this issue.
I've created a app and created the image for Raspberry Pi 2/3 but both giving me the same error.
Pushed the application from the standalone version of balena-cli on Windows 10.
We are currently running the Pi in a corporate network.
SETTINGS AND LOG FILES:
Additional settings on Device Configuration:
RESIN_HOST_CONFIG_avoid_warnings
not defined
1
RESIN_HOST_CONFIG_display_rotate
not defined
3
Settings in E(x) Environment Variables:
(Which i copied from the only open issue on this github page. We've also tried the settings from the README.md file)
NOVNC_PASSWORD
'mypassword'
SLIDE_0
https://google.nl/maps
SLIDE_COUNT
1
TIME_0
3600
This is the log when booting:
07.11.19 21:16:37 (+0100) Increased memory allocation
07.11.19 21:16:37 (+0100) Removed temporary startx data
07.11.19 21:16:37 (+0100) $NOVNC_PASSWORD is set
07.11.19 21:16:37 (+0100) Storing X11 VNC password...
07.11.19 21:16:37 (+0100) mkdir: cannot create directory ‘/root/.x11vnc’: File exists
07.11.19 21:16:37 (+0100) stored passwd in file: /root/.x11vnc/passwd
07.11.19 21:16:37 (+0100) Setup complete
07.11.19 21:16:37 (+0100) hostname: No address associated with hostname
07.11.19 21:16:37 (+0100) The VNC desktop is: c7b5e63:0
07.11.19 21:16:37 (+0100) PORT=5900
07.11.19 21:16:37 (+0100)
07.11.19 21:16:37 (+0100) xauth: (stdin):1: bad display name "c7b5e63:0" in "add" command
07.11.19 21:16:37 (+0100)
07.11.19 21:16:37 (+0100)
07.11.19 21:16:37 (+0100) X.Org X Server 1.20.4
07.11.19 21:16:37 (+0100) X Protocol Version 11, Revision 0
07.11.19 21:16:37 (+0100) Build Operating System: Linux 4.15.0-48-generic armv8l Raspbian
07.11.19 21:16:37 (+0100) Current Operating System: Linux c7b5e63 4.19.71 #1 SMP Tue Sep 17 04:20:14 UTC 2019 armv7l
07.11.19 21:16:37 (+0100) Kernel command line: coherent_pool=1M 8250.nr_uarts=0 bcm2708_fb.fbwidth=1016 bcm2708_fb.fbheight=1856 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 dwc_otg.lpm_enable=0 console=null rootfstype=ext4 rootwait vt.global_cursor_default=0 root=PARTUUID=5bc7238a-02 rootwait
07.11.19 21:16:37 (+0100) Build Date: 05 June 2019 12:49:54PM
07.11.19 21:16:37 (+0100) xorg-server 2:1.20.4-1+rpt1 (https://www.debian.org/support)
07.11.19 21:16:37 (+0100) Current version of pixman: 0.36.0
07.11.19 21:16:37 (+0100) Before reporting problems, check http://wiki.x.org
07.11.19 21:16:37 (+0100) to make sure that you have the latest version.
07.11.19 21:16:37 (+0100) Markers: (--) probed, (**) from config file, (==) default setting,
07.11.19 21:16:37 (+0100) (++) from command line, (!!) notice, (II) informational,
07.11.19 21:16:37 (+0100) (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
07.11.19 21:16:37 (+0100) (==) Log file: "/var/log/Xorg.0.log", Time: Thu Nov 7 20:16:37 2019
07.11.19 21:16:37 (+0100) (==) Using system config directory "/usr/share/X11/xorg.conf.d"
07.11.19 21:16:37 (+0100) (EE)
07.11.19 21:16:37 (+0100) Fatal server error:
07.11.19 21:16:37 (+0100) (EE) no screens found(EE)
07.11.19 21:16:37 (+0100) (EE)
07.11.19 21:16:37 (+0100) Please consult the The X.Org Foundation support
07.11.19 21:16:37 (+0100) at http://wiki.x.org
07.11.19 21:16:37 (+0100) for help.
07.11.19 21:16:37 (+0100) (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
07.11.19 21:16:37 (+0100) (EE)
07.11.19 21:16:37 (+0100) (EE) Server terminated with error (1). Closing log file.
07.11.19 21:16:52 (+0100) xinit: giving up
07.11.19 21:16:52 (+0100) xinit: unable to connect to X server: Connection refused
07.11.19 21:16:52 (+0100) xinit: server error
07.11.19 21:16:52 (+0100) xauth: (argv):1: bad display name "c7b5e63:0" in "remove" command
Our end goal is to use the Raspberry Pi in our office to display some custom made dashboard and pages which are running on our servers and are accessible from the wan network.
For the test we just used a simple google.nl/maps website to ensure that the pi could connect to the site.
I hope this is enough information provided and i hope to hear from u soon.
Hello
Currently I don't know how to use NoVNC service, the log has "http://e5024c4:80/vnc.html?Host= e5024c4&port=80" but I cannot access it. I also tried typing the IP address into a web browser but it didn't work either, please help me
Have you tried to set up the app with persistent authentication for some web pages? We want to display Google Datastudio reports, but obviously they're sensitive so the viewer needs to be logged in. I think I tried this a while back, and got it logged in, but then when the device restarts it loses the auth. Any ideas how we might do this?
Hi Team
Setting TIME_ONE seems to be getting ignored and URLs play continuesly, same with and override TIME_ONE Vs global.
v8.0.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.