Datenbank per cron schreiben
Create cron table (option “-e” edit user crontab file)
> <strong>crontab -e
</strong>
/home/pi/avrio/avrio-writedb.sh# start script every 15min to write into mysql database
*/15 * * * *
> <strong>crontab -l | grep avrio</strong>
> */15 * * * * /home/pi/avrio/avrio-writedb.sh
> <strong>nano </strong>.py > chmod +x<code><strong>/home/pi/avrio/avrio-writedb.sh</strong>
#!/bin/bash
python <code>/home/pi/avrio/avrio-writedb<code>/home/pi/avrio/avrio-writedb.sh