/timeControlIN1?seconds=xxxx
ticteam opened this issue Β· comments
Hi,
with this project you saved lots of my hours π
are you still maintaining this ?
could it be that the /timeControlIN1?seconds=xxxx is not working ?
I tried it with different times, but the relay always switches on the value in line:
garageoPIner-server/garageoPIner.py
Line 127 in a859f30
Hi ticteam,
Thanks for reporting. I will look into this.
Can you explain a bit more what you are trying to achieve? What wait time do you expect and which time do you get?
I would like to have the possiblity to set the time how long the relay is working. (switches the current)
Like I understand exactly "/timeControlIN1?seconds=xxxx"
/timeControlIN1?seconds=10 --> relay switches 10 seconds
but every value I tried with this request,
/timeControlIN1?seconds=500
/timeControlIN1?seconds=5000
/timeControlIN1?seconds=10000
it's always 0.2 seconds switching
I see.
The time passed to the method controls how long the time between low/high toggle is.
So for 10 seconds it would look like this:
Receive call --> pin low, 0.2 wait, pin high -> 10 seconds wait --> pin low, 0.2 wait, pin high.
The 0.2 could be made adjustable by an additional parameter passed over the rest API.
ehm,
more this way
Receive call --> switch on, wait for 10 seconds, switch off
in regards to the pin (low/high)