# Weather Script

**URL:** <https://forum.inductiveautomation.com/t/weather-script/4779>\
**Category:** Ignition\
**Created:** [July 6, 2012, 2:02pm UTC](https://forum.inductiveautomation.com/t/weather-script/4779 "2012-07-06T14:02:36Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [July 10, 2012, 9:46pm UTC](https://forum.inductiveautomation.com/t/weather-script/4779/21 "2012-07-10T21:46:04Z")

</div>

Ah… my system is 32-bit, but I should think it wouldn’t matter. Maybe one of the IA guys can shed a bit of light on this one. ![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:")

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [July 10, 2012, 10:08pm UTC](https://forum.inductiveautomation.com/t/weather-script/4779/22 "2012-07-10T22:08:12Z")

</div>

I was able to download Jordans project and get it to work. If your getting a blank grey screen, check to make sure that the window is set to run on startup (if its the only window in the project), I made that mistake at first, made the correction, and it worked.

---

<div class="post-metadata">

**Author:** ![Jerry\_H](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jerry\_H](https://forum.inductiveautomation.com/u/Jerry_H)\
**Post date:** [July 11, 2012, 12:59am UTC](https://forum.inductiveautomation.com/t/weather-script/4779/23 "2012-07-11T00:59:09Z")

</div>

The Grey screen was caused from the Window (not being checked to Open on Startup)

The timer script still does not work (IO Error Time out), The script on a button works, so I guess it is some kind of a security policy from corporate IT.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [July 11, 2012, 3:50pm UTC](https://forum.inductiveautomation.com/t/weather-script/4779/24 "2012-07-11T15:50:56Z")

</div>

Sorry 'bout that. This was more for making sure the scripting worked when I developed it than for public consumption. 😉 I’ve updated the download to reflect the startup window.

---

<div class="post-metadata">

**Author:** ![ryans](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@ryans](https://forum.inductiveautomation.com/u/ryans)\
**Post date:** [July 11, 2012, 5:59pm UTC](https://forum.inductiveautomation.com/t/weather-script/4779/25 "2012-07-11T17:59:35Z")

</div>

Thank you guys. I have downloaded you .proj and added the necessary tags. I have a question or two on how you are doing the image. What type of tag is Image? Is it a number referencing a table of images?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [July 11, 2012, 6:22pm UTC](https://forum.inductiveautomation.com/t/weather-script/4779/26 "2012-07-11T18:22:10Z")

</div>

Hey Ryan,

This thread [here](http://inductiveautomation.com/forum/viewtopic.php?p=27424) started the thread you’re reading now. The zip file I posted in there will have the images, tags and how to use them.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [July 11, 2012, 6:25pm UTC](https://forum.inductiveautomation.com/t/weather-script/4779/27 "2012-07-11T18:25:57Z")

</div>

The Image tag in my instance, has an expression of:

concat(“[http://192.168.140.18/weatherimages/",{[.]Code},".png](http://192.168.140.18/weatherimages/%22,%7B%5B.%5DCode%7D,%22.png)”)

The images are stored on my web server and are picked according to whatever the Code tag’s value is…

EDIT: You could just as easily stick the images into the Image Management part of Ignition. I did it that way to illustrate how nicely Ignition and web objects play well together. 🙂

---

<div class="post-metadata">

**Author:** ![ryans](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@ryans](https://forum.inductiveautomation.com/u/ryans)\
**Post date:** [July 11, 2012, 9:14pm UTC](https://forum.inductiveautomation.com/t/weather-script/4779/28 "2012-07-11T21:14:42Z")

</div>

You rock Jordan! Thanks for your help. I did a little different and added the images to the image management tool and referenced them concat(“weather/”,{[.]Code},".png"). Works great thank you very much

[Previous page](https://forum.inductiveautomation.com/t/weather-script/4779.md?page=1)
