PilotAware
British Forum => OGN-R PilotAware => Topic started by: bnmont on October 26, 2017, 01:28:20 pm
-
A couple of times Ive had to reboot my OGN setup, its normally on permanently.
Does anyone know of an off the shelf solution to switch on during daylight hours only, this would hopefully overcome my site being down for a few days without me noticing as it would reboot each day.
I currently use a 13 amp socket with inbuilt USB transformer and didnt really want to go timer switch plus transformer. Any ideas?
Thanks Brian
-
You can use cron in the Linux OS to schedule a reboot. I'm not a Linux person so you will need to look elsewhere for details.
I've not had to reboot mine, are you sure there is not another issue?
-
To be honest Ian, I dont know. It seems to stop reporting to the Onglide range tool and I just power down and back up. It then shows up OK. Twice since PWEverton has been running.
-
I think only twice is good !
A lot of stations have a hardware timer reboot, I think that theire is a lockup somewhere in the ogn code, I think it is related to recovering from internet connections which go up and down
I am pretty sure the pilotaware network code is more resilient
Thx
Lee
-
Glad I'm not alone with the problem!
Just trying to work out an easy way to power off and back on during daylight hours so it keepd doing what it is supposed to do.
-
Brian,
The easiest way would be to run the Pi power supply off a timer. I know of several installations which operate on this basis as they are very unlikely to be needed during the hours of darkness, but I have to agree with Ian - you need to investigate why your station is going down. Mine has been running 24/7 since it first went live back in June and the only time it has gone down is when I have done it deliberately e.g. to tweak the configuration. (Hope I haven't just jinxed it!!) 🙁
Regards
Peter
-
The easiest and cheapest is to use cron. If that doesn't work then buy a timer :)
-
There's more crash info here:
http://wiki.glidernet.org/raspberry-pi-increase-stability (http://wiki.glidernet.org/raspberry-pi-increase-stability)
-
cron reboot is a much better solution than abruptly turning off the power
is there a reboot facility within PAW itself, as I'm not comfortable just powering it off
(not that I have much choice, of course!)
-
is there a reboot facility within PAW itself, as I'm not comfortable just powering it off
There is a reboot on the web interface, but I think you are asking for a shutdown, rather than a reboot.
PilotAware should be immune to normal issues of pulling the power cord, this is done by mounting the SD card
as READONLY. All transient files (logs, /tmp, /var/log) are held in RAMFS, and so are not flushed to the disk.
Thx
Lee
-
The OGN-PAW is also set to Read Only IIRC, so it shouldn't be a problem just pulling the power.
-
The OGN-PAW is also set to Read Only IIRC, so it shouldn't be a problem just pulling the power.
aha I did not know that
clever stuff :)