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: 3
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: 16
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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest