SageTV Community  

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

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-23-2009, 08:57 AM
dinki's Avatar
dinki dinki is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 682
Traffic camera web page

Our local police department has opened access to many traffic cameras in our city. The cameras produce a jpeg image that is constantly updated. I've found the url for each camera I am interested in and have written a web page that auto-refreshes itself thus giving the images appear to be 'moving pictures'.

I would like to somehow have access to this web page under Sage so that I can see what the traffic is like before leaving home. Does this sound like something I should be using SageTV Studio to write or is there another way to do it?
Reply With Quote
  #2  
Old 01-23-2009, 10:39 AM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Check out the Weather Report Suite Import. It works with the stock stv for Sage 6.4.8 (it's also built-in to SageMC, but not shown unless you point to it with the Dynamic menus).

Although it is intended to show weather, it will show any pictures you configure it to show. Configuration is done with an XML file that you can edit with any text editor (ie Windows Notepad).

Sage does not support animated gifs, but the weather map import gets around this by loading several sequential images and sequencing through them. This is how it shows moving satellite weather maps.

The import includes a sample weatherconfig.xml file that is pretty well documented inside with comments.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #3  
Old 01-23-2009, 10:52 AM
dinki's Avatar
dinki dinki is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 682
Excellent! I'll give it a look. Thanks for the push in the right direction.
Reply With Quote
  #4  
Old 01-23-2009, 01:23 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Quote:
Originally Posted by Tiki View Post
Sage does not support animated gifs, but the weather map import gets around this by loading several sequential images and sequencing through them. This is how it shows moving satellite weather maps.
Can anyone offer some tips for this? I'm trying to use the map at the following address:

http://www.accuweather.com/radar-large.asp?partner=accuweather&traveler=0&zipChg=1&site=PA_&type=SIR&anim=1&level=state&large=1

The gif is located at http://sirocco.accuweather.com/nx_mo...inmaSIRPA_.gif

No matter what I do, I cannot get the "animation" to work with the SageMC weather maps. I assume it's because I'm screwing something up, but I just can't figure it out. I managed to change the map names in the left column, as well as point them to static GIF images from AccuWeather, but the animation part is stumping me.

Thanks.
Reply With Quote
  #5  
Old 01-24-2009, 01:45 PM
pjwerdna pjwerdna is offline
Sage Aficionado
 
Join Date: Oct 2004
Location: UK, Slough
Posts: 397
The gif you linked to is animated. SageTV doesnt support those.

You'll have to use other software to split the animation into several still gifs, then point the weather map at all the gif files one after the other.

Not sure SageTV (or is it SageMC?) will allow you to load the maps from a folder on the hard drive, so you might have to set up your own webserver and point it at that!
__________________
SageTV Server : Akasa Inifiiti Case, Gigabyte GA-P35C-DS3 MB, 8600GT, Core2 Duo (E6850 3GHz), 4GB RAM, ~6TB Filestore , Nova-TD500, TBS 6280, SageTV 7.1.9
New Client 2 :MSI P67A-GD53, i5 2500K Quad core (3.3GHz), 12GB, Windows 10 Pro (and test SageTV 9 Install)
Sage Client 1 : HD300, Logitech Harmony One
Reply With Quote
  #6  
Old 01-27-2009, 12:19 AM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Since I definitely don't want to use another program to get the map working, I can live without AccuWeather's maps. Back at Weather.com, I found this image http://image.weather.com/looper/arch...?1233037009974, which I see changes between 1L & 5L to create the animation.

What file needs to be edited in order to animate the above 5 images in SageMC? The only thing I've edited so far is my SageClient.properties file where I changed it to have the following lines:

sagemc/wximage_title_1=Tri-State Conditions
sagemc/wximage_title_2=NE Conditions
sagemc/wximage_title_3=NE Precipitation
sagemc/wximage_title_4=National Conditions
sagemc/wximage_title_5=Morning Forecast
sagemc/wximage_title_6=Evening Forecast
sagemc/wximage_title_7=Current US Temps
sagemc/wximage_url_1=http\://sirocco.accuweather.com/sat_mosaic_640x480_public/rs/isrpa_.jpg
sagemc/wximage_url_2=http\://sirocco.accuweather.com/sat_mosaic_640x480_public/rs/isrne.jpg
sagemc/wximage_url_3=http\://image.weather.com/images/maps/forecast/ne_precfcst_600x405.jpg
sagemc/wximage_url_4=http\://image.weather.com/images/maps/current/curwx_600x405.jpg
sagemc/wximage_url_5=http\://image.weather.com/images/maps/forecast/amfcst_600x405.jpg
sagemc/wximage_url_6=http\://image.weather.com/images/maps/forecast/pmfcst_600x405.jpg
sagemc/wximage_url_7=http\://image.weather.com/images/maps/current/acttemp_600x405.jpg

Thanks!
Reply With Quote
  #7  
Old 01-27-2009, 02:27 AM
Homebuilder Homebuilder is offline
Sage Advanced User
 
Join Date: Sep 2005
Posts: 180
This isnt exactly what you wanted... but I was planning to do something similar for a car computer. Just create a webpage on my local machine that linked to the cameras.

It sounds like from the previous posts you cant open with sage... which is a bummer.... but you can switch between your web browser and sage with the remote easily. I know from the RSS feed plug in that from sage you can open up your browser on a certain web site page... and it changes the focus from sage to the browser


I was actually planning to do this for a mobile computer and have it gps driven.. showing me the cameras coming up on my drive.


Heres just another thought.... any way to use the youtube access in sage to somehow make this work? or the upcoming hulu access?
Reply With Quote
  #8  
Old 01-27-2009, 05:59 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Quote:
Originally Posted by Skirge01 View Post
Since I definitely don't want to use another program to get the map working, I can live without AccuWeather's maps. Back at Weather.com, I found this image http://image.weather.com/looper/arch...?1233037009974, which I see changes between 1L & 5L to create the animation.

What file needs to be edited in order to animate the above 5 images in SageMC? The only thing I've edited so far is my SageClient.properties file where I changed it to have the following lines:

sagemc/wximage_title_1=Tri-State Conditions
sagemc/wximage_title_2=NE Conditions
sagemc/wximage_title_3=NE Precipitation
sagemc/wximage_title_4=National Conditions
sagemc/wximage_title_5=Morning Forecast
sagemc/wximage_title_6=Evening Forecast
sagemc/wximage_title_7=Current US Temps
sagemc/wximage_url_1=http\://sirocco.accuweather.com/sat_mosaic_640x480_public/rs/isrpa_.jpg
sagemc/wximage_url_2=http\://sirocco.accuweather.com/sat_mosaic_640x480_public/rs/isrne.jpg
sagemc/wximage_url_3=http\://image.weather.com/images/maps/forecast/ne_precfcst_600x405.jpg
sagemc/wximage_url_4=http\://image.weather.com/images/maps/current/curwx_600x405.jpg
sagemc/wximage_url_5=http\://image.weather.com/images/maps/forecast/amfcst_600x405.jpg
sagemc/wximage_url_6=http\://image.weather.com/images/maps/forecast/pmfcst_600x405.jpg
sagemc/wximage_url_7=http\://image.weather.com/images/maps/current/acttemp_600x405.jpg

Thanks!
As far as I know only the Weather Report Suite plugin supports animated gifs. It's old but I believe it still works. Here's the wiki for info. Weather Report Suite and thread: Weather Report Suite Thread

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #9  
Old 01-27-2009, 12:10 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Does the WRS work with SageMC by default or will I need to do some serious tweaking?
Reply With Quote
  #10  
Old 01-27-2009, 03:46 PM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
It's been awhile since I set it up. But read the wiki. I think SageMC basically put that plugin inplace with SageMC. Just run it and it should pull up some default maps. (I think)

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #11  
Old 01-27-2009, 04:09 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
I originally thought so, too. It definitely does put up default maps and I even changed them to the (static) ones I wanted. But, I'm trying to get animated maps, however I can. First, I thought WRS was built into SageMC, but then people seemed to say it wasn't. Then, I wanted to know how to implement WRS in SageMC. So, I'm back to my original question...

Can you get animated gifs (via cycling through several static images) in SageMC and, if so, how?

I do appreciate everyone trying to help.
Reply With Quote
  #12  
Old 01-27-2009, 04:37 PM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Quote:
Originally Posted by Skirge01 View Post
I originally thought so, too. It definitely does put up default maps and I even changed them to the (static) ones I wanted. But, I'm trying to get animated maps, however I can. First, I thought WRS was built into SageMC, but then people seemed to say it wasn't. Then, I wanted to know how to implement WRS in SageMC. So, I'm back to my original question...

Can you get animated gifs (via cycling through several static images) in SageMC and, if so, how?

I do appreciate everyone trying to help.
Did you follow the wiki I linked to or search the WRS support thread? For example:
Quote:
How Tos ¶
Installation instructions and a brief description of the WRS config file can be found in the WeatherReportSuiteConfiguration page. The default config files also contain comments explaining the format.

How do I add a new weather forecast location ¶
In the config file weatherconfig.xml, there is a <locations> section.

Each location has an internal name, a label for displaying, and the location ID from weather.com. To find the weather.com location ID, go to weather.com and display the weather for your city or ZIP code. The location ID will be in the URL of the page.

For North American users, your ZIP code can be used as a location ID.

eg: for London, UK, the weather URL is:
http://www.weather.com/outlook/travel/local/UKXX0085
therefore the location code is UKXX0085

eg: For Beverly Hills, CA you can use the zip code of 90210, but if you do a city search for Beverly Hills, you can see that there is also a location ID of USCA0090 Both can be used.

You then add a new location within the existing <locations> block as follows

<location
name="London"
label="London">
<weathersourceinfo id="UKXX0085"/>
</location>
If you have local views -- ie animated images specifically for the current location (see below), you will need to add these also for the new location name.

How do I add a new set of animated images ¶
First find your images, and determine whether it is a single animated GIF, or a sequence of images files (gif/jpg/png) animated by a java script. For example:

Weather.com's animated maps are a sequence of JPGs.
Accuweather.com's animated sat image is a single animated GIF
You can normally see this by looking at the image properties for each page in the animation, If there are multipl image URLs or if there is a manual animation advance, it is surely a sequence of separate images

Build a new <view> block in the weatherconfig.xml between the <rotan></rotan> tags referring to these images with the animation properties you require.

If it is an animated gif, you need something like:

<view name="newviewname" speed="750" delay="3000" maxage="0.25">
<layer
type="animation"
href="http://host/path/animated.gif"
imageType="png"/>
</view>
If it is a sequence of images, you need something like:

<view name="newviewname" speed="750" delay="3000" maxage="0.25">
<layer type="manualanimation" imageType="jpeg">
<image href="http://host/path/image1.jpg"/>
<image href="http://host/path/image2.jpg"/>
<image href="http://host/path/image3.jpg"/>
<layer>
</view>
Speed is the between image transition time
delay is the delay at the end of the animation before looping
maxage is the number of hours the imaegs are held in a cache
Once you have youre new view, link it to a submenu by adding a <rotan> item in a <submenu> referencing the view.

<rotan label="display name" view="newviewname">
If you want to define a view that shows different images depending on the currently selected location -- a 'local' view, then add the location="location name" attribute to the view, and the local="true" attribute to the <rotan> item in the submenu.

Make sure that view names and location names match, otherwise the menu item will not be shown.

Note that you can only use images whose filename does not change. If the filename contains the date, then this image will become out-of-date very soon!
If I'm not mistaken that should a) Get you to change whatever the defaults are in WRS to your area and b) Get you your animated maps.

And sorry for taking this thread totally off the tracks.

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #13  
Old 01-27-2009, 05:17 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Believe it or not, I did. I even searched that entire thread for any reference to SageMC and only got a handful of hits, only some of which were relevant. Then, I found a post from 2005 or 2006 saying that WRS probably wouldn't work with SageMC and another saying that WRS was implemented in SageMC at some point. So, I got stuck in a vicious circle with no real answer. I don't think that weatherconfig.xml is even used in my install, since there's no reference to my region, yet the sageclient.properties file I edited managed to change the maps. But, I'll go tinker with that xml file and see if anything changes. If not, I'll post a new thread and reference this one.

Sorry for hijacking this thread. I thought it might take just a single response or two to figure out what I was doing wrong and that the OP's issue was related.
Reply With Quote
  #14  
Old 01-28-2009, 01:23 PM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
I'm not currently running SageMC, but I did have it running about a month ago with the most recent release at the time (I think it was 6.3.8b). In that version, if you clicked on the weather icon from the main page it took you to a weather section that was unique to SageMC and had some weather maps. This is not the same as the Weather Report Suite import and I don't know how to customize it.

However, the Weather report suite is built in to SageMC - it just isn't exposed in any of the menus. You have to use the Dynamic Menus to get to it. Dynamic Menus are built in to SageMC, so it's just a matter of adding another menu item to one of your menus. Tell it to add an internal screen, then scroll through the available screens. The one you are looking for has the name SALZBT or something like that in the title. I can't remember the exact name but it is something like "WRS byt SALZBT" or "Weather Report Suite by SALZBOT"

This one is just like the Weather Report Suite Import (but slightly tweaked to blend in with the SageMC theme). It uses the same weatherconfig.xml file to determine what to show.

I hope that's enough to point you in the right direction.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #15  
Old 01-28-2009, 02:03 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Yep... Gerry's info was spot on and I was able to find it all last night and enable it. Now I can start playing with the xml file.

Thanks, guys! And, sorry for hijacking this thread! I actually hate when people do that, so I'm REALLY sorry!!!!
Reply With Quote
  #16  
Old 01-28-2009, 05:38 PM
bastian74 bastian74 is offline
Sage Advanced User
 
Join Date: Jul 2005
Posts: 136
Traffic cameras aren't very good at judging traffic speeds.
Does your city have motion sensing on the highways?
Many large cities do now.
For example, Minnesota metro:
http://www.dot.state.mn.us/tmc/traff...efreshmap.html
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
A Couple of Sage Web Server Questions... robhix SageTV Customizations 4 01-22-2009 06:37 PM
Traffic QueOnda SageTV Customizations 2 12-16-2008 05:30 PM
Web Page integration ... CousinJed SageTV Customizations 3 08-06-2008 01:48 PM
STV Import: Web page Viewer (v2.1 20/Dec/2007) nielm SageTV Customizations 24 05-17-2008 12:15 AM


All times are GMT -6. The time now is 02:30 AM.


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