Pi Wemo


Ref: http://www.instructables.com/id/Raspberry-Pi-WEMO-Control-Center/

Wow, what a pain in the arse.
Setup is fairly simple but getting it to actually work is another story.
As mentioned in the article, chmod 777 seemed to fix a multitude of problems though I am not sure it is the best way to do so.

It took some playing with python to get the layout the way I wanted it to look. I added w3 styling to hide for mobile devices.
When I have time, I will upload the source code. It requires two py files and a DB file.
One is the front end and the other is the backend that actually connects to the wemo's.

Since the website changes are reflected within the DB it is not really real time on the monitor side, such as it will not reflect when an internal schedule on the wemo turns a light off or the switch is manually turned off.
To get around this, I will probably run the backend python script as a scheduled task to insure that any outside changes are updated.

I also did some additional code to add the requestor IP to the logs for tracking.
It is however a handy interface for the pi via apache/cgi.

Wemo Python Controller