SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations > SageMC Custom Interface
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-17-2007, 04:21 AM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Arrow STV Import: Google Calendar for SageMC (v0.4 / May 24, 2007)

Here is the fruit of another joint effort between flachbar (Dirk) and myself. This STV Import for SageMC provides a front-end interface to your Google Calendar account from within SageTV. Dirk did most of the heavy lifting on this one. He created the java wrappers for the Google Calendar API as well as working his magic on additional java methods and various portions of the UI. I worked on the UI and the calculations for moon phase and sunrise/sunset. We hope you guys like it!

You can download the plugin here.

Requirements:

SageTV v6.x, Java 1.6 or higher, SageMC v6.3.x

Installation:

1. Unzip the download into your SageTV folder.
2. With SageTV shut down, open the sage.properties (or sageclient.properties) file and add the following lines and save:

google_calendar/user= ######
google_calendar/password= ######

(Enter your Google Calendar login information in place of the pound signs)

3. Start SageTV and navigate to Import STVi under the Setup menu in SageMC.
4. Import GoogleCalendar.xml (Important Note: Due to limitations in the import utilities, you can only perform the import on the server or on a true client. To use the calendar on and extender or placeshifter, you can then load the SageMC .xml file withthe calendar already imported.)
5. The calendar is accessible from the Calendar Icon added to the Main Menu. Alternately you can add a menu item for the calendar using an available Custom menu item or by using dynamic menus to link to the ‘Calendar’ internal screen.

Features:
1. Events in your Google Calendar are displayed.
2. Add/Modify all-day and time-specific events with a remote control or keyboard in the Daily Planner screen. (Accessed by selecting or clicking on the desired day in the calendar.
3. Display information from up to 3 additional calendars (Must be configured from your Google Calendar account through the web interface)
4. Calculates Sunrise and Sunset times based on the ZIP code you entered for the Weather setup. (Local latitude/longitude coordinates are read from ZIP_CODES.txt in the …\SageTV\STVs\SageTV3\SageMCE\ folder. If your zip code is not listed, you can manually add it and your latitude/longitude coordinates to the end of the file using the same format as the other listings.)
5. The phase of the moon is calculated and displayed for the focused day.
6. Separate assignable calendar cell color highlights for each active calendar’s events. (The initial setting for all calendars is 0x990099 (purple). In the screen shot, I changed the default calendar color to 0x009900 (green))

Navigation:
- Use arrows or mouse-over to move to any cell in the calendar.
- First and last Calendar cells have arrows. Navigating left from the first cell (with left arrow displayed) or right from the last cell (with right arrow displayed) moves you back or forward 1 month, respectively. Arrows can also be clicked.
- Skip fwd/back moves forward or back 1 month, respectively.
- Skip fwd2/back2 moves forward or back 1 year respectively.
- Navigating up from the top row of Calendar cells or mousing over the day headers, rolls out a navigation bar with Forward and Back buttons.
- Pressing the Options key brings up an Options menu where event data can be refreshed and calendar options can be accessed. (Calendar options are also available under the Extras section of the SageMC Options screen)
- Press select or click on a calendar cell to switch to the Daily Planner screen for that date.

Version History

v 0.1
Initial Release

v 0.2

STVi changes

Added parsing of events when downloaded in 24hr format
Added option for shortened inline event display (only displays start time and event description)
Disabled 'shrink to fit' for inline event text and made font size user configurable in options menu
Changed inline event display logic. Will now display more than one event per calendar (displays up to 6 total events inline at default font size).
Added heirarchy to options menu to allow for more options than can fit in two columns
Toggle info panel display (can be mapped to Info or Custom1-5 keys and also added to options menu)
Made Info Panel event font size user configurable
Added enable/disable option for each custom calendar
Added option to enable/disable sunrise/sunset display in info panel
Added option for time display on main menu icon
Added code to allow the user to move the main menu icon location. (Hit options key while icon is highlighted and use arrow keys to move the icon)
Made Daily Planner event font size user configurable
Changed display logic in Daily Planner so that only items in default calendar will be shown
Added date display to the start/stop times when adding/modifying and event in Daily Planner
Disabled video preview in Calendar and Daily Planner screens

calendar.jar changes (Thanks Dirk!)

Increased event download limit from 25 to 1000
Changed user/password properties to google_calendar/user= and google_calendar/password= (Note: The old user/password location is still recognized. There is no need to change this if already entered.)


Selectable Calendar Icon on Main Menu (upper left)


Main Calendar screen


Navigation Bar visible


Daily Planner screen


Event entry dialog
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)

Last edited by MeInMaui; 05-18-2007 at 03:16 PM.
Reply With Quote
  #2  
Old 04-17-2007, 04:38 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Wow. That looks impressive...
Do you have any plans to create something similar for the default STV?

I have just done something which I hate to see -- the first post on an amazing new customization is a demand for some new feature for it... In mitigation, if you do not have plans for a default STV version, May I start work on it myself
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki

