!!blue Posted February 18, 2004 Posted February 18, 2004 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 Quote
TCH-Sales Posted February 18, 2004 Posted February 18, 2004 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 Quote
!!blue Posted February 18, 2004 Author Posted February 18, 2004 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. 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. thanks, !!blue ps: good to have u back Mitch Quote
TCH-Sales Posted February 18, 2004 Posted February 18, 2004 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. ... and hey, it's great to be back! Love to help you folks with your troubles! Quote
MikeJ Posted February 18, 2004 Posted February 18, 2004 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. Quote
MikeJ Posted February 18, 2004 Posted February 18, 2004 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). Quote
!!blue Posted February 19, 2004 Author Posted February 19, 2004 (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 ) thanks, !!blue ----------------- edit ------------------ anyone know where I can get the WeatherNWS plug-in for Movable Type besides MT-plugins.org? ----------------- /edit ------------------ Edited February 19, 2004 by !!blue Quote
MikeJ Posted February 20, 2004 Posted February 20, 2004 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> Quote
MikeJ Posted February 20, 2004 Posted February 20, 2004 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. Quote
!!blue Posted February 20, 2004 Author Posted February 20, 2004 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? Quote
MikeJ Posted February 20, 2004 Posted February 20, 2004 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. Quote
MikeJ Posted February 20, 2004 Posted February 20, 2004 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). Quote
!!blue Posted February 20, 2004 Author Posted February 20, 2004 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. man, these things have to come with instructions. thanks again! !!blue Quote
vengavenga Posted February 20, 2004 Posted February 20, 2004 A bit off topic, but for anyone particularly interested in weather for their own use, I discovered Weather Watcher a couple of weeks ago and it's great! Live-ish weather on your desktop, detailed forecasts, unobtrusive, freeware, spyware-less etc etc ... very impressed. It's at http://www.singerscreations.com/ Ali. Quote
TCH-Bruce Posted February 20, 2004 Posted February 20, 2004 (edited) I use Weather Pulse on the desktop from tropicdesigns.net and it's free. Also, it's free of AdWare and Spyware Edited February 21, 2004 by TCH-Bruce Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.