ThomasH
Posts: 5
Joined: Wed Mar 06, 2013 9:06 pm

Simple Dashboard

Sat Mar 23, 2013 8:10 pm

This is a simple dashboard which can be customized without knowledge in php.

There are much nicer solutions but already to complex for me to add own commands when having basically no knowledge in php programming.

With this dashboard I can perform basic testing of my raspberry using my ipad without typing any command - just pressing buttons.

1) index.php - This file containing simple HTML
2) services.php - script to generate buttons for system commands
2) services.json - file with system commands

Image

Below is an example for the configuration file services.json

{
"step 90 <-": "/home/pi/gpio/step.py -d 90",
"step 360 <-": "/home/pi/gpio/step.py -d 360",
"step 90 ->": "/home/pi/gpio/step.py -r -d 90",
"step 360 ->": "/home/pi/gpio/step.py -r -d 360",
"avrio ": "/home/pi/avrio/avrio.py",
"avrio 10": "/home/pi/avrio/avrio.py -r 10",
"avrio html": "/home/pi/avrio/avrio.py -w",
"show messages": "tail --lines=20 /var/log/messages",
"show systemlog": "tail --lines=20 /var/log/syslog",
"Systemzeit": "date",
"show cron log": "tail --lines=20 /home/pi/crontab.log"
}
Attachments
dashboard.zip
(1.96 KiB) Downloaded 131 times

Return to “Automation, sensing and robotics”