Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Get Holiday from Google calender


Question

Guest JeanOchmann
Posted

Hello all,

 

I hope someone can Help me. I want to get the Holidays from Google to have a Scene to Open the windows for another time then normal. But how do I get the Data from Google calender from the api? Because nie you need to authenticate with oauth.

 

Thx for helping

14 answers to this question

Recommended Posts

  • 0
Posted (edited)

 

V2 - 07/06/2020 (UPDATED)

 

V3 - 08/06/2020 (UPDATED + fixes)

 

 

Please login or register to see this image.

/monthly_2020_06/image.png.5d12ceba2fba6987be35ed36033a7c5f.png" />

 

image.png.0659b9f4064a95044b325887140233fb.png

 

 

 

 

Please login or register to see this attachment.

Edited by 10der
  • Like 3
  • 0
Posted

Here's another option:

Please login or register to see this link.

  • 0
Posted
7 hours ago, bgoldie said:

Here's another option:

Please login or register to see this link.

Thx, subscribing for reading article it’s cool idea....
nah

  • 0
Posted (edited)
11 hours ago, 10der said:

^^^ it's not what you want for a complete solution but you can go on

hi @10der, does this run on HC2?
I'm getting weird debug...

Please login or register to see this attachment.

Edited by Bodyart
  • 0
Posted

no. use own calendar cuz this req ssl v3 what can't was implemented on hc2

@JeanOchmann Witam! 

 

post updated - use QA

  • 0
Posted

fix some issues.

please UPDATE

  • 0
Posted (edited)
4 hours ago, Bodyart said:

hi @10der, does this run on HC2?
I'm getting weird debug...

Please login or register to see this attachment.

 

that's right, you have to download it and store somewhere, once per 1-3 years. If there is no other web Server available, the HC2 itself can be used:

- take any PNG (Fibaro Icon for this scene e.g.)

- merge it with your calendar.ics, like "copy /B myicon.png + calendar.ics mycal.png" and uplaod as Icon for your Scene
- change the Code to download the Icon instead of external ics
 

Please login or register to see this code.

- cut the png from the file to get only ics (it can be as well begin of ics, BEGIN:VCALENDAR)

 

Please login or register to see this code.

 

EDIT: yeah, @10der changed already to QA from scene, anyway

Edited by tinman
change
  • Like 2
  • 0
Posted
53 minutes ago, tinman said:

merge it with your calendar.ics, like "copy /B myicon.png + calendar.ics mycal.png" and uplaod as Icon for your Scene

Old school maniacs ;) 

  • Like 1
  • 0
Posted
11 hours ago, 10der said:

no. use own calendar cuz this req ssl v3 what can't was implemented on hc2

Hi Oleg,
can't be implemented or just won't be implemented? ?? even v1.1 woul'd be better than current 1.0.... ?

  • 0
Posted
31 minutes ago, Bodyart said:

can't be implemented or just won't be implemented?

 

  • 0
Posted (edited)

It matters to me whether Fibaro doesn't want to implement it, or it is technically impossible with current OS version, because it might be indicative for the freshness of the fish and maybe also the expected life cycle of HC2 ?

Edited by Bodyart
  • 0
Posted

As far as I know it’s option in option table http module 

cuz my old HC2 emulator with LUASEC still works with this link

 

btw 

Please login or register to see this link.

 

  • Like 2
  • 0
Posted
11 minutes ago, Bodyart said:

It matters to me

 

sure, what @10der haven't said, the link in his QA works on HC2 without sslv3 issues ( 

Please login or register to see this link.

)

 

11 minutes ago, Bodyart said:

whether Fibaro doesn't want to implement it, or it is technically impossible with current OS version.

 

it is the http lua lib used in LUA Interpreter on HC2, it could be probably fixed/updated as HC3 have no such issues and HC3 LUA Interpreter is "just updated HC2 Version".

 

Anorther way is rooting HC2 and external libs, which i did 2yrs ago as PoC:

 

 

 

  • Like 1
  • 0
Posted

Thanks guys for all the info @tinman and @10der ?

3 minutes ago, tinman said:

another way is rooting HC2 and external libs, which i did 2yrs ago as PoC:

I don't think that rooting HC2 is an option. For an individual yes, but when i think of @Sankotronic UHAS, not all UHAS users will be willing and able to root their device :-)

 

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...