Internet of Things project for smart gardening.
Politecnico di Torino / Polytechnic University of Turin
Master of Science program in ICT for Smart Societies
01QWRBH - Programming for IoT applications
Complete documentation of code can be found in docstrings of the scripts and on SmartGarden Wiki.
- Python 3.6 or higher
- MQTT message broker
It is recommended to setup a virtual environment in order to use specific versions of Python packages. The following instructions will help you in setting up the virtual environment with the help of Poetry. If you want to use a different software you can find the required packages in pyproject.toml under [tool.poetry.dependencies]
.
- Install Poetry:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
- Recommended: Configure Poetry it in order to create a virtual environment in a
.venv
folder inside the project directory:
poetry config virtualenvs.in-project true
- cd in project directory.
- Create the virtual environment and install Python packages and dependencies:
poetry install
- Activate the virtual environment:
Linux:
source .venv/bin/activate
Windows:
.venv\Scripts\activate
- Rename api.json.example in api.json. Then you can fill this file with all secret information like channel IDs of ThingSpeak.
- You can set all IP addresses, ports and Telegram token by running set-ip.py and following the instructions on screen:
./set-ip-py
- Go to Sensors installation in order to setup your sensors.
./catalog/catalog.py
./thingspeak/thingspeak.py
- Run all scripts of your sensors.
- Run all your strategies.
./telegram-bot/bot.py
./freeboard/freeboard.py
This allows you to add gardens, plants and devices.
./interface/interface.py
- Fassio Edoardo
- Grasso Paolo
- Maffei Marzia
- Rende Gennaro