Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We would love to be able to include weather data inside of Views. Most of our content is views-based, and this module would be significantly more useful to us if we could pull in the data inside of a view, rather than as a block. Any chance of this happening? please?
Comments
Comment #1
toddy CreditAttribution: toddy commentedI don't know what you mean exactly. How would you like to have the weather data integrated in Views? Could you provide a specific use-case?
Comment #2
friolator CreditAttribution: friolator commentedsure. There are a few I can think of:
In general, we don't really use Drupal blocks, we do our layouts in Panels, displaying Views. This is how we're handling everything from forums to groups to product pages and reviews to user profiles. Views gives us the flexibility to build very customized bits of content that are specific to sections of the site in ways one can't do with blocks.
For example:
With weather, the location is tied to the node's location. But there are situations where we want to show the weather for an alternate location. Our site allows users to associate themselves with a location that's not their own home location. We want to be able to show the current weather for that alternate location on the user's Content Profile page. With Views, I can imagine setting up a simple relationship to pull in the weather for a node that isn't the user's profile node.
On our site, users can contribute reports of places they've been, and in one report, they might go to three or four different locations. We'd like to be able to display the current weather for those locations, inside of their report, and with Views that would be relatively easy to set up.
Lastly, there are situations where we might want a full report, and others where we might only want to display the temperature. Having all of those items available as separate views fields would give us the flexibility to stick weather data where ever it makes sense, rather than the current setup, which ties the weather to a specific node.
Hopefully that all made sense. I can't really get into the details of our site in a public forum, so it's a little hard to get really specific.
thanks!
Comment #3
minesh CreditAttribution: minesh commentedIt would be nice if i can access location name, temp, wind eta from drupal views. I can then make views for my needs and a matching layout too. e.g I can then have a more detailed page and view block that can show very basic information.
Comment #4
waverate CreditAttribution: waverate commentedYes; this module could be very good if it is able to display its results through views. This way tables or blocks could be built to display name, temp, wind, etc in addition to the functionality that already exists in this module.
Comment #5
szy CreditAttribution: szy commentedDefinitely useful idea :]
So +1! ;]
Szy.
Comment #6
msankhala CreditAttribution: msankhala commentedI developed a weather views module for Drupal 7. Please have a look. Currently its a sandbox project.
https://drupal.org/sandbox/msankhala/2102307
Comment #7
szy CreditAttribution: szy commentedDo not hijack this issue. Post your own instead.
Szy.
Comment #8
msankhala CreditAttribution: msankhala commentedThere was no intention to hijack this issue. I'll convert that module in D6 also as i get time.
Comment #9
toddy CreditAttribution: toddy commentedHi,
starting with weather 7.x-2.2, the module can be used with views.
Regards,
Tobias