Premise Weatherstation and Embedded HTML

  • Thread starter Thread starter chucklyons
  • Start date Start date
Motorola Premise
C

chucklyons

Guest
I wanted to add the ability to look at my surfin' locations before grabbing the board and making for the waves. Surfline Surfline (I'm a Premium member) has 'SurfCams' that displays either live or periodic stills of the locations. Very simple, all I needed to do was create a webpage, with the images embedded.

I used Rob Brun's WeatherStation Templates as my starting point - built an HTML template with the following code: (see attachment; I got tired of messing with what code this forum would allow within code wraps)

Using Rob's WeatherStation module, I added a new sensor to the Home object, didn't bind it to anything.(see attached) Used the html webpage I created (38th) as the 'CustomViewData' and selected 'fragment' for the 'CustomviewType'. Set Navigation to 'hidden', added a Navigation link to the task bar, and ended up with the attached AutomationBrowser screensnap..the 'no-cache' lets the still get updated periodically by auto-refreshing the page.

Very simple; very hacky; very quick. I'll prob try to create a streamlined version to make it a lot easier and less hacky :)

Surf's up!
 

Attachments

  • surflineproperties.png
    surflineproperties.png
    7.8 KB · Views: 14
  • surflinetext.GIF
    surflinetext.GIF
    24.6 KB · Views: 16
  • surfline090210.GIF
    surfline090210.GIF
    42.7 KB · Views: 19
Well, I have dissected Rob Brun's Weatherstation code, modified it to be an HTML page or image, only. Very simple. You add an HTML page, point to the HTML page you have created and there it is...
I'm about ready to post it...but am having a problem with it automatically generating the plugins, etc...Once I figure that out, I'll put it up.

For the attached image, what I have is an iFrame, two embedded streaming traffic webcams and one static HTML/Jpeg that updates every 5mins (more to come, but maybe Caltrans could have some that actually work!), overlayed via Z-Index and <DIV ID>; it loads (slowly) via my Windows 6.5 mobile; fast otherwise...it loads and provides me w/ realtime traffic updates...I used it earlier today, plugged into Premise from my mobile and avoided the clogged route home.

It works!
 

Attachments

  • TrafficPlugin.gif
    TrafficPlugin.gif
    83.7 KB · Views: 9
Back
Top