Software to track ice cream truck, temperature, humidity , location and send via rest APi
First phase is to initially test each of the hardware individually before integrating with the whole project followed by creating the flask web api.
Main c code to integrate all the sensors would be in main_driver.ino
Mac
python3 -m venv venv
Windows
py -3 -m venv venv
Install libraries
pip install -r requirements.txt
Sometimes flask is confused and doesn't know what it wants, so tell it
export FLASK_APP=app.py
Database migrations
Intialise database
flask db init
Perform Migrations
flask db migrate -m 'add status'
flask db upgrade
This includes sites used for checking the pin setup and possible links to library to allow reproduction in case
install directly from library manager
- vcc - 5v
- gnd - gnd
- digital - pin 2
install library via Github repo
https://github.com/mikalhart/TinyGPSPlus
- vcc - 5v
- gnd - gnd
- rxd - pin3
- txd - pin4
install library via Github repo
https://github.com/mikalhart/TinyGPSPlus
- vcc - 5v
- gnd - gnd
- scl - Analog5
- sda - Analog4