Skip to content

IoT for smart gardening. Programming for IoT applications. Politecnico di Torino. ICT4SS.

License

Notifications You must be signed in to change notification settings

iotprojectMPEG/smartgarden

Repository files navigation

IoT for Smart Gardening

Python Version GitHub GitHub Poetry

Internet of Things project for smart gardening.

Info

University

Politecnico di Torino / Polytechnic University of Turin

Course

Master of Science program in ICT for Smart Societies

01QWRBH - Programming for IoT applications

Documentation

Complete documentation of code can be found in docstrings of the scripts and on SmartGarden Wiki.

Getting started

Tools

  • Python 3.6 or higher
  • MQTT message broker

Installation of packages

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].

Virtual environment with 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

Config files

  • 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

Run the system

Catalog

./catalog/catalog.py

ThingSpeak adaptor

./thingspeak/thingspeak.py

Sensors

Strategies

Telegram bot

./telegram-bot/bot.py

Freeboard

./freeboard/freeboard.py

QT Interface

This allows you to add gardens, plants and devices.

./interface/interface.py

Sensors installation

Temperature and humidity sensor (DHT11)

Rain sensor

Light sensor

Team

  • Fassio Edoardo
  • Grasso Paolo
  • Maffei Marzia
  • Rende Gennaro

License

GPL-3.0

About

IoT for smart gardening. Programming for IoT applications. Politecnico di Torino. ICT4SS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •