Writing Plugin ..
It may not the proper place to ask for this help .. but I don't know where to ask ?
I am a beginner in programming ruby codes .. My background is only from this link >> Plamoni - Siriproxy Wiki
I want a way to open a webpage internally from my Siriproxy plugin to toggle a value on/off using GET form method from a HTML page stored on my PIC32 MCU .. to turn a light on/off
This is the PIC32 :
i used this code
listen_for /Turn light on/i do open('192.168.1.33/testing.html?light0=on') say "your light is on" request_completed end
after modifying and adding the above code to the >> plugins/siriproxy-example/lib/siriproxy-example.rb
but I keep getting error when command is issued
I think I am missing some codes to be initialized first or If you guys have a better way to do it, please share it with me ,,
Thanks
It was a gem required to make it running ,, i don't know how to make it working with my configuration ,, but ,, I added a plugin that uses some HTTP urls in its .rb file ,, and yeah i go it working fine for me now !