raspberry pi - How to schedule an action in python? -


i'd know how preform action every hour in python. raspberry pi should send me information temp , on every hour. possible?

i new python , linux, detailed explanation nice.

write python code having readings sensors in text or csv files , send them or dropbox account

and put cron job in linux run python script every hour

type in command line

sudo su 

then type

crontab -e 

in opened file enter:

/ 0 * * * * /home/pi/yourscript.py 

where /home/pi/yourscript.py fullpath python script , execute "yourscript.py" every 60 min.

to send code - have choose way- 1) can send inbox 2) dropbox account 3) sql data base in case have write script that.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -