Search found 6 matches

by Leo
19 Nov 2018, 13:28
Forum: ESP Easy: Software
Topic: HTML Button Code to trigger GPIO 12 (Sonoff S20)
Replies: 12
Views: 9815

Re: HTML Button Code to trigger GPIO 12 (Sonoff S20)

For Wiki,
It took a while but it works great, thanks for your time and this good tip :)
by Leo
02 Nov 2018, 20:08
Forum: ESP Easy: Software
Topic: HTML Button Code to trigger GPIO 12 (Sonoff S20)
Replies: 12
Views: 9815

Re: HTML Button Code to trigger GPIO 12 (Sonoff S20)

Sorry, but i have no access or do not know how to access that page in my sonoff's.
I only have access to my html page on my IIS.
Is there maby another way to see the status of the sonoff without the cors (Access-Control-Allow-Origin) give me problems?

many thanks in advance!
by Leo
03 Oct 2018, 09:46
Forum: ESP Easy: Software
Topic: HTML Button Code to trigger GPIO 12 (Sonoff S20)
Replies: 12
Views: 9815

Re: HTML Button Code to trigger GPIO 12 (Sonoff S20)

Hello, Does someone have a solution in HTML to read the status of a sonoff S20 device via windows IIS. I want to use it to read it from my windows iis, without the 'Access-Control-Allow-Origin' errors function lampStatus() { var url = "http://192.168.2.50/control?cmd=Status,GPIO,12"; var f...
by Leo
31 Jul 2018, 12:52
Forum: ESP Easy: Software
Topic: HTML Button Code to trigger GPIO 12 (Sonoff S20)
Replies: 12
Views: 9815

Re: HTML Button Code to trigger GPIO 12 (Sonoff S20)

Hello again, I found a solution, but its only working localy not remotely. And the problem is CORS Note: my webserver is 192.168.2.100 and a sonoff S20 is on 192.168.2.52 In debug window from Chrome i find: Failed to load http://192.168.2.52/control?cmd=status,GPIO,12: No 'Access-Control-Allow-Origi...
by Leo
26 Jul 2018, 14:35
Forum: ESP Easy: Software
Topic: HTML Button Code to trigger GPIO 12 (Sonoff S20)
Replies: 12
Views: 9815

Re: HTML Button Code to trigger GPIO 12 (Sonoff S20)

I have at home a Workstation 24/7 on which my website is running. Via that website i want to switch SonOff s20 devices. So I make a selection of what I want to turn on or off via that website, and that site executes the commands to the relevant sonoffs. see a small example below: <!-- http://localho...
by Leo
18 Jul 2018, 11:29
Forum: ESP Easy: Software
Topic: HTML Button Code to trigger GPIO 12 (Sonoff S20)
Replies: 12
Views: 9815

Re: HTML Button Code to trigger GPIO 12 (Sonoff S20)

Has someone a solution/example for this question of macmeup. I use a small IIS server for home-automation, and use no MQTT or ifttt, only html. I use the commands: http://192.168.2.xx/control?cmd=gpio,12,1 http://192.168.2.xx/control?cmd=gpio,12,0 http://192.168.2.xx/control?cmd=status,GPIO,12 I get...