Jump to content

Recommended Posts

Posted

Hi all,

 

I'd like to add the weather to my MT weblog, however, I can't find the piece of code I'd need to add to make it work for Chicago. I found this plugin but I need a CityID number from weather.interceptvector.com, but that website isn't working or can't be found... ;)

 

anyone know what I can do? I'd like to have a five day forecast type of thing with images that would show up in a pop-up window, and this plugin has these features.

 

thanks,

!!blue

Posted

Here are a few more plugins you might look into:

mt-plugins.org/archives/entry/weatherunderground.php

mt-plugins.org/archives/entry/weathernws.php

 

There's also this site for a little weather pixie person as well:

weatherpixie.com

Posted
Here are a few more plugins you might look into:

mt-plugins.org/archives/entry/weatherunderground.php

mt-plugins.org/archives/entry/weathernws.php

 

hm.... ok

 

the weather underground doesn't come with any support docs, mainly I don't know which files go where. :huh:

 

the weather NWS download link requires a log-in Mad!!!

 

so... i'll try the weather underground and see if I can make tails & heads somewhere. :rolleyes:

 

thanks,

!!blue

 

ps: good to have u back Mitch

 

Posted

Yeah, thats the problem with some of those plugins.. they are great works, but nobody really sat down to write a lot of support docs for 'em. If David Rayners was around right now, I'm sure this would gain his intrest.. He's really the "Mr. MT" around these parts. You might try searching through MT's support forums (they should have a thread on each plugin I belive) so maybe if you run into trouble, somebody might have had it before you. :rolleyes:

 

... and hey, it's great to be back! Love to help you folks with your troubles! :huh:

Posted

I use WeatherNWS on my blog. It works well. It doesn't do forecasts, though.

 

The best thing is to install Plugin Manager, then with one click you can install plugins, instead of downloading them, untarring them, etc...

 

If you're interested, I can give you the directions to install the Plugin Manager. I've done it a few times on TCH so far.

Posted

Oh...and btw, I don't believe that the interceptvector plugin works anymore. I think that service went offline (I've never seen weather.interceptvector.com up in several months).

Posted (edited)
I use WeatherNWS on my blog.

Yeah, I wanted that one too but the link to download the WeatherNWS plugin (via mt-plugins.org) requires a log-in and password. (excuse my language but: wtf?) I hadda settle for Weather Underground, which is giving me errors on rebuild, but works some of the time... :)

 

Plugin Manager sounds great, might look into that!

 

But for now where else can I get the Weather NWS plug in to install it? Do you still have it "tarred" / zipped?

 

(tarred, that sounds funny :P)

 

thanks,

!!blue

 

----------------- edit ------------------

anyone know where I can get the WeatherNWS plug-in for Movable Type besides MT-plugins.org?

 

----------------- /edit ------------------

Edited by !!blue
Posted

Ok, here we go (and using the Plugin Manager won't require you to login to his site to install it).

 

For the most part, you just follow the Plugin Manager. You just need to install XML::Simple perl module for it to work. But to make it simple, here's how to do it... Btw, I setup all MT installations suExec (CGI Wrapper), so that it can write files as the account user. So if you don't run MT suExec'd, there might be more you have to do (particularly permissions).

 

Installing Plugin Manager

 

Download the Plugin Manager from mt-plugins.org. Grab the .tar.gz version.

 

Make a directory somewhere in your account and upload the file to it, and extract the contents.

 

Then, following the author's instructions:

  • Manager.pm should be placed in the extlib/MT/Plugins/ directory (you may need to create this directory).
  • mt-pm.cgi should be placed in the base MT directory (where mt.cgi is located). Make sure it can be executed (e.g. chmod 755).
  • License should be read. ^_^
  • tmpl/*.tmpl (all tmpl files) should be placed in the tmpl/plugins/ directory. It will have to be created.
  • tmpl/styles-pm.css needs to be placed in the same directory as styles.css (i.e. the static directory)
  • tmpl/dot.gif needs to be placed in the images/ directory (within your static directory, along with all the other MT images)

Now, install the XML::Simple perl module (download from [here] - you may need to right click and save as...). Make sure the file is named Simple.pm, upload it to your account and place it into your extlib/XML/ directory.

 

You should now be able to run it (mt-pm.cgi in your MT directory.) You should click details on a plugin and click check requirements before installing to make sure you have what's needed. But then you can one-click install the plugin.

 

The only issue I haven't had a chance to look into yet is that for some reason the plugin manager keeps showing all the plugins as new plugins all the time, but it doesn't stop it from working (just makes you scroll more).

 

When you get WeatherNWS installed then... if you want to see how I have it setup in my weather block on my weblog, the following is the code including the location code for Chicago (and including an unrelated link for a forecasts page since WeatherNWS doesn't do forecasts).

 

><MTWeatherNWS place="kmdw">
  Location: Chicago, IL ... [ <a href="http://www.crh.noaa.gov/forecasts/ILZ014.php?warncounty=ILC031&city=chicago">Forecast</a> ]<br />
  <$MTWeatherConditionstext$>: <$MTWeatherTemperature_f>°F (<$MTWeatherTemperature_c>°C)<br />
  Windchill: <$MTWeatherWindchill_f$>°F (<$MTWeatherWindchill_c$>°C)<br />
  Wind: <$MTWeatherWinddirtext$> at <$MTWeatherWindspeedmph$> mph (<$MTWeatherWindspeedkph$> kph)<br />
  Humidity: <$MTWeatherRelative_humidity$>% <br />
  Visibility: <$MTWeatherVisibility_mi$> mi. (<$MTWeatherVisibility_km$> km)<br />
  Barometric: <$MTWeatherPressure_inhg$> in (<$MTWeatherPressure_kpa$> kPa)<br />
</MTWeatherNWS>

Posted

Btw, if you want to try installing WeatherNWS manually, I looked at the XML of the plugins listings and here's a link that will grab the file from the same place the plugin manager gets it: weathernws.zip ... just put the weathernws.pl file into your plugins directory.

 

I still highly recommend getting the plugin manager, though, because when you find other plugins you want, it's soooo easy to install them then.

Posted

 

getting this error on rebuild:

Build error in template 'Main Index': Error in <MTWeatherNWS> tag: <MTWeatherNWS>: Geo::WeatherNWS not installed correctly

 

I got that tar file but don't know if I put the files in the right place. I put all the untarred files in the extlib/WeatherNWS folder I created. was that right? with 755 permissions?

 

Posted

Ok. Your server doesn't have the Geo::WeatherNWS perl module, so you'll want to install it locally (as it looks like you attempted).

 

Download Geo::WeatherNWS v1.03, pull out the WeatherNWS.pm file, and place it in extlib/Geo/ directory underneath your base MT directory (where mt.cgi is installed). You'll probably need to create the Geo directory. Then you should be good to go.

Posted

Oh... and if you want to install other perl modules for MT that aren't installed on the system... the format is basically this...

 

If the module is called Foo::Bar, then you will want to put a file called Bar.pm into the subdirectory extlib/Foo/ under your MT base cgi directory (in many cases you'll have to create the directory).

Posted

u rock! thanks for the explanation dude! everyone, take notes!!

 

yes, now it works correctly, yay! now to just tweak it & align it all nice & neat. :D

 

man, these things have to come with instructions.

 

thanks again!

!!blue

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...