bballtwenty8/iDumpster — pull request #8 by bballtwenty8 (2014-12-08 16:13:58+00:00)
Title: Web state plugin

Integrated Web Server with Trucks and Dumpster models as provided. Started pika in a seperate thread and ran web server in main thread. Flask didn't play nice and threw errors saying it had to be in the main thread. Pika had no such complaints.

Map Model did not conform to the model discussed, left with demo data to show expected format from draw grid as discussed on 12/3. Can fix whenever we resolve the differing opinions of API as I don't know what to do with the current dict being returned.

#Usage

sudo python2.7 demo_web.py

**OR**

sudo python2.7 iDumpster_central.py -b "XXX" -p "XX" -c "XX:XX" -k X -s XXxXX

python2.7 iDumpster_simulated -b "XXX" -p "XX" -c "XX:XX" -k X

Navigate browser to localhost or IP of machine it is running on.