This is the software that runs on the raspberry pi on each of the PIVI sensors along with the provisioning software to deploy the PIVI stack on a Raspberry Pi
All the code in this repository is licensed Creative Commons
Copyright (C) 2014, 2015 LESS Induestries S.A.
Author: Lucas Chiesa [email protected]
The different directories contain:
- configs: system configuration files that get installed on the rpi when deploying the software
- setup: scripts for creating the raspbian installation using python fabric.
- pyvi: python module which contains all the core logic (reading the measurements from the sensors, and sending them to the cloud). It also contains the main program that runs on the rpi during sensor operation.
- webserver: super simple debugging webserver, you can see the system logs and send them via email to a designated address.
To start a virtual sensor on a computer (and help debug the software):
- clone this repo and cd into it
- virtualenv env
- source env/bin/activate
- pip install -r REQUIREMENTS.txt
- cd pyvi
- python setup.py install
- Verify the virtual.cfg file (make sure the log directory exists, set virtual = True and server to localhost)
- Pyvi virtual.cfg
- Check the logs on the directory you specified
- On another console, also sourcing the virtualenv
- python tests/server.py