zak45 wrote: ↑Sunday 04 November 2018 11:31
tomdh76 wrote: ↑Sunday 04 November 2018 8:16
Can you check in your ical folder who are owners of the files ical.py and plugin.py and owner of the ical.ics file?
I also wondered whether I should use sudo pip3 install colours etc... or just pip3 install colours etc..
Entry looks OK so do not see any problem.
I just wonder if you have play with the 'Timer Plan' settings ???
Except that, do not see why timers are not created...
I need a full Domoticz log and *output.* files (after removed any private entry)
Put plugin in debug mode
click twice on ical status device
In meantime, you can made some test on your side:
take a line that contains timer creation e.g.
__Request Domoticz to :
type=command¶m=addtimer&idx=445&active=true&timertype=5&date=2018-12-29&hour=00&min=00&randomness=false&command=1&days=0&level=-1&color= used encoding is : utf-8__
this is what we will request to Domotics to execute :
type=command¶m=addtimer&idx=445&active=true&timertype=5&date=2018-12-29&hour=00&min=00&randomness=false&command=1&days=0&level=-1&color=
idx=445 --> should be the device number of ical atwork device name
now add your domoticz ip address and port to the command with http and json htm e.g. :
http://127.0.0.1:8080/json.htm?type=command¶m=addtimer&idx=445&active=true&timertype=5&date=2018-12-29&hour=00&min=00&randomness=false&command=1&days=0&level=-1&color=
execute that on your prefered web browser
take a look in Domoticz, this should have created a timer entry for device IDX 445
For the right, not able to help you as I'm runnning in Windows, sorry...
but as you have all output files , looks like OK.
for testing purpose, could be nice to set
Default to AtWork: False
on the HW page parameters
Here is the domoticz output.
I do not know what you mean by timer plan settings? Is this a general setting?
If I enter in my webbrowser:
http://192.168.2.197:8080/json.htm?[/b]type=command¶m=addtimer&idx=445&active=true&timertype=5&date=2018-12-29&hour=00&min=00&randomness=false&command=1&days=0&level=-1&color=
I get status "Ok"and the timer is added
2018-11-04 12:04:20.251 Status: User: Admin initiated a switch command (446/Google calendar - Ical status/Off)
2018-11-04 12:04:24.150 (Google calendar) Oncommand called for unit 4 : parameter On , level: 0
2018-11-04 12:04:24.150 (Google calendar - Ical status) Updating device from 0:'Pause' to have values 1:'Resume'.
2018-11-04 12:04:24.153 (Google calendar) We update 1:'Resume' (Google calendar - Ical status)
2018-11-04 12:04:24.153 (Google calendar) We clean related files in plugin folder
2018-11-04 12:04:24.153 (Google calendar) We have deleted this file: /home/tomdh76/domoticz/plugins/iCal/20iCal.ics
2018-11-04 12:04:24.153 (Google calendar) We have deleted this file: /home/tomdh76/domoticz/plugins/iCal/20output.txt
2018-11-04 12:04:24.153 (Google calendar) We have deleted this file: /home/tomdh76/domoticz/plugins/iCal/20output.err
2018-11-04 12:04:24.153 (Google calendar) We have deleted this file: /home/tomdh76/domoticz/plugins/iCal/20iCal.ics.bkp
2018-11-04 12:04:24.153 (Google calendar) Command to execute : "/home/tomdh76/domoticz/plugins/iCal/iCal.sh" "/home/tomdh76/domoticz/plugins/iCal/iCal.py" "9003,Netherlands,,,20,
https://calendar.google.com/calendar/ic ... 2;4.447958" no
2018-11-04 12:04:24.539 (Google calendar) Pushing 'ProtocolDirective' on to queue
2018-11-04 12:04:24.539 (Google calendar) Pushing 'onConnectCallback' on to queue
2018-11-04 12:04:24.539 (Google calendar) Pushing 'ReadEvent' on to queue
2018-11-04 12:04:24.539 (Google calendar) Pushing 'ReadEvent' on to queue
2018-11-04 12:04:24.568 (Google calendar) Processing 'ProtocolDirective' message
2018-11-04 12:04:24.568 (Google calendar) Protocol set to: 'HTTP'.
2018-11-04 12:04:24.568 (Google calendar) Processing 'onConnectCallback' message
2018-11-04 12:04:24.568 (Google calendar) Calling message handler 'onConnect'.
2018-11-04 12:04:24.568 (Google calendar) Connected successfully to 127.0.0.1:60062
2018-11-04 12:04:24.568 (Google calendar) Deallocating connection object '127.0.0.1:59834' (127.0.0.1:59834).
2018-11-04 12:04:24.568 (Google calendar) Processing 'ReadEvent' message
2018-11-04 12:04:24.568 (Google calendar) Received 208 bytes of data
2018-11-04 12:04:24.568 (Google calendar) 50 4f 53 54 20 2f 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 POST./.HTTP/1.1..Hos
2018-11-04 12:04:24.568 (Google calendar) 74 3a 20 31 32 37 2e 30 2e 30 2e 31 3a 39 30 30 33 0d 0a 55 t:.127.0.0.1:9003..U
2018-11-04 12:04:24.568 (Google calendar) 73 65 72 2d 41 67 65 6e 74 3a 20 70 79 74 68 6f 6e 2d 72 65 ser-Agent:.python-re
2018-11-04 12:04:24.568 (Google calendar) 71 75 65 73 74 73 2f 32 2e 31 38 2e 31 0d 0a 41 63 63 65 70 quests/2.18.1..Accep
2018-11-04 12:04:24.568 (Google calendar) 74 2d 45 6e 63 6f 64 69 6e 67 3a 20 67 7a 69 70 2c 20 64 65 t-Encoding:.gzip,.de
2018-11-04 12:04:24.568 (Google calendar) 66 6c 61 74 65 0d 0a 41 63 63 65 70 74 3a 20 2a 2f 2a 0d 0a flate..Accept:.*/*..
2018-11-04 12:04:24.568 (Google calendar) 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d 61 6c 69 Connection:.keep-ali
2018-11-04 12:04:24.568 (Google calendar) 76 65 0d 0a 43 6f 6e 74 65 6e 74 2d 74 79 70 65 3a 20 74 65 ve..Content-type:.te
2018-11-04 12:04:24.568 (Google calendar) 78 74 2f 70 6c 61 69 6e 3b 20 63 68 61 72 73 65 74 3d 75 74 xt/plain;.charset=ut
2018-11-04 12:04:24.568 (Google calendar) 66 2d 38 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 3a f-8..Content-Length:
2018-11-04 12:04:24.568 (Google calendar) 20 31 32 31 0d 0a 0d 0a .. .. .. .. .. .. .. .. .. .. .. .. .121....
2018-11-04 12:04:24.568 (Google calendar) Processing 'ReadEvent' message
2018-11-04 12:04:24.568 (Google calendar) Received 121 bytes of data
2018-11-04 12:04:24.568 (Google calendar) 7b 22 73 74 61 74 75 73 22 3a 7b 22 73 74 65 70 22 3a 22 64 {"status":{"step":"d
2018-11-04 12:04:24.568 (Google calendar) 69 66 66 43 61 6c 22 2c 22 6d 73 67 22 3a 22 5f 5f 45 72 72 iffCal","msg":"__Err
2018-11-04 12:04:24.568 (Google calendar) 6f 72 20 69 6e 20 64 69 66 66 20 69 43 61 6c 2c 20 66 69 72 or.in.diff.iCal,.fir
2018-11-04 12:04:24.568 (Google calendar) 73 74 20 74 69 6d 65 20 65 78 65 63 75 74 69 6f 6e 20 74 68 st.time.execution.th
2018-11-04 12:04:24.568 (Google calendar) 69 73 20 63 61 6e 20 62 65 20 6e 6f 72 6d 61 6c 2c 20 77 65 is.can.be.normal,.we
2018-11-04 12:04:24.568 (Google calendar) 20 63 6f 6e 74 69 6e 75 65 20 61 6e 79 77 61 79 5f 5f 22 7d .continue.anyway__"}
2018-11-04 12:04:24.568 (Google calendar) 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. }
2018-11-04 12:04:24.568 (Google calendar) Pushing 'onMessageCallback' on to queue
2018-11-04 12:04:24.568 (Google calendar) Processing 'onMessageCallback' message
2018-11-04 12:04:24.568 (Google calendar) Calling message handler 'onMessage'.
2018-11-04 12:04:24.568 (Google calendar) Onmessage called for connection: 127.0.0.1:60062
2018-11-04 12:04:24.568 (Google calendar) POST request received.
2018-11-04 12:04:24.568 (Google calendar) Pushing 'WriteDirective' on to queue
2018-11-04 12:04:24.568 (Google calendar) data:b'{"status":{"step":"diffCal","msg":"__Error in diff iCal, first time execution this can be normal, we continue anyway__"}}'
2018-11-04 12:04:24.568 (Google calendar) {"status":{"step":"diffCal","msg":"__Error in diff iCal, first time execution this can be normal, we continue anyway__"}}
2018-11-04 12:04:24.568 (Google calendar) Processing data : {"status":{"step":"diffCal","msg":"__Error in diff iCal, first time execution this can be normal, we continue anyway__"}}
2018-11-04 12:04:24.568 (Google calendar - Ical status) Updating device from 1:'Resume' to have values 1:'**diffCal-> msg:__Error in diff iCal, first time execution this can be normal, we continue anyway__'.
2018-11-04 12:04:24.571 (Google calendar) We update 1:'**diffCal-> msg:__Error in diff iCal, first time execution this can be normal, we continue anyway__' (Google calendar - Ical status)
2018-11-04 12:04:24.571 (Google calendar) Data process ok
2018-11-04 12:04:24.571 (Google calendar) Processing 'WriteDirective' message
2018-11-04 12:04:24.571 (Google calendar) Sending 249 bytes of data
2018-11-04 12:04:24.571 (Google calendar) 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d 0a 44 61 74 HTTP/1.1.200.OK..Dat
2018-11-04 12:04:24.571 (Google calendar) 65 3a 20 53 75 6e 2c 20 30 34 20 4e 6f 76 20 32 30 31 38 20 e:.Sun,.04.Nov.2018.
2018-11-04 12:04:24.571 (Google calendar) 31 31 3a 30 34 3a 32 34 20 47 4d 54 0d 0a 53 65 72 76 65 72 11:04:24.GMT..Server
2018-11-04 12:04:24.571 (Google calendar) 3a 20 44 6f 6d 6f 74 69 63 7a 2f 31 2e 30 0d 0a 43 6f 6e 6e :.Domoticz/1.0..Conn
2018-11-04 12:04:24.571 (Google calendar) 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d 61 6c 69 76 65 0d 0a ection:.keep-alive..
2018-11-04 12:04:24.571 (Google calendar) 41 63 63 65 70 74 3a 20 43 6f 6e 74 65 6e 74 2d 54 79 70 65 Accept:.Content-Type
2018-11-04 12:04:24.571 (Google calendar) 3a 20 74 65 78 74 2f 68 74 6d 6c 3b 20 63 68 61 72 73 65 74 :.text/html;.charset
2018-11-04 12:04:24.571 (Google calendar) 3d 55 54 46 2d 38 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 =UTF-8..Content-Leng
2018-11-04 12:04:24.571 (Google calendar) 74 68 3a 20 37 39 0d 0a 0d 0a 3c 21 44 4f 43 54 59 50 45 20 th:.79....<!DOCTYPE.
2018-11-04 12:04:24.571 (Google calendar) 68 74 6d 6c 3e 3c 68 74 6d 6c 3e 3c 68 65 61 64 3e 3c 2f 68 html><html><head></h
2018-11-04 12:04:24.571 (Google calendar) 65 61 64 3e 3c 62 6f 64 79 3e 3c 68 33 3e 69 43 61 6c 20 72 ead><body><h3>iCal.r
2018-11-04 12:04:24.571 (Google calendar) 65 73 70 6f 6e 73 65 20 4f 4b 21 3c 2f 68 33 3e 3c 62 6f 64 esponse.OK!</h3><bod
2018-11-04 12:04:24.571 (Google calendar) 79 3e 3c 2f 68 74 6d 6c 3e .. .. .. .. .. .. .. .. .. .. .. y></html>
2018-11-04 12:04:24.571 (Google calendar) Queued asyncronous read aborted (127.0.0.1:60062).
2018-11-04 12:04:24.571 (Google calendar) Pushing 'DisconnectedEvent' on to queue
2018-11-04 12:04:24.621 (Google calendar) Processing 'DisconnectedEvent' message
2018-11-04 12:04:24.621 (Google calendar) Disconnect event received for '127.0.0.1:60062'.
2018-11-04 12:04:24.621 (Google calendar) Pushing 'onDisconnectCallback' on to queue
2018-11-04 12:04:24.621 (Google calendar) Processing 'onDisconnectCallback' message
2018-11-04 12:04:24.621 (Google calendar) Calling message handler 'onDisconnect'.
2018-11-04 12:04:24.621 (Google calendar) Ondisconnect called for connection '127.0.0.1:60062'
2018-11-04 12:04:24.621 (Google calendar) Server connections:
2018-11-04 12:04:24.621 (Google calendar) --> 127.0.0.1:60062'.
2018-11-04 12:04:24.109 Status: User: Admin initiated a switch command (446/Google calendar - Ical status/On)
2018-11-04 12:04:44.155 (Google calendar) Pushing 'onHeartbeatCallback' on to queue
2018-11-04 12:04:44.169 (Google calendar) Processing 'onHeartbeatCallback' message
2018-11-04 12:04:44.169 (Google calendar) Calling message handler 'onHeartbeat'.
2018-11-04 12:04:44.169 (Google calendar - Ical status) Updating device from 1:'**diffCal-> msg:__Error in diff iCal, first time execution this can be normal, we continue anyway__' to have values 1:'Executing, sync every 60 minutes '.
2018-11-04 12:04:44.172 (Google calendar) We update 1:'Executing, sync every 60 minutes ' (Google calendar - Ical status)
2018-11-04 12:05:14.163 (Google calendar) Pushing 'onHeartbeatCallback' on to queue
2018-11-04 12:05:14.203 (Google calendar) Processing 'onHeartbeatCallback' message
2018-11-04 12:05:14.203 (Google calendar) Calling message handler 'onHeartbeat'.
2018-11-04 12:05:44.169 (Google calendar) Pushing 'onHeartbeatCallback' on to queue
2018-11-04 12:05:44.171 (Google calendar) Processing 'onHeartbeatCallback' message
2018-11-04 12:05:44.172 (Google calendar) Calling message handler 'onHeartbeat'.