Drupal 7 Weather Module

By adam
Wed, 2014-05-28 06:27
6 comments
Daily Dose of Drupal Episode #153

Share with Others

In this episode, you are introduced to the Drupal 7 Weather Module. This first video covers the basics of the module without using integrations with any additional modules. Within the video you will learn how to configure a weather display and location and place the block onto your website.

Hey everybody and welcome to Episode 153. I believe . I am Adam Learing and today we’re going to be covering the Weather Module, yes the weather. Simple module, again but kind of nice if you’ll have … if you want to add a little bit of information to your user or you could obviously just put on at the back end of your site and keep it for yourself to know what’s going on around you.

Before we get started make sure again to head over to codekarate.com, check out all the videos there, all the content. Also when you’re there make sure to sign up on the Code Karate newsletter, we do send out occasional e-mails and information about what’s happening in Drupal and Code Karate related stuff. Also one important thing to note is we are releasing an e-book soon, count the days down.

So make sure that you sign up for the newsletter to check the box to receive the free e-book from Code Karate. Also make sure to follow myself on Twitter and Shane Thomas, you can follow myself @adamlearing, you can follow Shane Thomas @smthomas3, I appreciate either of those being followed. Alright let’s get to the module, so the module like I said we’re going to work on is the Weather Module.

Pretty simple module, there are a couple of different versions that you can use as far as modules for Drupal are concerned but we’re just going to stick with the Weather by far the most popular … one other thing to note is there’s actually a lot of integrations that we work with the Weather Module, you can see them highlighted here. In this first video I’m just going to do the basic out of the box Weather Module but in the follow up series I’m going to cover a few other different integrations that you can use well using the weather module. So take a look at those and look forward to those in the future.

Other kind of cool highlights about the weather module before we get to downloading it, displays the current day as well as the next day’s forecast and then it can even go further as the 7 day forecast so you get a wide variety there. Works in both Celsius and Fahrenheit and other temperature … whatever … temperature Dalmatians, what else … it works with Blocks pretty well so you can put it wherever you want in your site, again that works putting on your front end or your back of your site or different pages, works with all those different rules.

Okay so let’s get started; so we hop over to our Code Karate site and we need to turn on the module so we search for the module, enable it, once we have it enabled let’s go over to the configuration page here and pretty simple. So the first thing you need to do is you need to add a display for the weather to work so I’m just here to select the location in this display as well.

So click Add Display and here is where you can set different parameters and different displays for the weather module, what temperature you want, we’re going to do the Fahrenheit because we are in sunny South Dakota here and we use Fahrenheit, wind speed, we’re in miles per hour, pressure, I’m not actually sure what the standard is, distance, we’re going to do miles instead of kilometers and then there’s a little checkboxes here, obviously it shows up sunrise and sunset. This is all up to you and what you want to display to yourself and the user. I’m going to go ahead and check all these, all of them, wind chill, wind directions and stuff like that. So I’m going to save it, once you have it saved here it’ll give it a default name so system I displayed 1 and then you just need to add your location. Pretty much any location you can think of is in here.

We’re going to pick United States, auto complete is down and gives you only places located in the United States, I’m going to pick Sioux Falls, South Dakota here, right there and then the display name which will show up to the user site and we’re going to use Sioux Falls, South Dakota, go and save. And it seems to be slight bug when you save it the first time it doesn’t seem to save a name so you … I don’t know, I have to go and do it again and once you save it the second time it seems to stick.

So just make sure you look at that after you save it the first time and see if it did catch and we don’t lie … submit a bug, there might be a bug in the queue as well but anyway; once you get it saved, it makes you saved and then it automatically creates the block for you so if we head over to the block’s page on Drupal you’ll see that it’s down here there’s a block for System Weather Display 1 and you also notice that there are four other different blocks you can drop in.

On these we’ll go cover some further videos but Smart IP which is kind of cool … I’ll actually grab the weather of the Users IP Address so it’ll give the users coming from us in Colorado for example and give the weather there location and similar types to that but we’ll show it those in the future videos. We’ll just drop this video or this block in … let’s do it in our second site where I actually … I’m going to save that, you’ll be able to see it sitting in there so when we go to our home page you can see it’s right there.

So you can see obviously today in South Dakota we have 60 degrees Fahrenheit, cloudy which is about right and tomorrow we’re looking at 69 degrees and partly cloudy. You click on the name itself it will give you a breakdown of the forecast, I believe it goes out 7AM … actually up to 11 days I was running on that but I think it shows you here so you can get a decent look of what’s going to be happening down the road. I also notice that do the check boxes I check, here comes the Fahrenheit, here’s our wind speed, pressures all that stuff.

The Weather Module also works really well with views which I will highlight it in additional videos so we can tell it which we want … what we want to display. We don’t want to display all these fields if we didn’t want to and we use that to integrate with other content type as well. So that is the weather module guys, pretty simple, not too complicated at all but a nice little have if you want to add a little bit more content to your site as well as provide your users with a little bit more information.

Alright so again make sure to follow us @adamlearing or @smthomas3 on Twitter and also just head over to Code Karate, check it out, let us know your thoughts, if you have any videos you want to see or modules that you want us to review shoot them our way, we’d be happy to take a look and get them reviewed. Alright guys until next time, thanks.

Comments

Essay writing work is the one that most of the students treat as a difficult task. This may be because of the fact that the essay need to be done with the specific format. Some students do not correctly understand the proper way if writing the essay. Sometimes the situation may be like very tough for the students to deal with the assignment works when the submission dates is given in a very near date. Many of the students seek the assistance from the professional to have their work done in a proper manner in a short period of time. Mainly the students look for the inexpensive essay writing service to their paper to be done. They would be receiving the essay paper in a proper way within the specified time only if they are succeeded in selecting genuine writing company out of many writing services. So before you place the order it is necessary to look for the reviews about the writing company so that you can understand more about the service they provide for your essay paper. You have to look for many details like quality of service, price, information about customer support, writes etc to know whether you get the preferred quality level of essay within the deadline.

Hi guys, great video series especially for a newbie like me..
I have just installed the weather module and have it up and running. However there is a shortage of available weather reports for Canada. The Weather Network allows me to get info for my home town and I wonder whether there is any additional add ins that my help. I note the the Environment Canada module is stopped at Drupal version 6. Are there any plans for videos on integrating the Views module and the Location module>
Thanks again

Post new comment