This repository it contains the python modules explained below. The modules are pieces of a user-centric smart lighting mechanism and they are meant to work together with a decision algorithm - can be found here.
Please make sure you clone both repo's and setup an MQTT broker on the LAN.
- weatherinfo.py fetches weather related data (weather, sunrise etc) about Turin, Italy from OpenWeatherMap's API
- dweet.py contains a Class for using the Dweet.io servers for data communication between devices
- sensornode.py is a simulated PIR sensor
- switch.py launches an HTML web interface to control the system configuration which then modifies config.json
- pub_init.py initiates publishing & dweeting messages to the MQTT broker
- CherryPy - a pythonic, object-oriented HTTP framework
- Eclipse Mosquitto - an open source MQTT broker
- We used a Raspberry Pi to control the switches and real sensors but it's optional
This project is licensed under the MIT License - see the LICENSE file for details.