Page 1 of 1
GPIO input to trigger Scenes
Posted: Sun Apr 19, 2015 6:25 pm
by wcrosbie
Has anyone created an interface which would permit GPIO inputs to be used to trigger scenes? I'm thinking of having a simple wired keyboard some distance from the Raspberry Pi.
Re: GPIO input to trigger Scenes
Posted: Mon Apr 20, 2015 4:08 pm
by mcallegari
I believe this has been discussed already in this forum.
Together with serial input (and I would add I2C as well)
They are not supported for the simple fact that they would be niche applications.
You can write a plugin for that though and submit a Pull Request on GitHub
We ended up saying that a USB keyboard is the most convenient/cheaper way to do remote controlling.
Have a look at this:
https://www.youtube.com/watch?v=N3Nx0_epcuc
Re: GPIO input to trigger Scenes
Posted: Mon Apr 20, 2015 8:57 pm
by wcrosbie
Thanks for the reply.
Two questions:
1) Is there a document describing development on the Raspberry Pi itself?
2) Is the a plugin developer's guide?
Re: GPIO input to trigger Scenes
Posted: Mon Apr 20, 2015 8:57 pm
by mcallegari
wcrosbie wrote:1) Is there a document describing development on the Raspberry Pi itself?
No. It's a standard Linux based on Debian Wheezy. Every specific information can be found in the huge RPi forum:
https://www.raspberrypi.org/forums/
wcrosbie wrote:2) Is the a plugin developer's guide?
Unfortunately not. You need to study the code of one plugin and then implement a new one with the same structure.
I would say an easy one to learn from can be the loopback plugin.
Re: GPIO input to trigger Scenes
Posted: Tue Apr 21, 2015 12:15 pm
by wcrosbie
Thanks. The compile was long, but went mostly well once all the prerequisites were in place. I have also never seen or used QT before. The fftw3 library was the most troublesome. I ended up setting $SUBLIBS to -lfftw3 and then it was found.
I will have a look at the loopback plugin and others. Thanks.
I'll post back if/when I get something reasonable to share.