With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
I have a problem with this step"python ./wemo_backend.py I get this errorpython: can't open file './wemo_backend.py': [Errno 2] No such file or directory./send_wemo_commands.py multiupdate"-bash: ./send_wemo_commands.py: No such file or directoryIt seems that I have no database. Is it a SQL database I have to create?Run Rasbian jessie
Step 1 says this:The only two devices which work with this project are Belkin's WEMO Light Switch and Belkin's WEMO Plug.The devices I have are WemoSwitch, i.e. Model Number F7C027.Will that work?
I have the same issue, but I was only able to get that far when I started doing chmod/chgrp settings, etc. So here is my /usr/lib/cgi-bin:pi@raspberrypi:/usr/lib/cgi-bin $ ls -ltotal 8-rwxrwxrwx 1 root root 171 Sep 11 00:50 testit.cgi-rwxrwxrwx 1 root root 171 Sep 11 00:49 testit.pylrwxrwxrwx 1 root root 37 Sep 11 00:40 wemo_control2.py -> /home/pi/wemocontrol/wemo_control2.pypi@raspberrypi:/usr/lib/cgi-bin $ ls -ld /home/pi/wemocontrol/wemo_control2.py-rwxrwxrwx 1 pi pi 3893 Sep 10 22:39 /home/pi/wemocontrol/wemo_control2.pyThis works:http://192.168.1.172/cgi-bin/testit.pyThis doesn't:http://192.168.1.172/cgi-bin/wemo_control2.py?key=...Any ideas?Thanks,Scott
Raspberry Pi WEMO Control Center
Thank you for this tutorial. This made for fun Sunday afternoon project. Some notes:1) setting up Apache was a sticky wicket. Ended up piecing together various web sources to solve the issues. For me, the final trick was running these two pieces from https://www.digitalocean.com/community/tutorials/h...(note: thought the link above speaks of Python 3, I'm still using 2.7.9)<quote from external site>--Finally, we must register Python with Apache. To start, we disable multithreading processes.sudo a2dismod mpm_event--Then, we give Apache explicit permission to run scripts.sudo a2enmod mpm_prefork cgi</quote from external site>2) Step 3 above calls for command "sudo python-pip install peewee". I had to use "sudo pip install peewee".3) I had to relocate the images to an explicit image folder outside the project.4) One piece for improvement...after clicking on a device to change its state, the HTML has an autoload which continually loads that device to that state. So if I turn a light off, that light will continue to be turned off every time the page autoloads. This is a problem when you use another device or rule to change the state apart from the Raspberry Pi. The autoload page HTML should always load the main control interface link, which does not automatically set the state on reload.Hope this helps the next person!
Hi,I was able to get Apache and all working but now I'm getting errors in wemo_backend.py (and AttributeError str object has no attribute commit_Select line 2696) send_wemo_commands.py (AttributeError: str object has no attribute drop_table in line 4606).It'd be great if you could help with the scripts.
Hi,Nice tutorial, unfortunately, I'm getting the following error:NameError: name 'SqliteDatabase' is not deinfedAny ideas?
Hello, I am new with Raspberry Pi. And I have a few questions. I want to connect a humidifier to the raspberry pi. So If i purchase a wemo switch, and plug the humidifier to the switch then i can control it with the Raspberry pi? Also when setting up the wemo switch, what are the steps? Like i turn the wemo switch on, then i connect it to the wifi, then i can follow the steps above and it should work on Raspberry Pi? Or do i need to build some sort of circuit? Also would it be easier to buy a humidifier that connects to the raspberry pi by usb instead of a plug? Thank you!
Thanks for this GREAT project.
Join 2 million + to receive instant DIY inspiration in your inbox.
Download our apps!
© 2016 Autodesk, Inc.