ckeyes888 wrote:Dave, doesn't sound like gibberish...more like interesting.
Care to share how to implement the iFrame into Indigo?
Thanks,
Carl
Hi Carl,
We're not implementing iFrames into Indigo, rather, we're viewing web pages that serve Indigo content into an
iFrame. What we need to do is to construct an HTML file that will be viewed by our device (and this file needs to be accessible where ever we want to view it, but it also needs to be able to reach the IP address of the Indigo Web Server.
This code loads the animated radar image into the webpage, and tells the browser how to place it on the page. As far as I know, current convention is to use CSS style properties for iFrames as several legacy
iFrame style tags have been deprecated. All that is to say that the 'style' tag tells the browser how to display the frame.
- Code: Select all
<iframe style="position:absolute; top:100px; left:010px; border:none" width="420" height="420" src="http://api.wunderground.com/api/<API KEY>/animatedradar/q/<STATE>/<CITY>.gif?newmaps=1&timelabel=1&timelabel.y=10&num=8&delay=50&noclutter=1&width=400&height=400&radius=100&timelabe.x=20&timelabel.y=395"></iframe>
This code loads an
iFrame with an Indigo control page inside it. The 'Indigo IP' is the IP address of the computer running the Indigo Web Server that will render the content.
- Code: Select all
<iframe style="position:absolute; top:010px; left:430px; border:none" width="500" height="310" src="http://<USERNAME>:<PASSWORD>@<INDIGO IP>:8176/controlpage?name=iFrame%20Weather"></iframe>
The image below includes a third
iFrame which is accessing data that I upload to Thingspeak.com (Indigo uploads the data through the Thingspeak API) and includes a scroll bar because there are actually 12 graphs in that frame that I can view. If you start with the code from my post above, and adjust it for your setup, it should get you started.
Dave