Last edited by nielm; 04-17-2007 at 04:40 AM.
Reply With Quote
  #3  
Old 04-17-2007, 07:12 AM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Wow! It looks fantastic, great work guys!
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma
Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire
SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT


Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink)
Reply With Quote
  #4  
Old 04-17-2007, 08:39 AM
technazz's Avatar
technazz technazz is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Hamilton, ON, CA
Posts: 499
Nice!

Ill have to install this.. Good work..

technazz
__________________
SageTV V9.xx 2 x HD300's, 2 x Nvidia Shields Running Mini Client
Reply With Quote
  #5  
Old 04-17-2007, 08:51 AM
MTuckman's Avatar
MTuckman MTuckman is offline
Sage Advanced User
 
Join Date: Feb 2005
Posts: 120
Wow - That is impressive! It put what little I have been working on to shame!


Is this one of the things you were hinting at, that the two of you had been working on?
__________________
Mike : Technical Architect / Software Engineer
HTPC : Intel® Core 2 Q6600 2.4GHz Quad Core Processor, 3GB RAM, 1TB DASD, Vista Home Prem, HdHomerun (2x Comcast QAM)
Main TV: Samsung 56" HDTV - STX-HD100 720p - HDMI - Sony DG910
Reply With Quote
  #6  
Old 04-17-2007, 10:35 AM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Quote:
Originally Posted by nielm View Post
Wow. That looks impressive...
Do you have any plans to create something similar for the default STV?

I have just done something which I hate to see -- the first post on an amazing new customization is a demand for some new feature for it... In mitigation, if you do not have plans for a default STV version, May I start work on it myself
Hi Niel,

No worries about the feature request.

I had not thought about doing a default STV version. I'll take a look at it. Hopefully it won't be too hard to port over. In the mean time you are welcome to play with it. Just please be kind when you see the mess under the hood. I'm not a programmer. (Though Dirk is, so he has saved me from my most aggregious errors.)

Thanks!

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)

Last edited by MeInMaui; 04-17-2007 at 01:25 PM.
Reply With Quote
  #7  
Old 04-17-2007, 10:39 AM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Quote:
Originally Posted by MTuckman View Post
Is this one of the things you were hinting at, that the two of you had been working on?
Yup. This is the big one we've been chipping away at. We started work on this back in mid-December.

Once the dust settles, we already have some ideas for the next project.

Thanks for all of the comments everyone!

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #8  
Old 04-17-2007, 01:22 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Quote:
Originally Posted by nielm View Post
Wow. That looks impressive...
DITTO :-)
Reply With Quote
  #9  
Old 04-17-2007, 04:06 PM
Morgan111's Avatar
Morgan111 Morgan111 is offline
Sage Fanatic
 
Join Date: Nov 2003
Location: Oak Ridge, Tennessee
Posts: 762
Great job guys! I had started using google calendar a number of months ago and this will be a great way for us to check our schedules!
Reply With Quote
  #10  
Old 04-17-2007, 04:14 PM
JUC's Avatar
JUC JUC is offline
Sage Icon
 
Join Date: May 2004
Location: Vermont, USA
Posts: 1,399
Having a slight problem. After I click on the calender I am getting ghosting/overlays. So it displays the calendar page and also my main menu page at the same time....any thoughts. Does it matter where I am pulling my background image from? I'll try reimporting and see what happens from there.

Very cool though! (the calendar part, not the ghosting/overlays)


edit. just tried again. Its actually overlaying over My Menu (i added the calendar link from there)....
__________________
Server: Athlon 2000XP; 1GB Kingston Ram; 250GB Seagate; 160GB Seagate; 160GB Western Digital; Lite-on DVD player; Hauppauge Rosyln; Hauppauge PVR-150; ATI AIW 7500; Actisys 200L; running stock v5 .stv


Client: MVP Extender running SageMC

Last edited by JUC; 04-17-2007 at 04:20 PM.
Reply With Quote
  #11  
Old 04-17-2007, 04:22 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Quote:
Originally Posted by JUC View Post
Having a slight problem. After I click on the calender I am getting ghosting/overlays. So it displays the calendar page and also my main menu page at the same time....any thoughts. Does it matter where I am pulling my background image from? I'll try reimporting and see what happens from there.

Very cool though! (the caldendar part, not the ghosting/overlays)
It sounds like it can't find the background image file. The safest bet is to name your background image file to background.png and place it in the Images folder. Then make sure that is the file you are pointing to under the SageMC Options menu. I'll have a look at this as soon as I get the chance.

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #12  
Old 04-17-2007, 04:51 PM
JUC's Avatar
JUC JUC is offline
Sage Icon
 
Join Date: May 2004
Location: Vermont, USA
Posts: 1,399
That did the trick. Apparently I had multiple background images in many places with my paths pointing all over the place. Cleaned it up and all is good. Very Nice!
Thanks,
Juc
__________________
Server: Athlon 2000XP; 1GB Kingston Ram; 250GB Seagate; 160GB Seagate; 160GB Western Digital; Lite-on DVD player; Hauppauge Rosyln; Hauppauge PVR-150; ATI AIW 7500; Actisys 200L; running stock v5 .stv


