google calendar

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

dennis071nl
Starting Member
Starting Member
Posts: 35
Joined: Sat Jun 03, 2017 9:13 pm

google calendar

Post 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?? :-))
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: google calendar

Post 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.
dennis071nl
Starting Member
Starting Member
Posts: 35
Joined: Sat Jun 03, 2017 9:13 pm

Re: google calendar

Post 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??
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: google calendar

Post 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
member of the Toon Software Collective
dennis071nl
Starting Member
Starting Member
Posts: 35
Joined: Sat Jun 03, 2017 9:13 pm

Re: google calendar

Post by dennis071nl »

@Toonz:

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

https://developers.google.com/accounts/ ... iceAccount
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: google calendar

Post 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.
member of the Toon Software Collective
Rudolf
Member
Member
Posts: 136
Joined: Mon Dec 04, 2017 8:50 pm

Re: google calendar

Post 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.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: google calendar

Post by Toonz »

Sounds like it....will have a look tomorrow
member of the Toon Software Collective
mAiden
Member
Member
Posts: 330
Joined: Mon Jul 10, 2017 10:22 am

Re: google calendar

Post by mAiden »

Member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: google calendar

Post 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
member of the Toon Software Collective
Rudolf
Member
Member
Posts: 136
Joined: Mon Dec 04, 2017 8:50 pm

Re: google calendar

Post 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.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: google calendar

Post by Toonz »

I will create version 1 first and then move all my stuff to GitHub (another learning opportunity :-) )
member of the Toon Software Collective
dennis071nl
Starting Member
Starting Member
Posts: 35
Joined: Sat Jun 03, 2017 9:13 pm

Re: google calendar

Post by dennis071nl »

I'll keep an close eye as well! :-)
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: google calendar

Post 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)
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: google calendar

Post 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 8620 times
Kind regardz,

Toonz
member of the Toon Software Collective
Post Reply

Return to “Toon Apps”