Skip to content
/ iot Public

Repository of developed code for lighting system control strategy

License

Notifications You must be signed in to change notification settings

heildever/iot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iot

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.

Getting Started

Please make sure you clone both repo's and setup an MQTT broker on the LAN.

Modules

  • 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

Built With

  • 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

License

License: MIT
This project is licensed under the MIT License - see the LICENSE file for details.

About

Repository of developed code for lighting system control strategy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages