# Document Viewer

**URL:** <https://forum.inductiveautomation.com/t/document-viewer/824>\
**Category:** Archived Topics\
**Created:** [September 24, 2008, 2:14pm UTC](https://forum.inductiveautomation.com/t/document-viewer/824 "2008-09-24T14:14:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matth](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@matth](https://forum.inductiveautomation.com/u/matth)\
**Post date:** [September 24, 2008, 2:14pm UTC](https://forum.inductiveautomation.com/t/document-viewer/824/1 "2008-09-24T14:14:23Z")

</div>

Hello,

We have a 32" LCD set on a wall with a cycling screen, to show the status of different machines. I would like to add a few things to this:

Weather  
Utility Status

I found the document viewer plugin and pasted a link to Accuweather’s site for our radar. Is there a radar-only link? Does anyone have a recommendation about how to strip out the radar and maybe forcast information easily? I’m hoping someone has done this before.

[oge.com/systemwatch/](http://www.oge.com/systemwatch/) - This is the link to our utility System Watch. It does have a radar overlay, but it is displayed with Macromedia Flash. Is this doable?

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [September 24, 2008, 5:26pm UTC](https://forum.inductiveautomation.com/t/document-viewer/824/2 "2008-09-24T17:26:46Z")

</div>

Embedding flash probably isn't going to be your best bet, althought you might be able to get that to work with the (free) ActiveX plugin.

Scraping a weather page for info and displaying it is a fun trick. See this script (which I copied and pasted from the user manual)

[code]# This function would query Yahoo Weather for the temperature at

# the given zipcode and find the temperature using a regular expression

def getTempAt(zipCode):  
import fpmi  
import re #Regular Expression library

```
response = fpmi.net.httpGet("http://xml.weather.yahoo.com/forecastrss?p=" + str(zipCode))

# NOTE - if you've never seen regular expressions before, don't worry, they look
# confusing even to people who use them frequently.
pattern = re.compile('.*?<yweather:condition (.*?)/>', re.DOTALL)
match = pattern.match(response)
if match:
	subText = match.group(1)
	temp = re.compile('.*?temp="(.*?)"').match(subText).group(1)
	return int(temp)
else:
	fpmi.gui.errorBox("Yahoo weather service changed")
	return -1[/code]

```

Also, notice that linking to this image brings in an updated radar map for california:  
([sirocco.accuweather.com/nx\_mosai ... SIRCAC.gif](https://forum.inductiveautomation.com/uploads/short-url/7EEZOIOeeRkTMDbzUWag5VO1Ych.gif))

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/5/35a7e2763dfdf372459468b18e423fdd6adc4221.gif)

Hope this helps,

---

<div class="post-metadata">

**Author:** ![nathan](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@nathan](https://forum.inductiveautomation.com/u/nathan)\
**Post date:** [November 28, 2008, 2:59am UTC](https://forum.inductiveautomation.com/t/document-viewer/824/3 "2008-11-28T02:59:27Z")

</div>

Anyone have a copy of that weather component that had the images included from Yahoo weather? (Partially cloudy, sunny, etc). It would make a nice [Goody](http://www.inductiveautomation.com/products/factorypmi/goodies/).
