BakSeeDaa´s Google Calendar for Domoticz (deprecated)

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.
four2six
Posts: 72
Joined: Wednesday 24 February 2016 10:16
Target OS: Raspberry Pi
Domoticz version:
Location: NRW, Germany
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz V 1.0.2 Released

Post by four2six » Tuesday 13 September 2016 10:28

my bad... somehow those files were created when copying the originals. ignore my rambling :-) sorry!

Aadr
Posts: 13
Joined: Tuesday 09 June 2015 21:26
Target OS: Windows
Domoticz version: V2.2536
Location: The Nederlands
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz V 1.0.2 Released

Post by Aadr » Monday 24 October 2016 19:55

Hello BakSeeDaa,

thank you for this application in Domoticz. I have been using it al summer at our soccerclub for the climatcontrol. But last week it suddenly started to mess up. I made a fresh install, but no luck. I'm on the latest beta of Domoticz, but I don't know when things went wrong.
Perhaps can you help me.
This is the log,
as you can see, the appointments are recognised, but then the log reports 0 events.

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) 
I hope you can help me.

archen
Posts: 3
Joined: Friday 28 October 2016 15:57
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz V 1.0.2 Released

Post by archen » Sunday 08 January 2017 22:09

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

fremar
Posts: 5
Joined: Monday 27 February 2017 9:27
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz V 1.0.2 Released

Post by fremar » Monday 27 February 2017 9:38

archen 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
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=100

BakSeeDaa
Posts: 551
Joined: Thursday 17 September 2015 10:13
Target OS: Raspberry Pi
Domoticz version:

Re: BakSeeDaa´s Google Calendar for Domoticz V 1.0.2 Released

Post by BakSeeDaa » Thursday 27 April 2017 9:26

This project is now deprecated and unsupported by me.

I have started a new project https://github.com/BakSeeDaa/GCal It's still in an early development stage but it will have many benefits over this project.

If You feel that You want to contribute to the new project as a tester, coder or something else, please have a look at http://www.domoticz.com/forum/viewtopic ... 65&t=17302
Last edited by BakSeeDaa on Friday 23 February 2018 10:14, edited 1 time in total.

BakSeeDaa
Posts: 551
Joined: Thursday 17 September 2015 10:13
Target OS: Raspberry Pi
Domoticz version:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by BakSeeDaa » Tuesday 02 May 2017 8:52

UNINSTALLING instructions has now been added to the initial post.

jasifil
Posts: 29
Joined: Thursday 03 March 2016 23:25
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Sweden
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by jasifil » 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?

The log shows this:

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

TheeDude
Posts: 38
Joined: Wednesday 07 October 2015 0:43
Target OS: Linux
Domoticz version:
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by TheeDude » Tuesday 18 September 2018 22:30

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?

I am having the exact same problem!
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. :)

TheeDude
Posts: 38
Joined: Wednesday 07 October 2015 0:43
Target OS: Linux
Domoticz version:
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by TheeDude » Thursday 20 September 2018 16:23

Hello again, or am I just talking to myself? :)

I did try it out yesterday, but failed.
I got a couple of fail messages that I had to resolve, but now when I initiate the switch, nothing happens, not a word in the log, nothing.

I have tried to compare both Stuarts files, and the latest gcal3 file from BakSeeDaa and tried to merge them together, but as I said before, lua/scripting isn´t really my strong side.
Anyone else that can check it out or help me/us in the right direction?

Here are the files!
Gcal3.rar
(67.46 KiB) Downloaded 5 times

User avatar
EdwinK
Posts: 1380
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by EdwinK » Thursday 20 September 2018 18:39

The title says 'deprecated', so this plugin might not be maintained any longer, besides, the author of it, BakSeeDa, has left Domoticz for another system. Not sure if anyone has picked it up.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | RFxcom | Dashticz V2

TheeDude
Posts: 38
Joined: Wednesday 07 October 2015 0:43
Target OS: Linux
Domoticz version:
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by TheeDude » Thursday 20 September 2018 20:15

EdwinK wrote:
Thursday 20 September 2018 18:39
The title says 'deprecated', so this plugin might not be maintained any longer, besides, the author of it, BakSeeDa, has left Domoticz for another system. Not sure if anyone has picked it up.
At least I know it, that is why I am asking if someone else that is good with coding might help out.
Or if there is another alternative that I have missed out on.
I feel that I need this script really bad. :)

jasifil
Posts: 29
Joined: Thursday 03 March 2016 23:25
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Sweden
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by jasifil » Friday 21 September 2018 23:39

