You can adjust this to your system as required by simply replacing 5 in the command with any number you want (i.e. The script above will run every 5 minutes with the */5 portion of the command. You can decide, but here is an example /home/pi/LConnect. You need to replace the path above with the path to where the bash shell will be placed when you create it. Now type the following command at the end of the file: */5 * * * * /wifi_monitor.shAt a terminal window on the raspberry pi, type the following command: crontab -e The cron job is setup by simply editing the cron tab file. Create a Python Script that will ping the local access point and reboot if no wifi is found.Create a Short bash shell that changes to the correct directory and starts a Python Script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |