google calendar

Forum about forum-provided applications on Toon

Moderators: marcelr, TerrorSource, Toonz, TheHogNL

google calendar

Postby dennis071nl » Mon Nov 12, 2018 10:03 am

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?? :-))
dennis071nl
Starting Member
Starting Member
 
Posts: 35
Joined: June 2017

Re: google calendar

Postby TerrorSource » Mon Nov 12, 2018 10:59 am

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.
TerrorSource
Member
Member
 
Posts: 393
Joined: May 2017

Re: google calendar

Postby dennis071nl » Mon Nov 12, 2018 11:44 am

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??
dennis071nl
Starting Member
Starting Member
 
Posts: 35
Joined: June 2017

Re: google calendar

Postby Toonz » Mon Nov 12, 2018 1:41 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1445
Joined: December 2016

Re: google calendar

Postby dennis071nl » Mon Nov 12, 2018 1:59 pm

@Toonz:

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

https://developers.google.com/accounts/ ... iceAccount
dennis071nl
Starting Member
Starting Member
 
Posts: 35
Joined: June 2017

Re: google calendar

Postby Toonz » Mon Nov 12, 2018 2:43 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1445
Joined: December 2016

Re: google calendar

Postby Rudolf » Mon Nov 12, 2018 9:15 pm

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.
Rudolf
Member
Member
 
Posts: 119
Joined: December 2017

Re: google calendar

Postby Toonz » Mon Nov 12, 2018 10:39 pm

Sounds like it....will have a look tomorrow
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1445
Joined: December 2016

Re: google calendar

Postby mAiden » Tue Nov 13, 2018 12:10 pm

mAiden
Member
Member
 
Posts: 284
Joined: July 2017

Re: google calendar

Postby Toonz » Tue Nov 13, 2018 1:15 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1445
Joined: December 2016

Re: google calendar

Postby Rudolf » Tue Nov 13, 2018 5:21 pm

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.
Rudolf
Member
Member
 
Posts: 119
Joined: December 2017

Re: google calendar

Postby Toonz » Tue Nov 13, 2018 6:50 pm

I will create version 1 first and then move all my stuff to GitHub (another learning opportunity :-) )
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1445
Joined: December 2016

Re: google calendar

Postby dennis071nl » Tue Nov 13, 2018 7:57 pm

I'll keep an close eye as well! :-)
dennis071nl
Starting Member
Starting Member
 
Posts: 35
Joined: June 2017

Re: google calendar

Postby Toonz » Tue Nov 13, 2018 10:40 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1445
Joined: December 2016

Re: google calendar

Postby Toonz » Thu Nov 15, 2018 5:15 pm

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 3749 times


Kind regardz,

Toonz
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1445
Joined: December 2016

Next

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 1 guest