Why do think that I am kidding? I went to that site but when I click on button's my led is not workingI'm not being mean but you got be kidding me did you even go to http://softxide.com/iot/home_auto/
the are hosting the page to poll there
Why do think that I am kidding? I went to that site but when I click on button's my led is not workingI'm not being mean but you got be kidding me did you even go to http://softxide.com/iot/home_auto/
the are hosting the page to poll there
When I am using your code I am getting this errorMake changes to this file to point to your web server rasbpi.py
What does it mean ? do you mean I have to do change in your code or I think you are saying that all those files will have to be executed on a server. What I have read and understand that server should be run on raspberry. Can you tell me, where the server are running ?To use my code you have to host the files on a server.
Actually I am also trying with my raspberry board. I want to do it this like you have done. I have also computer and pi. I have installed apache and php in pi. Do i have to install apcche and php in my computer?This is what they did there polling a webserver.
What i did is install apache and php on my second computer I then run the rasbpi.py on my pi
I changed the code to point to my wedserver.
Look at post #22 There is error in line 19You could run it all on the pi
try this
import RPi.GPIO as GPIO
import urllib2
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(26,GPIO.OUT)
true = 1
while(true):
try:
response = urllib2.urlopen('http://You.ser.add.com/buttonStatus.php')
status = response.read()
except urllib2.HTTPError, e:
print e.code
except urllib2.URLError, e:
print e.args
print status
if status=='ON':
print ("setting GPIO 26")
GPIO.output(26,True)
elif status=='OFF':
GPIO.output(26,False)
The first thing I wrote Python program which turn on/off LED without web browser after that I was trying to turn on/off LED using web page. I was following your advice But Problem is that I am not successful yet to turn on/off LED using web browser.Need to no more about what you are using and what you turned on on your pi
I am using 16 GB micro SD Card. I have installed raspbain jessie lite into my PiThe disk you used with the pi is it the noob full install disk
I have a older one im sure cause i just looked you need a 8 g SD card now or bigger
I don't think there is matter of full noob. pi gpi0 is library we can download or install. there are many library for controlling gpio of PiThats why it don't work lol you have to install the stuff they put on the noob full.
I come's with software to use pi gpi0
Right that's the scary part LOL you get the wrong one.there are many library for controlling gpio of Pi
I was using wiring Pi But the problem is in the program how can it be removeRight that's the scary part LOL you get the wrong one.