TheeDude wrote:
Tuesday 18 September 2018 22:30
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?

I am having the exact same problem!
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. :)
Hi!
I have not found any solution unfortunaterly. Have given up on this! I just deleted the plugin since there is no support. Sorry! If you find a solution it would be nice if you could post your solution here :)

TheeDude
Posts: 38
Joined: Wednesday 07 October 2015 0:43
Target OS: Linux
Domoticz version:
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by TheeDude » Monday 24 September 2018 0:24

jasifil wrote:
Friday 21 September 2018 23:39

Hi!
I have not found any solution unfortunaterly. Have given up on this! I just deleted the plugin since there is no support. Sorry! If you find a solution it would be nice if you could post your solution here :)
Hello again!

I think I have come up with a solution.
Atleast it did connect for me, and updated my calendar events, so I guess it work.

Try it out if you like to!
script_device_gcal 1.0.3.rar
(14.31 KiB) Downloaded 9 times

jasifil
Posts: 29
Joined: Thursday 03 March 2016 23:25
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Sweden
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by jasifil » Monday 24 September 2018 14:52

TheeDude wrote:
Monday 24 September 2018 0:24
jasifil wrote:
Friday 21 September 2018 23:39

Hi!
I have not found any solution unfortunaterly. Have given up on this! I just deleted the plugin since there is no support. Sorry! If you find a solution it would be nice if you could post your solution here :)
Hello again!

I think I have come up with a solution.
Atleast it did connect for me, and updated my calendar events, so I guess it work.

Try it out if you like to!

script_device_gcal 1.0.3.rar
Hi!
Thanks for your help! I tried your file but it does not work for me. What did you change in that file?

TheeDude
Posts: 38
Joined: Wednesday 07 October 2015 0:43
Target OS: Linux
Domoticz version:
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by TheeDude » Monday 24 September 2018 16:19

jasifil wrote:
Monday 24 September 2018 14:52
Hi!
Thanks for your help! I tried your file but it does not work for me. What did you change in that file?
That´s too bad!

You can use "https://www.diffnow.com/" and compare both new and old file in that and see the differencies.
But I can add them here as well.
diff1.png
diff1.png (69.68 KiB) Viewed 381 times
diff2.png
diff2.png (57.35 KiB) Viewed 381 times
diff3.png
diff3.png (83.38 KiB) Viewed 381 times
What does the log say?

Here you have my log when i trigger my calendar device.
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

jasifil
Posts: 29
Joined: Thursday 03 March 2016 23:25
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Sweden
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by jasifil » Monday 24 September 2018 18:23

TheeDude wrote:
Monday 24 September 2018 16:19


What does the log say?

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

TheeDude
Posts: 38
Joined: Wednesday 07 October 2015 0:43
Target OS: Linux
Domoticz version:
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by TheeDude » Monday 24 September 2018 18:33

You must be using the old file!
Because my log says V1.0.3 and your log says V1.0.2.
And you also have the same fail log/message as before.

Skickat från min SM-G950F via Tapatalk


jasifil
Posts: 29
Joined: Thursday 03 March 2016 23:25
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Sweden
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by jasifil » Monday 24 September 2018 18:51

TheeDude wrote:
Monday 24 September 2018 18:33
You must be using the old file!
Because my log says V1.0.3 and your log says V1.0.2.
And you also have the same fail log/message as before.

Skickat från min SM-G950F via Tapatalk
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 :(

jasifil
Posts: 29
Joined: Thursday 03 March 2016 23:25
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Sweden
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by jasifil » Monday 24 September 2018 19:08

jasifil wrote:
Monday 24 September 2018 18:51
TheeDude wrote:
Monday 24 September 2018 18:33
You must be using the old file!
Because my log says V1.0.3 and your log says V1.0.2.
And you also have the same fail log/message as before.

Skickat från min SM-G950F via Tapatalk
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?

TheeDude
Posts: 38
Joined: Wednesday 07 October 2015 0:43
Target OS: Linux
Domoticz version:
Contact:

Re: BakSeeDaa´s Google Calendar for Domoticz (deprecated)

Post by TheeDude » Monday 24 September 2018 19:26

jasifil wrote:
Monday 24 September 2018 19:08
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?
"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.
So you need to extract it with winrar or similar, I guess you knew that?

You can, if you like to, download it from my server, in "raw" form that you don´t need to extract.
http://thedude.ath.cx/nextcloud/index.p ... w8nZzJijcj

You can then open the file with notepad++ and look at line 20-24 it should say.
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.
And then you know you have the right file.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest