Hi, I´m currently try to update a DateTime item via cURL but i didn´t get it working.
Here is my item:
DateTime DEV_01 "Device1 last detection [%1$td.%1$tm.%1$tY %1$tT]" <calendar>
And here is my code:
TimeDateFromNow = (time.strftime("%d.%m.%Y %H:%M:%S"))
os.system('/usr/bin/curl --header "Content-Type: text/plain" --request PUT --data "'+str(TimeDateFromNow)+'" http://localhost:8080/rest/items/DEV_01/state')
But the time / date value didn´t appear in OpenHAB.
Any ideas?