Forum tinycontrol
LK3 - http api - scheduler add/modify entry - Wersja do druku

+- Forum tinycontrol (https://forum.tinycontrol.pl)
+-- Dział: LanKontroler - sprzęt i wersje wsadów, problemy, zastosowanie (https://forum.tinycontrol.pl/forumdisplay.php?fid=3)
+--- Dział: LanKontroler V3.5 (https://forum.tinycontrol.pl/forumdisplay.php?fid=28)
+--- Wątek: LK3 - http api - scheduler add/modify entry (/showthread.php?tid=3167)



LK3 - http api - scheduler add/modify entry - davidk - 02-26-2026

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?


RE: LK3 - http api - scheduler add/modify entry - davidk - 03-07-2026

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