Uses nanpy to control motors with a slave arduino
sudo python3 -m pip install virtualenv
python3 -m venv .env
source .env/bin/activate
pip install -r requirements.txt
Use cron to run the application via startapp.py
...
...
@reboot /home/pi/Documents/serversidepi/app.py >/home/pi/logs/pythonlog 2>&1
Create a file in
/etc/init.d
For example
/etc/init.d/superscript
place the startup of the camera inside the superscript e.g.
sh /home/pi/Documents/RPi_Cam_Web_Interface/start.sh >/home/pi/logs/cameralog 2>&1
A cool toy!
use command
mysql -p -u root
and then type in the desired password
weather
https://github.com/PyMySQL/PyMySQL this is your bible!!!
connect to database in postgres shell \c weather
delete first few records
DELETE FROM data;
create table data (date varchar(20), temperature varchar(20), pressure varchar(20), humidity varchar(20));
http://pymysql.readthedocs.io/en/latest/user/examples.html
TOTO: integrate this
https://www.pyimagesearch.com/2017/12/18/keras-deep-learning-raspberry-pi/
Always prefix a sse response with:
'data: insert a random string'