Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-09-28 20:28:58

davecs
Member
Registered: 2014-03-21
Posts: 24

An idea - another "Calendar"

I have an idea but I'm not that clever at programming - but would be prepared to give it a go if someone could point me the right way to get started.

The idea is to use Genmon to display the time in a panel applet, but when you click on it, it opens a mini-browser that displays your Google Calendar. Unlike other calendars, it would be dynamically linked to your Google Appointments, the calendar on your Android phone etc.

Does anyone think this is possible?

Offline

#2 2014-09-28 22:19:19

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: An idea - another "Calendar"

You can kind of do that now.

surf is a minimalistic browser that will work well with this. Install the browser.

Then, create a script with the following content:

#!/bin/bash

echo "<img>/path/to/image.png</img><txt>$(date +"%l:%M%P")</txt><click>surf https://www.google.com/calendar</click>"

...and change "/path/to/image.png" to the icon/image you want to use (genmon only supports the click event on an icon/image). Make the file executable.

Add genmon to the panel and point it to the script you created. It will display the time and when you click on the icon, it will open google calendar in surf.

Unlike other calendars, it would be dynamically linked to your Google Appointments, the calendar on your Android phone etc.

Sorry, but I don't know what exactly this means. If google calendar is your source of appointments, doesn't it just need to be linked from the end point that you are using? As then as long as you connect to google calendar, you'll have the latest set of data?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2014-09-29 11:32:58

davecs
Member
Registered: 2014-03-21
Posts: 24

Re: An idea - another "Calendar"

ToZ wrote:

Sorry, but I don't know what exactly this means. If google calendar is your source of appointments, doesn't it just need to be linked from the end point that you are using? As then as long as you connect to google calendar, you'll have the latest set of data?

I meant simply that DateTime, etc, is just a blank calendar and Orage can only link one way - that this would be a way of getting a true two way link to Google Calendar.

Thanks for your suggestions. I am abroad on a netbook right now, when I get home in a couple of weeks I intend to work on this.

Offline

#4 2014-09-29 13:35:21

davecs
Member
Registered: 2014-03-21
Posts: 24

Re: An idea - another "Calendar"

I got there! Firstly I didn't want the entire Google Calendar page, instead I created a web page on my hard drive, which included the "iframe" data you get from Google Calendar's embed helper:

https://www.google.com/calendar/embedhelper

Then adjusted the height and width of the iframe until it matched the size of "surf" window which I could not work out how to adjust.

I found a nice graphic on Google Images which I reduced to icon size.

The actual code I used was:

#!/bin/bash

echo "<img>/home/davecs/.local/calender-icon.png</img><txt>$(date +"%T")</txt><click>surf file:///home/davecs/.local/gcaliframed.html</click>"

echo "<tool>$(date +"%A, %B %d, %Y")</tool>" 

The file gcaliframed.html is

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
  <title>Google Calendar</title>
</head><body>
<iframe src=......></iframe> #contents of iframe from Google Calendar Embed Helper
</body></html>

Thanks, ToZ, for helping me to get started - I tend to be pretty resourceful but need to know where to start looking and your reply did that for me.

Last edited by davecs (2014-09-29 13:36:55)

Offline

#5 2014-09-29 17:20:18

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,494

Re: An idea - another "Calendar"

Cool. Thanks for sharing your final result.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 532.6 KiB (Peak: 533.45 KiB) ]