penguintutor / pi-power

Web interface for Raspberry Pi Energenie Pi-Mote.
GNU General Public License v3.0
15 stars 14 forks source link

ENER314-RT #2

Open PRich13 opened 8 years ago

PRich13 commented 8 years ago

I'm currently working on trying to implement what you have managed here but with the newer Pi-mote from energenie, the ENER314-RT.

unfortunately the python library isn't compatible with this module yet and its taken a lot of effort to just get to the point where I can switch sockets on and off via terminal.

the only way to do that at the moment is to edit a script, compile it and then run that program.

is there anyway of implementing into this project the ability to run say:

sudo ~/bin/s1on

to turn switch 1 on for example?

penguintutor commented 8 years ago

I have not got the new module to be able to update the code at the moment.

If you have a command that you want to run from within a Python program then you can issue that using os.system().