Recently, I needed to run a python скрипт when raspberry started, checking messages in vk.com in an infinite loop.
The script does not work when writing it in either the crontab or /etc/rc.local .
Dancing with a tambourine and update-cd also did not bring results.
It starts only if you register it in .bashrc . (Everywhere he wrote absolute paths)
Python3 script.
The module works with vk.com: vk_api .
in crontab -e @reboot python3 /home/pi/bot/Start.py &> / dev / null
in /etc/rc.local python3 /home/pi/bot/Start.py &
if __name__ == "__main__": try: main() except Exception as det: print(R + "\n Error: " + str(det) + G) (R and G - color in the terminal)
/каталог, not aкаталог. - aleksandr barakin