As the sign is mounted in the entrance of the building on the ground floor and the reception is on the 1st floor, this meant that if there was a fault of any kind showing on the screen, the first person to see this was inevitably one of QV Offices' clients as they walked into the building.
Although the QV Offices' team were able to check the Umbraco website address that the sign uses, this did not always mean that everything was working as expected. We noticed a couple of times that the sign had Wifi issues (it is now hard wired) and this caused the Chromium browser to render a 404 error when it tried to refresh the screen.
The simple monitoring solution
We added the following line to our refresh script, so that after the sign had been refreshed a screen shot of the Raspberry Pi would be taken:
import -display :0 -window root ~/screenshot.jpg
Finally we wrote a small Crontab task that ran on a QV Offices Mac that grabs this screen shot and saved it on the desktop, admittedly we have used a package that it not mega secure, but in reality this is an internal system that only runs an office sign, so we are not to concerned about it being hacked.
*/5 * * * * /usr/local/bin/sshpass -p 'password' /usr/bin/scp
pi@192.168.X.X:screenshot.jpg Desktop/QVScreenShot.jpg

Sometimes a quick and easy solution is better than a more complex and expensive one.
No comments:
Post a Comment