HTTP Post to activate GPIO

366 views
Skip to first unread message

Tim the Guy

unread,
Mar 11, 2015, 9:21:12 PM3/11/15
to web...@googlegroups.com
Hello all! I love seeing emails of developers helping developers in my Inbox. Now I have a question!

Is anyone familiar with/has anyone used Tasker (Android app) with WebIOPI? I figure the best way to activate a GPIO from Tasker is through the HTTP Post provided by WebIOPI and Tasker. I am struggling with what should go in each field of the Tasker function. I've attached an image here: http://imgur.com/OGGkRzO

If anyone can breakdown the usage of HTTP Post or (more desirable) break down use of WebIOPI with Tasker via HTTP Post it would be greatly appreciated.

hal8000b

unread,
Mar 14, 2015, 9:42:58 AM3/14/15
to web...@googlegroups.com


You don't need to use tasker for this.
When you create a webpage on your Pi, just open your Android browser at the webpage, so if your Pi is connected to
192.168.0.1  open that address in your browser. You can control the GPIO pins via the Webiopi interface.
Follow the examples on the Wiki:

https://code.google.com/p/webiopi/wiki/Tutorial_Basis

Now with Webiopi 0.71 it comes with weaved IoT so this means you can securely connect to your Pi through the web
interface from anywhere.  I have an Android Tablet and also run Andois x86 on a laptop, the Webiopi interface works
the same on any device with a web browser.  (Some browsers notably Internet Explorer may render the page differently
but you can still control the GPIO ports.)

Adrian Nicolaiev

unread,
Mar 15, 2015, 2:47:11 PM3/15/15
to web...@googlegroups.com
Hi Tim,

 I am struggling with what should go in each field of the Tasker function.

Example:
WebIOPi IP Address: 192.168.0.101
WebIOPi Username: webiopi
WebIOPi Password: raspberry
WebIOPi Port: 8000
WebIOPi GPIO: 8 and confirm that it is already set to OUT

You should use this Tasker HTTP Post configuration:

Server:Port

Path
/GPIO/8/value/1

 
If anyone can breakdown the usage of HTTP Post or (more desirable) break down 
use of WebIOPI with Tasker via HTTP Post it would be greatly appreciated.

This is the best place for you to learn what you need:
https://code.google.com/p/webiopi/wiki/RESTAPI

HTH and Happy Tasking,

Adrian Nicolaiev

Adrian Nicolaiev

unread,
Mar 15, 2015, 2:55:31 PM3/15/15
to web...@googlegroups.com
If you need to set GPIO 8 to OUT, before switching it to 1, just set another Tasker HTTP Post instance Path to:

/GPIO/8/function/OUT

Adam S

unread,
Apr 9, 2015, 10:14:12 AM4/9/15
to web...@googlegroups.com
This is one aspect of WebIOPI I wish I knew more about...  I know it is documented how to use the GET and POST functions on that page, but is there a guide from start to finish how to actually use it?  I don't know where to start to even use the GET and POST methods.
Reply all
Reply to author
Forward
0 new messages