Browse Folders

Do you have some slick tips and tricks to share with the rest of the Thwack community? If so, you’re in the right place. The Content Sharing Zone is designed for you to share and explore resources that can make managing your systems and network easier than ever. Here you’ll find all kinds of cool tools, like custom Orion reports and alerts you can leverage in your environment, custom scripts for Cirrus and ipMonitor, and even some useful device configurations. Go ahead and start sharing and exploring today!

Live Weather Map

Downloads: 392 File Size: 10.6kB
Posted By: Mithrilhall Views: 4,316
Date Added: 06-14-2007



Get the following two pieces of software and install them (they are free):
ImageMagick - http://www.imagemagick.org/script/binary-releases.php#windows
wget - http://www.interlog.com/~tcharron/wgetwin-1_5_3_1-binary.zip

For wget - extract the zip file and move 'wget.exe' to your System32 directory.
Also, test to see if you can use the following command from a command prompt (Start-->Run-->cmd)

'composite'

If you see directions on how to use 'composite' when typing in the command it's working perfectly.
If on the otherhand you see something like this we'll need to edit the environmental variables(see note below):

C:\Documents and Settings\xyz>composite
'composite' is not recognized as an internal or external command,
operable program or batch file.


### Editing your environmental variables ###
1. Right-click 'My Computer' and choose 'Properties'.
2. Click the 'Advanced' tab and then click the 'Environmental Variables' button.
3. Under 'System Variables' select 'Path' and click the 'Edit' button.
4. Add the following to the end of the 'Variable value' line that is already in the box:
   ;C:\Program Files\ImageMagick-6.3.4-Q16
   
   Note: Your path to the 'composite.exe' might be different and make sure you include the leading semicolon.

5. Click OK, OK , OK to close all the dialog boxes. Now 'composite' should work for you from the command line.


### Creating your new live weather map ###

1. Open the following link in a web browser and copy the image via right-click 'Copy' or 'Copy Image': http://image.weather.com/looper/archive/us_radar_plus_usen/5L.jpg
2. Open the Orion Map Maker and click the 'New Map' button.
3. Select Edit-->Paste Special and keep 'Paste the Image from Clipboard as a new Object' selected. For
   'Please enter a Name for the new image' name it 'weather'.
