Author Topic: Kiosk web station for ATOM pages  (Read 2682 times)

rhine

Kiosk web station for ATOM pages
« on: February 17, 2021, 09:10:05 pm »
We want a 'kiosk' style Raspberry Pi powered screen at the field to show local ATOM information, and we want to display multiple 'tiles' in the same web page, and we want this to be as 'hands off' as possible. This may be of interest to some of you.

We have a standard raspberry Pi with an attached screen and created 2 files under the 'pi' account

1. /home/pi/.config/lxsession/LXDE-pi
pi@kiosk:~/.config/lxsession/LXDE-pi $ cat autostart
@xset s 0 0
@xset s noblank
@xset s noexpose
@xset dpms 0 0 0
@chromium-browser --start-fullscreen --app=file:///home/pi/atom.html

2. /home/pi
pi@kiosk:~ $ cat atom.html
<!DOCTYPE html>
<html>
<head>
</head>
<frameset rows = "70%,30%">
   <frameset cols="100%">
      <frame name = "radar" src = "http://192.168.1.126:9000/VirtualRadar/desktop.html" />
   </frameset>
   <frameset cols="100%">
      <frame name = "metar" src = "http://192.168.1.126/metar.cgi" />
   </frameset>
</frameset>
</html>

Now as we power up the pi attached to the screen, we see the local VRS data, and also the METARs in a separate tile below.

This is of course using our local ATOM station address, and suspect that the correct solution is to use https://data.pilotaware.com as our datasource, but have not yet worked out how to automate the passing of our credentials.

A poor photo of the result, but you get the idea.

http://gofile.me/6GyYg/uIzb48oyW

Richard

steveu

Re: Kiosk web station for ATOM pages
« Reply #1 on: February 17, 2021, 09:48:51 pm »
In order to have both screens full screen, I set up two tabs in the browser, went full screen, then had the script send the command "Ctrl-Tab" every 45 seconds to switch between them.

I found it easier to use the local station address, as no credentials are required, and this means that if someone does decide they can attempt to mend things, they aren't already logged into the ATOM station.

Raspberry Pi runs in kiosk mode with no keyboard, switch on at the mains for both display and Pi, then switch off when done....

rhine

Re: Kiosk web station for ATOM pages
« Reply #2 on: February 17, 2021, 10:12:23 pm »
Sounds good! Can you share the details please? Github? Thanks, Richard

exfirepro

Re: Kiosk web station for ATOM pages
« Reply #3 on: February 17, 2021, 11:28:24 pm »
Hi Richard,

Quote
This is of course using our local ATOM station address, and suspect that the correct solution is to use https://data.pilotaware.com as our datasource, but have not yet worked out how to automate the passing of our credentials.

The system is designed to operate direct from your Atom, accessed via its local IP to a tablet or laptop, or to a monitor/screen driven by a separate Pi operating in Kiosk mode. It’s definitely not a good idea to try to run a display via data.pilotaware.com as this is a secure network, the login details for which are not for general circulation and should be restricted to the station maintainer only.

I would, by the way, also be interested to see your setup recommendation, Steve.

Regards

Peter

Admin

Re: Kiosk web station for ATOM pages
« Reply #4 on: February 18, 2021, 08:12:02 am »
We have a similar kiosk setup for trade shows, this looks great

The atom station is advertising its address over mdns, in which case I recommend changing the address to
http://ognpaw.local

As Peter mentions, please do not use data.pilotaware.com, this is intended for maintenance purposes

Thx
Lee

steveu

Re: Kiosk web station for ATOM pages
« Reply #5 on: February 18, 2021, 12:03:02 pm »
I would, by the way, also be interested to see your setup recommendation, Steve.

Wilco.

So hard lesson learned, but was suspected all along - the Pi 2 does not have the muscle to run the VRS. An old flat panel computer screen was sourced from the loft.

When it has finished loading up, Chromium just sat there but never got the stage of showing the VRS.

So, a free Pi 3B donated by a friend was used. The SD card was just transferred.

The destructions from this page were used:

https://pimylifeup.com/raspberry-pi-kiosk/

And the resulting effort then just worked.

There is no keyboard attached to the Pi and screen.

There is a sticker on the screen telling users to power on to use, and to power off when done.

I used 45 seconds for the two tabs, so they get 45 seconds of the VRS, then 45 seconds of the METAR.

Should the whole thing drop dead, it has no effect on the ATOM station.

With no keyboard or mouse, no one is tempted to load anything, or fix it.

rhine

Re: Kiosk web station for ATOM pages
« Reply #6 on: February 18, 2021, 02:53:51 pm »
Will continue to only use local addresses of the ATOM station and not try to look at data.pilotaware any more ...

Steve - thanks for the 'kiosk automated browser' links.

Cheers, Richard