Running Simple Python Scripts Continually


ashr

Recommended Posts

Just looking for some advise. I've set my server up with the usual CouchPotato/Sonarr/DLNA/etc... but I'm wanting to take it a step further and go into home automation.

 

Is there a way I can run a script (PHP or Python) which pulls data (in this case - the weather report) from the internet, and then display it on a website or on another computer in the network? - I want to be able to run the script every 2 minutes (example), save the data received in a mySQL database (docker), and then pull it from the database onto a raspberry pi...

 

Any help would be appreciated.

Link to comment

Thanks detz. I understand the concept of how to do it ... I'm just struggling to put all the pieces together.

 

I've got a python script saved in a folder on my server, but is there a way of creating a run.sh cronjob without having to access the command line?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.