Open main menu

DAVE Developer's Wiki β

Changes

Visualize Fledge GUI on a local display
[[File:ORCA-TN-003-3.png|center|thumb|600x600px|Verifying that data is uploaded to the ThingsBoard IoT platform]]
==Visualize Fledge GUI on a local display==
To visualize the GUI on a the local display, we run a web browser configured to operate in kiosk mode.===Installing Weston===First of all, we install [https://wayland.freedesktop.org/ Weston], the compositor required by the browser.
<pre class="workstation-terminal">
</pre>
Create the file <code>/lib/systemd/system/weston.service</code> with the following contents:
</pre>
===Installing Chromium===
The browser used for this TN is [https://www.chromium.org/chromium-projects/ Chromium]. To install it, please follow these steps.
<pre class="workstation-terminal">
...
/lib/systemd/system/browser.service
[Unit]
Description=Chromium browser service
After=systemd-logind.service
StartLimitIntervalSec=0
Wants=dbus.socket
After=dbus.socket
 
[Service]
Type=simple
Restart=always
RestartSec=5
User=root
 
PAMName=chromium-autologin
 
ExecStart=/usr/bin/chromium --ozone-platform=wayland --kiosk --no-sandbox https://www.dave.eu
 
[Install]
WantedBy=graphical.target
 
 
 
 
armbian@sbcorca-00a5:~$ sudo systemctl enable browser
Created symlink /etc/systemd/system/graphical.target.wants/browser.service → /lib/systemd/system/browser.service.
4,650
edits