SageTV Community  

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

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-05-2004, 11:38 AM
Alex0230 Alex0230 is offline
Sage Advanced User
 
Join Date: Mar 2004
Location: AZ
Posts: 203
MlbDude Weather Module -- Java Version

I wrote a java version of the weather extractor for those who do not have the .NET framework installed on their sage boxes...like me.

http://download.sage.tv/~mlbdude/GetWeatherJava.zip

Extact the contents of the zip on your machine; I recommend extracting to the current location of the GetWeather.exe for simplicity. This should be where all the MlbDude STV pictures are...

In your sage.properties file change the following line:
//replace GetWeather.exe to GetWeatherJava.exe
mlbdude/weather_exe=\\STVs\\MlbDude\\GetWeatherJava.exe

** If you experience any java errors when running, check your internet connection and also the java version you are running, you may need atleast 1.4. **
__________________
ECS K7VTA3 + AthlonXP2400XP+ = $70
250 GB 7200 RPM HD = $160
512 MB Kingston DDR 333 = $80
Hauppage 350 Bundle = $220
SageTv = PriceLess

Last edited by Alex0230; 07-05-2004 at 11:41 AM.
Reply With Quote
  #2  
Old 07-05-2004, 11:42 AM
mlbdude's Avatar
mlbdude mlbdude is offline
Moderator
 
Join Date: May 2003
Location: Melbourne, Florida
Posts: 4,174
Thanks so much Alex!
Reply With Quote
  #3  
Old 07-05-2004, 12:07 PM
Alex0230 Alex0230 is offline
Sage Advanced User
 
Join Date: Mar 2004
Location: AZ
Posts: 203
NP....I'm happy to be able to give back. If there are any issues running this, just let me know.

I know there is one issue right know if you try to run the weather module when the exe resides on another computer. For example, I'm on my desktop machine (computerA) and I try to run the weather program from "\\sage\sagetv\getWeatherJava.exe", it returns an error code. However there is no problem running it locally on either machine. The error may be due to how the executable function and running it from a remote share like that may not be supported.
__________________
ECS K7VTA3 + AthlonXP2400XP+ = $70
250 GB 7200 RPM HD = $160
512 MB Kingston DDR 333 = $80
Hauppage 350 Bundle = $220
SageTv = PriceLess
Reply With Quote
  #4  
Old 07-05-2004, 12:14 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Any comments on which is preferable, assuming both .Net and java are installed? (OK, so java has to be there for SageTV to work in the first place...)

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #5  
Old 07-05-2004, 12:17 PM
mlbdude's Avatar
mlbdude mlbdude is offline
Moderator
 
Join Date: May 2003
Location: Melbourne, Florida
Posts: 4,174
Quote:
Originally posted by Opus4
Any comments on which is preferable, assuming both .Net and java are installed? (OK, so java has to be there for SageTV to work in the first place...)

- Andy
That is the main advantage and why I sought out someone to do this .
Reply With Quote
  #6  
Old 07-05-2004, 12:54 PM
srothwell's Avatar
srothwell srothwell is offline
Sage Icon
 
Join Date: Jul 2004
Location: Richmond, VA
Posts: 1,064
I don't have the line in the properties file. Do I simply add it or am I getting into an area I shouldn't be playing in :-)

If I do add it, how do I access it during running the sage software?

Thanks

Stacy
Reply With Quote
  #7  
Old 07-05-2004, 12:56 PM
mlbdude's Avatar
mlbdude mlbdude is offline
Moderator
 
Join Date: May 2003
Location: Melbourne, Florida
Posts: 4,174
The line won't appear by itself until you go to the Weather module. However, you can always add it yourself. Make sure Sage is COMPLETELY closed though.
Reply With Quote
  #8  
Old 07-05-2004, 02:57 PM
srothwell's Avatar
srothwell srothwell is offline
Sage Icon
 
Join Date: Jul 2004
Location: Richmond, VA
Posts: 1,064
I took a look at weatherroom.com.

Any change we can find a way to get the radar integrated into Sage?

The 4-day forecast is cool, but the radar would be awesome to have at the push of a remote button.

Stacy
Reply With Quote
  #9  
Old 07-05-2004, 03:05 PM
justme justme is offline
Moderator
 
Join Date: Mar 2003
Location: Greater Baltimore/Washington Metropolitan area
Posts: 1,481
First big thanks to MlbDude for adding this really cool feature. I personally prefer a Java version as I've tried to resist installing .Net for a long time now. Nothing against MlbDude's approach as I can't code in Java or .Net so I have no right to complain either way. Very clever of MlbDude to use a method that would allow for such versatility. Big thanks to Alex for his Java version, coming out so fast.

Quote:
Any change we can find a way to get the radar integrated into Sage?
If nothing else why not a radar menu/screen that pulls it's image from a URL specified in the properties file. This allows the user to pick to the best image/source for them and your STV is doing nothing more than referencing a HTTP link. It would be up to the user to get the URL for their desired source. Just a suggestion

/justme

Last edited by justme; 07-05-2004 at 03:12 PM.
Reply With Quote
  #10  
Old 07-05-2004, 03:19 PM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
Yeah, the map would be awsome.
__________________
Mike Janer
SageTV HD300 Extender X2
Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5
Reply With Quote
  #11  
Old 07-06-2004, 01:10 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
www.weather.com has nice radar maps images for the whole world...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #12  
Old 07-06-2004, 06:46 PM
Alex0230 Alex0230 is offline
Sage Advanced User
 
Join Date: Mar 2004
Location: AZ
Posts: 203
This was posted in a another thread:

-----------------------------
Alex0230
That property came back and is set to false
but I am still having trouble with your Weather module
I can not get it to load in Sage
if I manually run the getweatherjava.exe
I get weather for Phoenix Arizona and then it will appear in Sage but for Phoenix
I live in Coppell, Texas

Is there something wrong with your weather module?
----------------------------------------------------------------------------

The usage for the program is as follows:

PHP Code:
getWeatherJava.exe [url] [output_file
the default url is: http://www.weatherroom.com/xml/ext/85009
the default output_file is: Weather.txt

This should explain why anyone of you are getting Phoenix data, it is because the url is not getting passed correctly. You are either running it manually without passing a url...or your sage.properties isn't setup correctly.


mlbdude/weather_exe=\\STVs\\OriginalV\\MlbDude\\GetWeatherJava.exe
mlbdude/weather_exe_java=false
mlbdude/weather_file=\\STVs\\OriginalV2\\MlbDude\\Weather.txt
mlbdude/weather_provider=www.weatherroom.com
mlbdude/weather_url=http\://www.weatherroom.com/xml/ext/
mlbdude/weather_zip=85204
__________________
ECS K7VTA3 + AthlonXP2400XP+ = $70
250 GB 7200 RPM HD = $160
512 MB Kingston DDR 333 = $80
Hauppage 350 Bundle = $220
SageTv = PriceLess

Last edited by Alex0230; 07-06-2004 at 06:52 PM.
Reply With Quote
  #13  
Old 07-06-2004, 07:03 PM
kny3twalker kny3twalker is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,074
ok for some reason I did not have this line correct
mlbdude/weather_exe=\\STVs\\OriginalV2\\MlbDude\\GetWeatherJava.exe
it was
mlbdude/weather_exe=\\STVs\\MlbDude\\GetWeatherJava.exe

my bad I just trying to get it to work before I went to work
Thanks it works great

I hope someone does add onto this
it would be nice to have more information
Reply With Quote
  #14  
Old 07-06-2004, 07:11 PM
Alex0230 Alex0230 is offline
Sage Advanced User
 
Join Date: Mar 2004
Location: AZ
Posts: 203
Glad that works out for you...

---------------------------------------------------------------------------------------
I hope someone does add onto this
it would be nice to have more information
---------------------------------------------------------------------------------------

I always thought an RSS feed for slashdot would be cool to have, then I wouldn't have to get up and get on the computer...
__________________
ECS K7VTA3 + AthlonXP2400XP+ = $70
250 GB 7200 RPM HD = $160
512 MB Kingston DDR 333 = $80
Hauppage 350 Bundle = $220
SageTv = PriceLess
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


All times are GMT -6. The time now is 07:04 AM.


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