Client: MVP Extender running SageMC
Reply With Quote
  #13  
Old 04-17-2007, 06:39 PM
Madcoder Madcoder is offline
Sage Advanced User
 
Join Date: Dec 2004
Posts: 111
Wow. Nice work. Unfortunately I can't allow myself to be duped into using a service that will catalog all my activities for everything they can get their grubby hands on. I like the search engine though.
Reply With Quote
  #14  
Old 04-17-2007, 07:06 PM
spike5884's Avatar
spike5884 spike5884 is offline
Sage Advanced User
 
Join Date: May 2004
Location: WI
Posts: 118
Quote:
Originally Posted by Madcoder View Post
Wow. Nice work. Unfortunately I can't allow myself to be duped into using a service that will catalog all my activities for everything they can get their grubby hands on. I like the search engine though.
Yes, according to a recent article you need to watch how you put stuff on your Google calendar.

Corporate data slips out via Google calendar
__________________
Thanks,
Scott
aka Spike5884
Reply With Quote
  #15  
Old 04-17-2007, 07:25 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by spike5884 View Post
Yes, according to a recent article you need to watch how you put stuff on your Google calendar.

Corporate data slips out via Google calendar
Google calendars are created in "Default" mode (which is private) by default. The guy mentioned in the article must have made it "Public" explicitly. Even the article says it's a clear case of user misuse. If you use any kind of public service you should be aware of the implications, this is not limited to Google.

Dirk
Reply With Quote
  #16  
Old 04-17-2007, 07:47 PM
Pretzelboy Pretzelboy is offline
Sage User
 
Join Date: Nov 2006
Posts: 42
This is really nice. Thank you.
Reply With Quote
  #17  
Old 04-18-2007, 05:09 AM
Hyperbaric's Avatar
Hyperbaric Hyperbaric is offline
Sage User
 
Join Date: Nov 2006
Location: Glasgow
Posts: 40
Wow! Great enhancement Will actually use Google Calendar now.

Wee point... After adding an event, it is shown next to "All day event" on the daily planner screen rather than next to the appropriate timeslot.

Also, any plans to implement reminder features?
__________________
P4 2.8 + Zalman CNPS7700-ALCU, 1.25Gb RAM, 80Gb / 250Gb ATA, ATI 9800XT + Zalman VF700-CU, Sweetspot RGB capture card (Sky SD) / Hauppauge Nova-T tuner (Freeview DVB-T)

http://www.osirisphoto.com
Reply With Quote
  #18  
Old 04-18-2007, 05:43 AM
brewston brewston is offline
Sage Expert
 
Join Date: Apr 2006
Location: Surrey
Posts: 719
I like it too

I've just discovered a free service called goosync that allows you to synchronise the calendar on your Nokia phone (series 60 OS) with google calendar

Is there any easy way to remove the ical alike icon on the front screen ? Id rather just access through one of the custom menus. I'm happy with remove the bits from the XML file and re-import if you can point me to the right bits

Cheers

Tim
__________________
Tecra M5, 2 x HD200, 2 x HD300
2 x PCTV 290e
Win 7, Sage 7.1.9, Phoenix 2 STV
Stephane's XMLTV Importer, Digiguide,
Reply With Quote
  #19  
Old 04-18-2007, 05:55 AM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by brewston View Post

Is there any easy way to remove the ical alike icon on the front screen ? Id rather just access through one of the custom menus. I'm happy with remove the bits from the XML file and re-import if you can point me to the right bits

Simply disable "Show Main Menu button" in the calendar options


Dirk
Reply With Quote
  #20  
Old 04-18-2007, 06:11 AM
brewston brewston is offline
Sage Expert
 
Join Date: Apr 2006
Location: Surrey
Posts: 719
Quote:
Originally Posted by flachbar View Post
Simply disable "Show Main Menu button" in the calendar options


Dirk
Reminder to self - explore all options before posting on forums
__________________
Tecra M5, 2 x HD200, 2 x HD300
2 x PCTV 290e
Win 7, Sage 7.1.9, Phoenix 2 STV
Stephane's XMLTV Importer, Digiguide,
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
STV Import: Toolbar for SageMC (v1.0a / June 11, 2007) MeInMaui SageMC Custom Interface 136 03-11-2009 03:12 PM
STV: SageMC 16x9 Version 6.x (latest dev build) dflachbart SageMC Custom Interface 6112 04-04-2008 11:16 PM
STV update for Online Videos in v6.1.9 Opus4 SageTV Software 8 09-12-2007 05:42 PM
Import DVD Profiler xml into default STV wags119 SageTV Customizations 7 10-30-2006 07:35 PM


All times are GMT -6. The time now is 01:02 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.