4. Click the Save button and name the map weather.
5. Now save the 'no-matte.png' file to the following location (you can skip this if you don't want the timezone lines):
   'E:\Program Files\SolarWinds\Orion\Maps\NetObjects\Imported'
   
   Note: Keep in mind that your Orion installation directory might be different than mine. In this directory
         you should see a 'weather.wmf' file.
6. Add what ever other objects you want to your weather map, save it and exit the map maker.
   You should now have a map of the U.S. with the current weather - but it will not update at this point.
7. Open notepad and save the following text to a file called weather.bat (save it to the root of C):

   e:
   cd "\Program Files\SolarWinds\Orion\Maps\NetObjects\Imported"
   wget http://image.weather.com/looper/archive/us_radar_plus_usen/5L.jpg
   composite no-matte.png 5L.jpg weather.jpg
   del weather.wmf
   rename weather.jpg weather.wmf
   del 5L.jpg

   
   Note: Replace the 'e:' with the drive letter you installed Orion on.
8. Run 'weather.bat' and it should update the 'weather.wmf' file with the current weather.
9. Use Windows Scheduler to run this bat file every 30 minutes to keep the map up-to-date.

 

Image will look something like this:

Weather map

#########################################################################

NOTE: 

I've fixed the no-matte.png file...it's now zipped so the forum software doesn't damage it. 

Filed under: , ,

Comments

 

Mithrilhall said:

When clicking the download button to download the 'no-matte.png' file used for the timzone lines, you'll have to right-click the upper corner of your web browser and save the image. I should have zipped it but I forgot to.
06-14-2007 2:36 PM
 

jmcgrath said:

Am I missing someting? I can't figure out how to do the 'no-matte.png' part. Can someone please explain to me how to save the file.
06-19-2007 9:57 AM
 

Mithrilhall said:

Click the download button, then click the I Accept button. Once the white page loads try 'File-->Save Page As' or 'File-->Save As' and you should see the 'no-matte.png'.
06-19-2007 10:28 AM
 

BryanBecker said:

I have a issue with composite : C:\Program Files\SolarWinds\Orion\Maps\NetObjects\Imported>composite no-matte.pn g 5L.jpg weather.jpg composite: Improper image header `no-matte.png'. composite: missing an image filename `weather.jpg'.
06-19-2007 10:42 AM
 

jmcgrath said:

Alright. I am also having issues with the bat file posting the new image. I am just getting a blank screen whenever the bat file runs. c: cd "\Program Files\SolarWinds\Orion\Maps\NetObjects\Imported" wget http://image.weather.com/looper/archive/us_radar_plus_usen/5L.jpg composite no-matte.png 5L.jpg weather.jpg del weather.wmf rename weather.jpg weather.wmf del 5L.jpg
06-19-2007 10:53 AM
 

Mithrilhall said:

Is wget working for you from the command line?
06-19-2007 12:17 PM
 

Mithrilhall said:

When you visit this page "http://image.weather.com/looper/archive/us_radar_plus_usen/5L.jpg" can you see the map?
06-19-2007 1:13 PM
 

jmcgrath said:

I was able to get it to work by changing the commands to: c: cd \Program Files\Solarwinds\Orion\Maps\Netobjects\Imported wget http://image.weather.com/looper/archive/us_radar_plus_usen/5L.jpg composite 5L.jpg weather.jpg del weather.wmf rename 5L.jpg weather.wmf I also was able to set up a local weather map as well, where I integrated it into a page with all of the current temperatures of our nodes.
06-19-2007 2:26 PM
 

Mithrilhall said:

Yes, you'll need to change to the directory you installed Orion on.
06-19-2007 3:07 PM
 

Mithrilhall said:

There appears to be a problem with the 'no-matte.png' file. It looks like the forum software might have messed it up. Here is a link with a properly working 'no-matte.png'....it's zipped for your pleasure......http://www.apartmenthost.com/downloads/no-matte.zip
06-20-2007 9:22 AM
 

mshtx said:

Do you have another source for the file. I cannot download from: http://www.apartmenthost.com/downloads/no-matte.zip
06-23-2007 12:56 AM
 

Mithrilhall said:

Sure...there is another source. Click the 'Download' button for this posting and it should be a zipped file. It should work now that I've zipped it.
06-24-2007 1:03 PM
 

Brummy said:

Love it, I could never get the no-matte working the file cannot be downloaded and the .zip is still messed up. but even without the timezone lines its good stuff.
07-10-2007 2:31 PM
 

mmunford said:

I seem to be having a problem with composite running correctly within a scheduled task Batch.. Running batch manually works OK, running as SchedTask does not produce the composite output file, then the script deletes the existing map and no more map!!! Weird...
08-22-2007 11:10 AM
 

Mithrilhall said:

you could always remove the composite piece if need be. Does that work for you?
08-22-2007 3:20 PM
 

mmunford said:

I commented out the composite statements.. It's working now without the timezone overlay.
08-23-2007 7:28 AM
 

kindbro said:

IM curious, where is the 'no-matte.png' step? Did i miss something here? I was able to follow the first steps of creating the map and all, but dont know where the no-matte.png step is and I definately want to do this.
08-29-2007 10:18 AM
 

Mithrilhall said:

Did you download the file attached to this article? I know it was giving people problems before so I zipped it and replaced the old one. Let me know if you are having trouble with the zipped file.
08-29-2007 2:19 PM
 

reno8a said:

Okay a couple of things: First, I dont think my map is updating the weather as I followed the instructions explicitly. I configured windows to run the batch every 30 and I have confirmed that it runs because I will see the scripting screen flash on my display automatically. But when I go back to the web version it still displays the time and date of when I originally copied the map. Any ideas on what I might be doing wrong? Second, I still never found the no-matte.png application for timezone detail, was this ever resolved?
08-30-2007 7:24 PM
 

Mithrilhall said:

Comment out the composite line and run it manually. Did it download the map when you do this? Also, I'll get the no-matte.png uploaded in the morning.
08-31-2007 1:14 AM
 

Mithrilhall said:

The no-matte.zip file now works.
08-31-2007 7:04 AM
 

reno8a said:

Okay, now when I'm redirected to the webpage after accepting the licensing I get an Oops something went wrong page...
08-31-2007 11:14 AM
 

Mithrilhall said:

If it's still giving the Oops page then there is something wrong with Thwack. Try getting it here then....www.apartmenthost.com/files/no-matte.zip
08-31-2007 9:38 PM
 

TinyElvis said:

Works great. Well done.
01-03-2008 12:25 PM
 

jodros said:

Is the image supposed to animate, or is it a static image that just updates every 30 minutes?
01-24-2008 11:05 AM
 

Kinjin said:

Very cool! Is there anything like this for Europe? I've got some offices in England, Netherlands, France, Germany, and Italy that I would love to have updated weather for...
07-24-2008 11:17 AM