Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
LK3 - http api - scheduler add/modify entry
#1
Hi guys,
I was trying to add or modify entry in scheduler via http api, but without success.
This is what we have: LK3 SW 1.67 | HW 3.8

These are working commands:
http://192.168.1.101/json/scheduler.json
http://192.168.1.101/outs.cgi?out0=1
http://192.168.1.101/outs.cgi?out0=0

This is not working:
Kod:
http://192.168.1.101/post.cgi?sched_save&s0=test1*0*1*36000*0*127*1&&


Entries in scheduler are not modified or added. I was trying different formats, but not working.

I just paste commands into web-browser address box without any authentization.

Do you have any idea, what could be wrong?
Odpowiedz
#2
Hi guys,
I was blind, but finally I have found, where I was doing it wrong. It's a POST, not GET! So not possible to send that command via web browser. :o)
Working example how to send it from windows cmd:

Kod:
curl -i -X POST -d "&s0=night-on*0*1*64800*0*127*1&s1=night-off*0*0*82800*0*127*1&s2=morning-on*0*1*12600*0*127*1&s3=morning-off*0*0*22200*0*127*1&&" http://192.168.1.171/post.cgi?sched_save
Odpowiedz


Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości