WebIOPi is a fully integrated Internet of Things framework for the Raspberry Pi.
Questions tagged [webiopi]
42 questions
8
votes
2 answers
Python encoding problems on startup script in Raspberry Pi debian
So I have a Raspberry Pi running Debian and the WebIOPi system. The daemon runs just fine when I start it using a standard start ´$ sudo /etc/init.d/webiopi start´ command but the auto start doesn't work ´$ sudo update-rc.d webiopi defaults´.
The…

Ingó Vals
- 4,788
- 14
- 65
- 113
8
votes
3 answers
CORS with python baseHTTPserver 501 (Unsupported method ('OPTIONS')) in chrome
Hi I need some help with base authentification while a ajax get/post request to a python baseHTTPserver.
I was able to change some lines of code in the python script for sending CORS headers. It works fine in modern browsers when I disable http…

user1532132
- 827
- 2
- 10
- 19
4
votes
1 answer
Getting the Raspberry Pi compatible with the IFTTT Maker channel
I'm really wondering what would be an efficient way to control your gpios or run scripts with the new ifttt.com/maker channel. It's really easy to trigger something from the raspberry pi, you just curl the given event url and then you trigger your…

franz101
- 41
- 4
3
votes
2 answers
Forward slash character ends variable in python/html
I am trying to pass a URL to a variable in python (youtube url of the video to be played on the Raspberry Pi), but somewhere along the way the forward slash character is being interpreted as an end of the string/variable. So instead of getting…

Marvos
- 267
- 2
- 3
- 11
2
votes
2 answers
Raspberry Pi Python pause a loop sequence, when button pushed
I have a raspberry PI 2. With a relay board, what i use to for a switch sequence (like a traffic light).
I use a tool, called "webiopi" what create buttons on a website. When the button is clicked the function of the python script below is…

Richard de Ree
- 2,329
- 4
- 30
- 47
2
votes
1 answer
Access gpio pins using webiopi
I want to access gpio pins online using webiopi. when one button will clicked color of the button will change to indicate whether it is 0 or 1. the buttons are showing but background color is not changing. i am new to webiopi. this is my code.…

Anup Sarkar
- 325
- 4
- 12
1
vote
1 answer
Enable Webiopi CORS request
I'd like to call the Webiopi REST API from my angular application in a browser running on the Raspberry. As Webiopi HTTP server doesn't allow CORS request, I have created a proxy with apache that sends the Header add "Access-Control-Allow-Origin"…

Perrier
- 2,753
- 5
- 33
- 53
1
vote
2 answers
Starting WebIOPi with Python 2 instead of Python 3
I have to run a python script with WebIOPi which include telepot for telegram bot. The problem is that I can only use telepot with Python2.7 but WebIOPi uses Python 3.4. How can I solve the problem?

marc.kr
- 23
- 6
1
vote
1 answer
WebIOPi error after Installation on Raspberry pi 3 (Ubuntu MATE 16.04)
I downloaded the WebIOPi-0.6.0.tar.gz from the web and extract it and ran the setup.sh. After installation when i run sudo webiopi it displays this..
ralph@ralph-desktop:~$ sudo webiopi
Traceback (most recent call last):
File…

Ralph
- 550
- 3
- 10
- 25
1
vote
1 answer
Return data from Rest API call from Swift NSURLsession
How do I get the data that is returned from a rest API call to Raspberry Pi's sensor?
I have been using postman to manipulate the GET and POST calls so I can see that it works and see the response. The information returned in the xcode console is as…

GSiklos
- 21
- 2
1
vote
0 answers
want to change a button text depending on the value from the script
Hi i got some problem with my webiopi html and script i cant change the button state depending on the value in the script.py im getting this error in chrome console
this is when it auto refresh the button.
POST…

Daniel darko
- 37
- 3
- 13
1
vote
1 answer
Exiting a continuous loop in python via webiopi
I'm using webiopi, and what I basically want to happen is that when the webpage loads, an idle loop which chases some LEDs runs. Then, when someone presses a button on the website, it will stop the idle loop.
Here's what I have so far:
import…

Photovor
- 403
- 1
- 6
- 17
1
vote
1 answer
How to use WebIOPi in existing website
I'm trying to use WebIOPi but I'm quite lost in getting it to work with my project.
Background:
I'm using Raspberry Pi B+ running Wheezy. I'm working on a web-based application that will only be accessed locally. I have a bunch of php files in…

Yvette
- 13
- 4
1
vote
0 answers
Link a python script to javascript on raspberry pi with webiopi
Hi im trying to control some solenoid valves via a raspberry pi, relays and external power supply. I have written a script in python below that works fine, for changing the value of the physical buttons but want to be able to also control it from a…

user3071226
- 11
- 1
- 2
1
vote
0 answers
Passing content of server-side text file to variable in *.js
I am using WebIOPi to create a program to control GPIO on a raspberry pi. I cannot use PHP as it conflicts with WebIOPI. I am altering the webiopi.js. I have it 99% there for my needs but I have to save two settings to the server. I decided to use a…

Paul
- 11
- 1