Re: BakSeeDaa´s Google Calendar for Domoticz V 1.0.2 Released
Posted: Tuesday 13 September 2016 10:28
my bad... somehow those files were created when copying the originals. ignore my rambling
sorry!

Open source Home Automation System
https://forum.domoticz.com/
Code: Select all
2016-10-24 19:36:21.761 User: Admin initiated a switch command (365/GCalCheck Commissiekamer/On)
2016-10-24 19:36:21.801 LUA: GCal3 V 1.0.2: Calendar device GCal Commissiekamer (idx:369 ) initializing
2016-10-24 19:36:21.818 LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/ returned true
2016-10-24 19:36:21.832 LUA: GCal3 V 1.0.2: Command /bin/rm -f /home/pi/domoticz/GCal3/GCal3.sem returned true
2016-10-24 19:36:21.839 LUA: GCal3 V 1.0.2: Command bin/rm -f /home/pi/domoticz/GCal3/*.token returned nil
2016-10-24 19:36:21.839 LUA: GCal3 V 1.0.2: Checking semaphore
2016-10-24 19:36:21.849 LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned nil
2016-10-24 19:36:21.849 LUA: GCal3 V 1.0.2: Semaphore file returned nil
2016-10-24 19:36:21.849 LUA: GCal3 V 1.0.2: Device 369 requested semaphore
2016-10-24 19:36:21.858 LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2016-10-24 19:36:21.858 LUA: GCal3 V 1.0.2: Device 369 claimed semaphore
2016-10-24 19:36:21.858 LUA: GCal3 V 1.0.2: Variables initialized ...
2016-10-24 19:36:21.867 LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/scripts/lua/json.lua returned true
2016-10-24 19:36:21.870 LUA: GCal3 V 1.0.2: local function: checkforcredentials
2016-10-24 19:36:21.879 LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.json returned true
2016-10-24 19:36:21.888 LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.json returned true
2016-10-24 19:36:21.899 LUA: GCal3 V 1.0.2: Command find /home/pi/domoticz/GCal3/ -type f ! -newer GCal3.json -name GCal3.pem -delete returned nil
2016-10-24 19:36:21.909 LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.pem returned true
2016-10-24 19:36:21.909 LUA: GCal3 V 1.0.2: Timezone is 2 hrs and 0 min
2016-10-24 19:36:21.909 LUA: GCal3 V 1.0.2: Running Plugin ...
2016-10-24 19:36:21.911 LUA: GCal3 V 1.0.2: local function: checkGCal
2016-10-24 19:36:21.911 LUA: GCal3 V 1.0.2: Checking semaphore
2016-10-24 19:36:21.920 LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2016-10-24 19:36:21.920 LUA: GCal3 V 1.0.2: Semaphore file returned 369
2016-10-24 19:36:21.929 LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2016-10-24 19:36:21.930 LUA: GCal3 V 1.0.2: Device 369 claimed semaphore
2016-10-24 19:36:21.930 LUA: GCal3 V 1.0.2: StartMin is 2016-10-23T22:00:00Z StartMax is 2016-10-25T17:36:00Z
2016-10-24 19:36:21.930 LUA: GCal3 V 1.0.2: End of day is 2016-10-24T23:59:59
2016-10-24 19:36:21.930 LUA: GCal3 V 1.0.2: local function: requestCalendar
2016-10-24 19:36:21.930 LUA: GCal3 V 1.0.2: local function: get_access_token
2016-10-24 19:36:21.930 LUA: GCal3 V 1.0.2: Getting a new token
2016-10-24 19:36:22.140 Hardware Monitor: Fetching data (System sensors)
2016-10-24 19:36:22.396 LUA: GCal3 V 1.0.2: Got new token
2016-10-24 19:36:22.397 LUA: GCal3 V 1.0.2: Checking google calendar
2016-10-24 19:36:22.750 LUA: GCal3 V 1.0.2: Device 369 released the semaphore - reason: calendar check complete
2016-10-24 19:36:22.750 LUA: GCal3 V 1.0.2: local function: getEvents
2016-10-24 19:36:22.751 LUA: GCal3 V 1.0.2: There were 6 events retrieved
2016-10-24 19:36:22.751 LUA: GCal3 V 1.0.2: Effective Event Name TRAINING JEUGD[0,0]{}
2016-10-24 19:36:22.751 LUA: GCal3 V 1.0.2: Effective Event Name SCHOONMAKEN KANTINE[0,0]{}
2016-10-24 19:36:22.752 LUA: GCal3 V 1.0.2: Effective Event Name NLL <23 - SCHELLUINEN <23[0,0]{}
2016-10-24 19:36:22.753 LUA: GCal3 V 1.0.2: Effective Event Name DAMESTEAM OVERLEG[0,0]{}
2016-10-24 19:36:22.753 LUA: GCal3 V 1.0.2: Effective Event Name TRAINING JEUGD[0,0]{}
2016-10-24 19:36:22.754 LUA: GCal3 V 1.0.2: Effective Event Name TRAINING 1 EN 2[0,0]{}
2016-10-24 19:36:22.754 LUA: GCal3 V 1.0.2: Events Today = 0
2016-10-24 19:36:22.754 LUA: GCal3 V 1.0.2: Events Left Today = 0
2016-10-24 19:36:22.754 LUA: GCal3 V 1.0.2: local function: saveEvents
2016-10-24 19:36:22.762 LUA: GCal3 V 1.0.2: Command echo "[]" >/home/pi/domoticz/GCal3/events369.json&&chmod 744 /home/pi/domoticz/GCal3/events369.json returned true
2016-10-24 19:36:22.762 LUA: GCal3 V 1.0.2: Next Event: No more events today
.
2016-10-24 19:36:22.762 LUA: GCal3 V 1.0.2: Cancel any active event
2016-10-24 19:36:22.762 LUA: GCal3 V 1.0.2: local function: setTrippedOff
2016-10-24 19:36:22.762 LUA: GCal3 V 1.0.2: Event-End Inactive
2016-10-24 19:36:22.763 LUA: GCal3 V 1.0.2: Next check will be in 10800 sec on 2016-10-24 at 22:36:22
2016-10-24 19:36:22.763 LUA: GCal3 V 1.0.2: Device 369 released the semaphore - reason: initialization complete
2016-10-24 19:36:22.763 LUA: GCal3 V 1.0.2: Switch recent status: Off
2016-10-24 19:36:22.768 EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_gcal.lua
2016-10-24 19:36:21.761 (Virtueel) Light/Switch (GCalCheck Commissiekamer)
2016-10-24 19:36:23.705 (Virtueel) Light/Switch (GCalCheck Commissiekamer)
Hi looks great been looking for a car heater script for Domoticz so will try this when I have installed a switch in the garage to control the outlet on the garage wall. Is it possible to run the script on Domoticz on windows or is it required to run on a raspberry pi? Is it possible in Domoticz to create a virtual device like this in HC2 where you can start the car heater manually or set a starting time quickly? http://zwaveforum.se/viewtopic.php?f=12 ... &start=100archen wrote:Hi all,
Thanks to BakSeeDaa I've managed to create a carheater script where you can trigger the carheater from google cal.
It takes the outside temperature as a parameter and calculates when the carheater needs to be turned on so the car is ready on the time you have set in google cal.
Thank you very much BakSeeDaa for your work, highly appriciated!
Link to carheater project (some text in swedish). https://github.com/riksarchen/carheater_domoticz
Code: Select all
2018-07-01 02:16:19.365 Status: User: Admin initiated a switch command (35/GCalCheck name.name/On)
2018-07-01 02:16:19.398 Status: LUA: GCal3 V 1.0.2: Calendar device GCal name.name (idx:33 ) initializing
2018-07-01 02:16:19.413 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/ returned true
2018-07-01 02:16:19.425 Status: LUA: GCal3 V 1.0.2: Command /bin/rm -f /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-07-01 02:16:19.435 Status: LUA: GCal3 V 1.0.2: Command bin/rm -f /home/pi/domoticz/GCal3/*.token returned nil
2018-07-01 02:16:19.436 Status: LUA: GCal3 V 1.0.2: Checking semaphore
2018-07-01 02:16:19.451 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned nil
2018-07-01 02:16:19.451 Status: LUA: GCal3 V 1.0.2: Semaphore file returned nil
2018-07-01 02:16:19.451 Status: LUA: GCal3 V 1.0.2: Device 33 requested semaphore
2018-07-01 02:16:19.466 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-07-01 02:16:19.466 Status: LUA: GCal3 V 1.0.2: Device 33 claimed semaphore
2018-07-01 02:16:19.467 Status: LUA: GCal3 V 1.0.2: Variables initialized ...
2018-07-01 02:16:19.481 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/scripts/lua/json.lua returned true
2018-07-01 02:16:19.486 Status: LUA: GCal3 V 1.0.2: local function: checkforcredentials
2018-07-01 02:16:19.500 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.json returned true
2018-07-01 02:16:19.515 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.json returned true
2018-07-01 02:16:19.535 Status: LUA: GCal3 V 1.0.2: Command find /home/pi/domoticz/GCal3/ -type f ! -newer GCal3.json -name GCal3.pem -delete returned nil
2018-07-01 02:16:19.549 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.pem returned true
2018-07-01 02:16:19.550 Status: LUA: GCal3 V 1.0.2: Timezone is 2 hrs and 0 min
2018-07-01 02:16:19.550 Status: LUA: GCal3 V 1.0.2: Running Plugin ...
2018-07-01 02:16:19.554 Status: LUA: GCal3 V 1.0.2: local function: checkGCal
2018-07-01 02:16:19.554 Status: LUA: GCal3 V 1.0.2: Checking semaphore
2018-07-01 02:16:19.568 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-07-01 02:16:19.568 Status: LUA: GCal3 V 1.0.2: Semaphore file returned 33
2018-07-01 02:16:19.583 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-07-01 02:16:19.583 Status: LUA: GCal3 V 1.0.2: Device 33 claimed semaphore
2018-07-01 02:16:19.584 Status: LUA: GCal3 V 1.0.2: StartMin is 2018-06-30T22:00:00Z StartMax is 2018-07-02T00:16:00Z
2018-07-01 02:16:19.584 Status: LUA: GCal3 V 1.0.2: End of day is 2018-07-01T23:59:59
2018-07-01 02:16:19.584 Status: LUA: GCal3 V 1.0.2: local function: requestCalendar
2018-07-01 02:16:19.584 Status: LUA: GCal3 V 1.0.2: local function: get_access_token
2018-07-01 02:16:19.584 Status: LUA: GCal3 V 1.0.2: Getting a new token
2018-07-01 02:16:19.891 Status: LUA: GCal3 V 1.0.2: The token request returned an error: {
2018-07-01 02:16:19.891 "error" : "invalid_request",
2018-07-01 02:16:19.891 "error_description" : "Bad Request"
2018-07-01 02:16:19.891 }
2018-07-01 02:16:19.891 Status: LUA: GCal3 V 1.0.2: Fatal error trying to get access token
2018-07-01 02:16:19.892 Status: LUA: GCal3 V 1.0.2: Device 33 released the semaphore - reason: calendar check complete
2018-07-01 02:16:19.892 Status: LUA: GCal3 V 1.0.2: Next check will be in 500 sec on 2018-07-01 at 02:24:39
2018-07-01 02:16:19.926 Status: LUA: GCal3 V 1.0.2: Device 33 released the semaphore - reason: initialization complete
2018-07-01 02:16:19.926 Status: LUA: GCal3 V 1.0.2: Switch recent status: Off
2018-07-01 02:16:19.930 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_gcal.lua
I am having the exact same problem!jasifil wrote: ↑Sunday 01 July 2018 2:27 Hello!
Is there still any support for this plugin? I can try at least to get som respons here
Today I replaced my Raspberry Pi with a new one and finally I got it all up and running. But unfortunately the script that checks my Google-calendar returns an error. I just can´t figure out what is wrong. Could anyone please try to help me?
At least I know it, that is why I am asking if someone else that is good with coding might help out.
Hi!TheeDude wrote: ↑Tuesday 18 September 2018 22:30I am having the exact same problem!jasifil wrote: ↑Sunday 01 July 2018 2:27 Hello!
Is there still any support for this plugin? I can try at least to get som respons here
Today I replaced my Raspberry Pi with a new one and finally I got it all up and running. But unfortunately the script that checks my Google-calendar returns an error. I just can´t figure out what is wrong. Could anyone please try to help me?
Did you find any solution?
My calendar haven´t made an update since 11th september, and I can´t think of anything that I have done, other than updating domoticz a couple of times.
Edit:
I have now found out that we are not alone with the problem..
The original author of the script has a thread on this forum:
http://forum.micasaverde.com/index.php/ ... 2.690.html
And they have noticed the same, and "Stuart" have come up with a solution.
I have tried to check what the difference is between the files and tried to merge them to this project, but I gave up for now, will give it a little more time when I have more motivation.![]()
Hello again!
Hi!
That´s too bad!
2018-09-24 16:18:21.363 Status: User: Jonas initiated a switch command (35/GCalCheck_Preheater_Jonas/On)
2018-09-24 16:18:21.742 Status: LUA: GCal3 V 1.0.3: Calendar device GCal_Preheater_Jonas (idx:36 ) initializing
2018-09-24 16:18:21.763 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/ returned true
2018-09-24 16:18:21.782 Status: LUA: GCal3 V 1.0.3: Command /bin/rm -f /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-09-24 16:18:21.797 Status: LUA: GCal3 V 1.0.3: Command bin/rm -f /home/pi/domoticz/GCal3/*.token returned nil
2018-09-24 16:18:21.797 Status: LUA: GCal3 V 1.0.3: Checking semaphore
2018-09-24 16:18:21.820 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned nil
2018-09-24 16:18:21.820 Status: LUA: GCal3 V 1.0.3: Semaphore file returned nil
2018-09-24 16:18:21.821 Status: LUA: GCal3 V 1.0.3: Device 36 requested semaphore
2018-09-24 16:18:21.841 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-09-24 16:18:21.842 Status: LUA: GCal3 V 1.0.3: Device 36 claimed semaphore
2018-09-24 16:18:21.842 Status: LUA: GCal3 V 1.0.3: Variables initialized ...
2018-09-24 16:18:21.863 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/scripts/lua/json.lua returned true
2018-09-24 16:18:21.867 Status: LUA: GCal3 V 1.0.3: local function: checkforcredentials
2018-09-24 16:18:21.887 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.json returned true
2018-09-24 16:18:21.908 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.json returned true
2018-09-24 16:18:21.931 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 16:18:21.951 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.pem returned true
2018-09-24 16:18:21.952 Status: LUA: GCal3 V 1.0.3: Timezone is 2 hrs and 0 min
2018-09-24 16:18:21.952 Status: LUA: GCal3 V 1.0.3: Running Plugin ...
2018-09-24 16:18:21.956 Status: LUA: GCal3 V 1.0.3: local function: checkGCal
2018-09-24 16:18:21.956 Status: LUA: GCal3 V 1.0.3: Checking semaphore
2018-09-24 16:18:21.977 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-09-24 16:18:21.977 Status: LUA: GCal3 V 1.0.3: Semaphore file returned 36
2018-09-24 16:18:22.006 Status: LUA: GCal3 V 1.0.3: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-09-24 16:18:22.006 Status: LUA: GCal3 V 1.0.3: Device 36 claimed semaphore
2018-09-24 16:18:22.007 Status: LUA: GCal3 V 1.0.3: StartMin is 2018-09-23T22:00:00Z StartMax is 2018-09-25T14:18:00Z
2018-09-24 16:18:22.007 Status: LUA: GCal3 V 1.0.3: End of day is 2018-09-25T23:59:59
2018-09-24 16:18:22.007 Status: LUA: GCal3 V 1.0.3: local function: requestCalendar
2018-09-24 16:18:22.007 Status: LUA: GCal3 V 1.0.3: local function: get_access_token
2018-09-24 16:18:22.007 Status: LUA: GCal3 V 1.0.3: Getting a new token
2018-09-24 16:18:23.074 Status: LUA: GCal3 V 1.0.3: Device 36 released the semaphore - reason: calendar check complete
2018-09-24 16:18:23.074 Status: LUA: GCal3 V 1.0.3: local function: getEvents
2018-09-24 16:18:23.074 Status: LUA: GCal3 V 1.0.3: There were 2 events retrieved
2018-09-24 16:18:23.075 Status: LUA: GCal3 V 1.0.3: Effective Event Name EFTERMIDDAGSSKIFT[0,0]{}
2018-09-24 16:18:23.077 Status: LUA: GCal3 V 1.0.3: Effective Event Name EFTERMIDDAGSSKIFT[0,0]{}
2018-09-24 16:18:23.077 Status: LUA: GCal3 V 1.0.3: Events Today = 2
2018-09-24 16:18:23.077 Status: LUA: GCal3 V 1.0.3: Events Left Today = 1
2018-09-24 16:18:23.077 Status: LUA: GCal3 V 1.0.3: Next event time = Mon Sep 24 12:30:00 2018
2018-09-24 16:18:23.078 Status: LUA: GCal3 V 1.0.3: Next event stop = Mon Sep 24 14:00:00 2018
2018-09-24 16:18:23.078 Status: LUA: GCal3 V 1.0.3: local function: saveEvents
2018-09-24 16:18:23.078 Status: LUA: GCal3 V 1.0.3: Active Events:
2018-09-24 16:18:23.105 Status: LUA: GCal3 V 1.0.3: Command chmod 644 /home/pi/domoticz/GCal3/events36.json returned true
2018-09-24 16:18:23.105 Status: LUA: GCal3 V 1.0.3: json active event list []
2018-09-24 16:18:23.106 Status: LUA: GCal3 V 1.0.3: Next Event: EFTERMIDDAGSSKIFT<BR/>12:30 Sep 25 to 14:00 Sep 25
2018-09-24 16:18:23.106 Status: LUA: GCal3 V 1.0.3: Cancel any active event
2018-09-24 16:18:23.106 Status: LUA: GCal3 V 1.0.3: local function: setTrippedOff
2018-09-24 16:18:23.106 Status: LUA: GCal3 V 1.0.3: Event-End Inactive
2018-09-24 16:18:23.107 Status: LUA: GCal3 V 1.0.3: nextTimeCheck is default interval
2018-09-24 16:18:23.107 Status: LUA: GCal3 V 1.0.3: Next check will be in 10800 sec on 2018-09-24 at 19:18:23
2018-09-24 16:18:23.108 Status: LUA: GCal3 V 1.0.3: Device 36 released the semaphore - reason: initialization complete
2018-09-24 16:18:23.108 Status: LUA: GCal3 V 1.0.3: Switch recent status: Off
2018-09-24 16:18:23.122 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_gcal.lua
Here is my log:
Code: Select all
2018-09-24 18:12:00.065 Status: LUA: GCal calendarname needs to run
2018-09-24 18:12:00.066 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_time_gcal.lua
2018-09-24 18:12:00.122 Status: LUA: GCal3 V 1.0.2: Calendar device GCal calendarname (idx:33 ) initializing
2018-09-24 18:12:00.140 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/ returned true
2018-09-24 18:12:00.149 Status: LUA: GCal3 V 1.0.2: Command /bin/rm -f /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-09-24 18:12:00.156 Status: LUA: GCal3 V 1.0.2: Command bin/rm -f /home/pi/domoticz/GCal3/*.token returned nil
2018-09-24 18:12:00.156 Status: LUA: GCal3 V 1.0.2: Checking semaphore
2018-09-24 18:12:00.165 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned nil
2018-09-24 18:12:00.165 Status: LUA: GCal3 V 1.0.2: Semaphore file returned nil
2018-09-24 18:12:00.166 Status: LUA: GCal3 V 1.0.2: Device 33 requested semaphore
2018-09-24 18:12:00.175 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-09-24 18:12:00.175 Status: LUA: GCal3 V 1.0.2: Device 33 claimed semaphore
2018-09-24 18:12:00.175 Status: LUA: GCal3 V 1.0.2: Variables initialized ...
2018-09-24 18:12:00.185 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/scripts/lua/json.lua returned true
2018-09-24 18:12:00.187 Status: LUA: GCal3 V 1.0.2: local function: checkforcredentials
2018-09-24 18:12:00.196 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.json returned true
2018-09-24 18:12:00.206 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.json returned true
2018-09-24 18:12:00.218 Status: LUA: GCal3 V 1.0.2: Command find /home/pi/domoticz/GCal3/ -type f ! -newer GCal3.json -name GCal3.pem -delete returned nil
2018-09-24 18:12:00.228 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.pem returned true
2018-09-24 18:12:00.228 Status: LUA: GCal3 V 1.0.2: Timezone is 2 hrs and 0 min
2018-09-24 18:12:00.228 Status: LUA: GCal3 V 1.0.2: Running Plugin ...
2018-09-24 18:12:00.230 Status: LUA: GCal3 V 1.0.2: local function: checkGCal
2018-09-24 18:12:00.230 Status: LUA: GCal3 V 1.0.2: Checking semaphore
2018-09-24 18:12:00.239 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-09-24 18:12:00.240 Status: LUA: GCal3 V 1.0.2: Semaphore file returned 33
2018-09-24 18:12:00.249 Status: LUA: GCal3 V 1.0.2: Command /bin/ls /home/pi/domoticz/GCal3/GCal3.sem returned true
2018-09-24 18:12:00.249 Status: LUA: GCal3 V 1.0.2: Device 33 claimed semaphore
2018-09-24 18:12:00.249 Status: LUA: GCal3 V 1.0.2: StartMin is 2018-09-23T22:00:00Z StartMax is 2018-09-25T16:12:00Z
2018-09-24 18:12:00.250 Status: LUA: GCal3 V 1.0.2: End of day is 2018-09-24T23:59:59
2018-09-24 18:12:00.250 Status: LUA: GCal3 V 1.0.2: local function: requestCalendar
2018-09-24 18:12:00.250 Status: LUA: GCal3 V 1.0.2: local function: get_access_token
2018-09-24 18:12:00.250 Status: LUA: GCal3 V 1.0.2: Getting a new token
2018-09-24 18:12:00.489 Status: LUA: GCal3 V 1.0.2: The token request returned an error: {
2018-09-24 18:12:00.489 "error" : "invalid_request",
2018-09-24 18:12:00.489 "error_description" : "Bad Request"
2018-09-24 18:12:00.489 }
2018-09-24 18:12:00.489 Status: LUA: GCal3 V 1.0.2: Fatal error trying to get access token
2018-09-24 18:12:00.489 Status: LUA: GCal3 V 1.0.2: Device 33 released the semaphore - reason: calendar check complete
2018-09-24 18:12:00.489 Status: LUA: GCal3 V 1.0.2: Next check will be in 500 sec on 2018-09-24 at 18:20:20
2018-09-24 18:12:00.491 Status: LUA: GCal3 V 1.0.2: Device 33 released the semaphore - reason: initialization complete
2018-09-24 18:12:00.491 Status: LUA: GCal3 V 1.0.2: Switch recent status: Off
2018-09-24 18:12:00.495 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_gcal.lua
I have tried to find the updated version but no luck since all the files are deleted from this forum. But I don´t think it matters which version I use. In the forum to which you linked in your older post, it seems that Google has changed something. I just don´t see what it is
Which files were replace when upgrading the script earlier? Maybe I should try to replace my 1.0.2-files with the 1.0.3 ones. Could you please share those files?jasifil wrote: ↑Monday 24 September 2018 18:51I have tried to find the updated version but no luck since all the files are deleted from this forum. But I don´t think it matters which version I use. In the forum to which you linked in your older post, it seems that Google has changed something. I just don´t see what it is![]()
"script_device_gcal.lua" is the only file that I have changed, in my post from before I have made it to a .rar archive because this forum don´t accept ".lua" files to be attached.
And then you know you have the right file.local GCAL_VERSION = "V 1.0.3"
-- CHANGELOG
-- 1.0.3 Updated by "TheeDude" on http://www.domoticz.com/forum/viewtopic.php?f=38&t=8333 because
-- "BakSeeDaa" left domoticz for another system.
-- And I think this script are too good to left in the trash.