Code: Select all
2018-09-24 20:17:33.969 Status: User: Admin initiated a switch command (35/GCalCheck calendarname/On)
2018-09-24 20:17:34.378 (RFXtrx433E) Temp (Inne b.v.)
2018-09-24 20:17:34.006 Status: LUA: GCal3 V 1.0.3: Calendar device GCal calendarname (idx:33 ) initializing
2018-09-24 20:17:34.023 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/ returned true
2018-09-24 20:17:34.039 Status: LUA: GCal3 V 1.0.3: Command /bin/rm -f /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-09-24 20:17:34.052 Status: LUA: GCal3 V 1.0.3: Command bin/rm -f /home/pi/domoticz/GCal3/*.token returned nil
2018-09-24 20:17:34.052 Status: LUA: GCal3 V 1.0.3: Checking semaphore
2018-09-24 20:17:34.069 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned nil
2018-09-24 20:17:34.069 Status: LUA: GCal3 V 1.0.3: Semaphore file returned nil
2018-09-24 20:17:34.070 Status: LUA: GCal3 V 1.0.3: Device 33 requested semaphore
2018-09-24 20:17:34.087 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-09-24 20:17:34.087 Status: LUA: GCal3 V 1.0.3: Device 33 claimed semaphore
2018-09-24 20:17:34.087 Status: LUA: GCal3 V 1.0.3: Variables initialized ...
2018-09-24 20:17:34.104 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/scripts/lua/json.lua returned true
2018-09-24 20:17:34.109 Status: LUA: GCal3 V 1.0.3: local function: checkforcredentials
2018-09-24 20:17:34.126 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.json returned true
2018-09-24 20:17:34.143 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.json returned true
2018-09-24 20:17:34.166 Status: LUA: GCal3 V 1.0.3: Command find /home/pi/domoticz/GCal3/ -type f ! -newer GCal3.json -name GCal3.pem -delete returned nil
2018-09-24 20:17:34.183 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.pem returned true
2018-09-24 20:17:34.183 Status: LUA: GCal3 V 1.0.3: Timezone is 2 hrs and 0 min
2018-09-24 20:17:34.183 Status: LUA: GCal3 V 1.0.3: Running Plugin ...
2018-09-24 20:17:34.188 Status: LUA: GCal3 V 1.0.3: local function: checkGCal
2018-09-24 20:17:34.188 Status: LUA: GCal3 V 1.0.3: Checking semaphore
2018-09-24 20:17:34.205 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-09-24 20:17:34.205 Status: LUA: GCal3 V 1.0.3: Semaphore file returned 33
2018-09-24 20:17:34.222 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-09-24 20:17:34.222 Status: LUA: GCal3 V 1.0.3: Device 33 claimed semaphore
2018-09-24 20:17:34.223 Status: LUA: GCal3 V 1.0.3: StartMin is 2018-09-23T22:00:00Z StartMax is 2018-09-25T18:17:00Z
2018-09-24 20:17:34.223 Status: LUA: GCal3 V 1.0.3: End of day is 2018-09-25T23:59:59
2018-09-24 20:17:34.223 Status: LUA: GCal3 V 1.0.3: local function: requestCalendar
2018-09-24 20:17:34.223 Status: LUA: GCal3 V 1.0.3: local function: get_access_token
2018-09-24 20:17:34.223 Status: LUA: GCal3 V 1.0.3: Getting a new token
2018-09-24 20:17:34.547 Status: LUA: GCal3 V 1.0.3: The token request returned an error: {
2018-09-24 20:17:34.547 "error" : "invalid_request",
2018-09-24 20:17:34.547 "error_description" : "Bad Request"
2018-09-24 20:17:34.547 }
2018-09-24 20:17:34.547 Status: LUA: GCal3 V 1.0.3: Fatal error trying to get access token
2018-09-24 20:17:34.547 Status: LUA: GCal3 V 1.0.3: Device 33 released the semaphore - reason: calendar check complete
2018-09-24 20:17:34.548 Status: LUA: GCal3 V 1.0.3: Next check will be in 500 sec on 2018-09-24 at 20:25:54
2018-09-24 20:17:34.550 Status: LUA: GCal3 V 1.0.3: Device 33 released the semaphore - reason: initialization complete
2018-09-24 20:17:34.550 Status: LUA: GCal3 V 1.0.3: Switch recent status: Off
2018-09-24 20:17:34.554 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_gcal.lua