SmartLighting is VTTs project to enhance energy savings and efficiency of lighting in buildings. The system uses passive infrared sensors to turn on lights and sensors in luminaires to track times when lights are on. Every sensor works wirelessly and every event is stored in database for later inspection.
The purpose of this software is to analyze movement at the building’s monitored corridor and calculate the exact energy savings of SmartLighting system.
- Python 2.7 (https://www.python.org/)
- pip (should come paired with python)
- PostgreSQL Database (https://www.postgresql.org/)
Consider using virtualenv to keep your projects separate from eachother https://virtualenv.pypa.io/en/stable/
-
make sure you have all the requirements
-
clone the repository somewhere
-
navigate to repository folder and install dependencies with pip
pip install -r requirements.txt
-
modify a config.py file from template file dbconfig.py.TEMPLATE, which is found in SmartLighting/src/dbconfig.py.TEMPLATE
USER: your_postgres_username
PASSW: your_postgres_user_password
DBNAME: name_of_the_database_you_want_to_access
-
run main.py and optionally provide starting time for the analysis (See open issue about this)
python main.py 12.4.2015