i have been using a timestamp in my script which works perfectly for a while now
Code: Select all
local time=domoticz.time.rawTimeon 16:10(time in synology, domoticz and domoticz log) a script was activated which does 2 things
update a text device with a message and timestamp
send that message through telegram to an iphone
for sending a message to telegram i use
os.execute('curl --data chat_id=xxxxx --data parse_mode=Markdown --data-urlencode "text='..line..'" "https://api.telegram.org/botblablabla/sendMessage"')
the time displayed in the text device is 2:20 (should be 16:10)
the time the message was received on the iphone was 2:20 (should be local time iphone 16:10)
so howcome the time variable was wrong while the current time was someting else.
could it be i am using time as a variable which is perhaps reserved.