Http way to reset one of the pulse counters
-
- Posts: 9
- Joined: Wed Apr 01, 2015 1:53 pm
Http way to reset one of the pulse counters
Hi,
I've been trying to figure it myself, I failed.
I'm looking for the method to reset just one of my pulse counters via http request or post.
I know there is a serial command: ^^^SYSRSP3. It works when sent via serial port.
What would be the URL command I could use with my Vera plug-in?
Help appreciated...
I've been trying to figure it myself, I failed.
I'm looking for the method to reset just one of my pulse counters via http request or post.
I know there is a serial command: ^^^SYSRSP3. It works when sent via serial port.
What would be the URL command I could use with my Vera plug-in?
Help appreciated...
Last edited by lowang on Wed Dec 02, 2015 1:00 pm, edited 2 times in total.
-
- Site Admin
- Posts: 4269
- Joined: Fri Jun 04, 2010 9:39 am
Re: Http way to reset one of the pulse counters
Could you send the command in an HTTP Post body? It'll throw everything away until it reaches characters it recognizes, once it sees ^^^, it recognizes a command may be coming.lowang wrote:Hi,
I've been trying to figure myself, I failed.
I'm looking the method to reset just one of my pulse counters via http request or post.
I know there is a serial command: ^^^SYSRSP3. It works when sent via serial port.
What would be the URL comand I could use with my Vera plug-in?
Help appreciated...
Ben
Brultech Research Inc.
E: ben(at)brultech.com
Brultech Research Inc.
E: ben(at)brultech.com
-
- Posts: 9
- Joined: Wed Apr 01, 2015 1:53 pm
Re: Http way to reset one of the pulse counters
Hi Ben,
I've tried many times: <GEM IP>/^^^SYSRSP3.
This doesn't do anything besides openining the GEM setup page, counter not reseted..
My GEM is WiFi version.
Could you check it with Ethernet one, please?
Regards
I've tried many times: <GEM IP>/^^^SYSRSP3.
This doesn't do anything besides openining the GEM setup page, counter not reseted..
My GEM is WiFi version.
Could you check it with Ethernet one, please?
Regards
-
- Site Admin
- Posts: 4269
- Joined: Fri Jun 04, 2010 9:39 am
Re: Http way to reset one of the pulse counters
Ah right, as it'll render it as a GET request.lowang wrote:Hi Ben,
I've tried many times: <GEM IP>/^^^SYSRSP3.
This doesn't do anything besides openining the GEM setup page, counter not reseted..
My GEM is WiFi version.
Could you check it with Ethernet one, please?
Regards
Does it absolutely have to be an HTTP request?
Ben
Brultech Research Inc.
E: ben(at)brultech.com
Brultech Research Inc.
E: ben(at)brultech.com
-
- Posts: 9
- Joined: Wed Apr 01, 2015 1:53 pm
Re: Http way to reset one of the pulse counters
Ben,
it dosen't, I just need a way, simple way of doing that. The idea is to reset the gas counter without touching the others (2x water counters).
it dosen't, I just need a way, simple way of doing that. The idea is to reset the gas counter without touching the others (2x water counters).
-
- Site Admin
- Posts: 4269
- Joined: Fri Jun 04, 2010 9:39 am
Re: Http way to reset one of the pulse counters
Can you open (or just use the existing) TCP connection and send "^^^SYSRSP3"? It should work via TCP like it works via serial.lowang wrote:Ben,
it dosen't, I just need a way, simple way of doing that. The idea is to reset the gas counter without touching the others (2x water counters).
Ben
Brultech Research Inc.
E: ben(at)brultech.com
Brultech Research Inc.
E: ben(at)brultech.com
-
- Posts: 9
- Joined: Wed Apr 01, 2015 1:53 pm
Re: Http way to reset one of the pulse counters
Hi Ben,
I tested SSH and Telnet and it works. Any chance to do the same with URL POST or GET?
I tested SSH and Telnet and it works. Any chance to do the same with URL POST or GET?
-
- Site Admin
- Posts: 4269
- Joined: Fri Jun 04, 2010 9:39 am
Re: Http way to reset one of the pulse counters
Might be able to do it with a POST (put the command in the body). Can't do it with a GET as it'll assume you're looking for the setup page.lowang wrote:Hi Ben,
I tested SSH and Telnet and it works. Any chance to do the same with URL POST or GET?
Ben
Brultech Research Inc.
E: ben(at)brultech.com
Brultech Research Inc.
E: ben(at)brultech.com
-
- Posts: 9
- Joined: Wed Apr 01, 2015 1:53 pm
Re: Http way to reset one of the pulse counters
OK Ben,
finally I made it, just a simple lua code for sending the POST (via http socket)
Thanks
finally I made it, just a simple lua code for sending the POST (via http socket)
Thanks