BakSeeDaa´s Google Calendar for Domoticz V 1.0.2 Released

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.
four2six
Posts: 48
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

Postby four2six » Tuesday 13 September 2016 10:28

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

Aadr
Posts: 11
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

Postby 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

Postby 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


Return to “Show your projects”

Who is online

Users browsing this forum: No registered users and 3 guests