Hi Paul, On Fri, Sep 14, 2012 at 2:09 PM, Paul Read <[email protected]> wrote: > Hi > > Brand new here so apologies for some daft questions. Firstly very impressed > how quick it was to get Monkey up and running on my Raspberry Pi :-) >
we are glad you like it :) > I want to be able to control the GPIO of the Pi via a webserver. I am using > WiringPi (https://projects.drogon.net/raspberry-pi/wiringpi/) to control the > GPIO which also works a treat. Now I want to join Monkey and WiringPi > together. So I can send a GET command to the RPi which then changes the > GPIO (at this stage I don't need the RPi to do any other HTTP stuff). > > Very happy at writing C/C++ but am brand new to: > > * Linux > * RaspberryPi > * gcc/cc > * Monkey-Project > > So my question is, how best should I do this? Potential options I believe > are: > > 1. Compile my WiringPi code into Monkey-Project somewhere somehow > 2. Create my WiringPi code as a CGI exe and make Monkey call it somehow > 3. Create my WiringPi code as a FastCGI exe and make Monkey call it somehow > 4. Plugins? > 5. Another undiscovered way... > I understand perfectly your requirements. The answer to your main question is "Duda". Duda[0] is a C framework which aims to expose a friendly C API to create web services on top of Monkey. So what you really need is to map specific URL address as internal commands, so your C web service links to the WiringPi library and you use it from there. Duda is under (heavy) development and i am almost ready to do the first release. Also i am planning to write some basic How To's for this weekend so you could start right away with your implementation, give me a 2-3 days to have something and then you send me some feedback, sounds a good deal ? :) [0] http://duda.io best, > > Again apologies if daft questions > Thanks > -- > Paul > > http://www.readiescards.co.uk > > > _______________________________________________ > Monkey mailing list > [email protected] > http://lists.monkey-project.com/listinfo/monkey > -- Eduardo Silva http://edsiper.linuxchile.cl http://www.monkey-project.com _______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
