Page 1 of 2

google calendar

Posted: Mon Nov 12, 2018 11:03 am
by dennis071nl
Hi guys,

I had this wild idea: at our house we run a shared google calendar, which basicly has all our appointments in it, so we know what everybody has to do eveny day of the week.

Since we got ourselves a nice machine hanging on the wall, i thought it would be great to show the next upcoming events from a Google calendar on a tile.

I'm not a programmer, so i can't really guess how difficult that would be, but just wanted to drop it here as a nice idea..?

Any enthousiastic developers around?? :-))

Re: google calendar

Posted: Mon Nov 12, 2018 11:59 am
by TerrorSource
This same idea has already crossed our minds a few times. Cannot be worked out at the moment due to a lack of a fully operational internet browser and dependencies for it.

Re: google calendar

Posted: Mon Nov 12, 2018 12:44 pm
by dennis071nl
Thats too bad.. and how about a daily (automated) dump of the calendar in ics format, and pick it up from there just like afvalwijzer??

Re: google calendar

Posted: Mon Nov 12, 2018 2:41 pm
by Toonz
Hi,

I quickly looked at this some time ago, the problem is that you will need to login to Google via a browser before you get to the data.
I didn't find a direct link into a calendar 'from the outside', unless you want to make your calendar public (but that is not the way to go)
And Toon currently doesn't have browser functionalty.....

If someone knows how to access a calendar without a browser, please let me know, happy to implement this on Toon :-)

Kind regardz,

Toonz

Re: google calendar

Posted: Mon Nov 12, 2018 2:59 pm
by dennis071nl
@Toonz:

Could this be a solution?? Seems ther's a service account for GCal...

https://developers.google.com/accounts/ ... iceAccount

Re: google calendar

Posted: Mon Nov 12, 2018 3:43 pm
by Toonz
potentially yes, but it does require a few Java API's. Absolutely not sure it will work as the Java implementation on Toon is non-standard (some call it crappy).
It will be a significant piece of work: once you have the interface running, you will need to build a rude calendar app in QML as well.

Re: google calendar

Posted: Mon Nov 12, 2018 10:15 pm
by Rudolf
GCal lists an url that can be used to share the calendar without making it public.

It's in the per calendar settings and accompanied by the following (Dutch) text:
Gebruik dit adres om deze agenda te openen vanuit andere apps zonder de agenda openbaar te maken.
Waarschuwing: Deel dit adres alleen met mensen die alle afspraakgegevens voor deze agenda mogen zien.
Isn't this the url you're looking for? I get a valid *.ics file after downloading.

Re: google calendar

Posted: Mon Nov 12, 2018 11:39 pm
by Toonz
Sounds like it....will have a look tomorrow

Re: google calendar

Posted: Tue Nov 13, 2018 1:10 pm
by mAiden

Re: google calendar

Posted: Tue Nov 13, 2018 2:15 pm
by Toonz
Indeed you can find a link to your private calendar in ICS format in the Google Calendar webinterface (no need to logon for ICS retrieval), thanks for the tip Rudolf.
This is relatively easy to read and to display on Toon.

For the app: I guess a simple view of the next upcoming events in your calendar will do for now.
For example a tile with just the first next event (title, starttime and endtime) and a screen behind it with the first xx number of events.
And a configscreen to enter your private url for the ICS file (a bit long and awkward url to enter I'm afraid, blame Google).
Let me know if you have other suggestions.....

Kind regardz,

Toonz

Re: google calendar

Posted: Tue Nov 13, 2018 6:21 pm
by Rudolf
I think setting the url via ssh will be my preferred method.
No way I'm typing an url like that on Toon's touch screen. :lol:

The tile & screen could look very similar to WasteCollection; multiple events for today on the tile (starttime + title); more events for the full-screen widget (start - end + title).

Good luck with this app; I'll monitor its development closely.
If you open source it somewhere, I'll look into contributing.

Re: google calendar

Posted: Tue Nov 13, 2018 7:50 pm
by Toonz
I will create version 1 first and then move all my stuff to GitHub (another learning opportunity :-) )

Re: google calendar

Posted: Tue Nov 13, 2018 8:57 pm
by dennis071nl
I'll keep an close eye as well! :-)

Re: google calendar

Posted: Tue Nov 13, 2018 11:40 pm
by Toonz
small update: basic code of the app is done (good enough to start testing). Problem is that the ICS file doesn't come through via the xmlhttp request in QT.
Will look into this further later this week(end), could be a certificate issue. Fallback option is to use curl probably.......
Anyway, enough for today....:-)
EDIT: 'wget' works fine with certificate check disabled...(as plan B)

Re: google calendar

Posted: Thu Nov 15, 2018 6:15 pm
by Toonz
hi all,

small teaser with rubbish test data from my google calendar (via a cron job and wget)..... nothing ready to be released yet, but progressing :)
In dim state I am thinking of showing the first next/active appointment only.
Also need to redesign the UI on the tile (show dates as mm/dd etc etc etc)
Not sure when ready for a first release, I have a busy weekend coming up.....
calendar.png
calendar.png (12.39 KiB) Viewed 8667 times
Kind regardz,

Toonz