To Install:
- First make sure you are using pipenv. Use "pipenv install" to install dependencies.
- Some dependencies need to be installed locally outside of pipenv. Make sure you have "RPi.GPIO installed" using "sudo apt-get install RPi.GPIO".
- PIrigation uses SQLite. After installing dependencies, navigate to root of flask project, then open a Python REPL.
Type in:
- "from pirigation import db",
- "db create_all()" This creates the database and database tables.
- To run with flask, navigate to root of flask directory where "start.py" file is located. Run python3.7 start.py 4a. Need to upgrade to python 3.9.
ToDo: Need to rewrite database tables to work with new weather methods. Need to rewrite weather module. Currently it is broken as I am changing from darksky since Apple owns it now and wants to charge for its use. Change error messages completely. Use elixir instead of python.