These steps were tested on a blank Windows 8.1 system. If you must work on windows, this should help you get started.
- Openssl, required by Mosquitto.
- The Mosquitto MQTT broker
- Git, for checking our the source code.
- Python 2.7
In a command window:
c:\Python27\Scripts\pip.exe install virtualenv
In an explorer window, in the location where you want to do your development, right click and choose "Git bash here". You will now be in a shell that would be familiar to all users of decent operating systems. Run these commands to check out the source.
git clone https://github.com/izak/ib.bluelantern.git
cd ib.bluelantern
/c/Python27/Scripts/virtualenv venv
venv/Scripts/pip install -e .
In another command window, run the MQTT broker.
c:\Program Files\mosquitto\mosquitto.exe
Finally, in the git bash window, run:
venv/Scripts/python scripts/simulate_load.py &
venv/Scripts/python scripts/simulate_mppt.py &
venv/Scripts/pserve.exe development.ini
Then open the UI in a browser. Presently it does not work in IE, but IE is not a real browser.
To kill the pyramid service, hit ctrl+c
. To kill the backgrounded simulation
processes, type jobs
to list them, then fg
to bring to the forgeround, and
ctrl+c
to stop.
You can always get the latest version of the source code by opening a bash shell and typing (inside the source folder):
git pull
A discussion of git development processes is beyond the scope of this document.