Closed (won't fix)
Project:
Weather
Version:
6.x-5.7
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
30 Sep 2009 at 08:38 UTC
Updated:
13 Oct 2013 at 21:33 UTC
Hi,
Would it be possible to add an option to remove the "Reported on" feature from the block?
For the time being I'll just edit the module file but it'd be nice to have that option.
Cheers,
Mike
Comments
Comment #1
toddy commentedWell, it would be possible of course, but I'm not sure it's a good idea. The data of some locations can be quite outdated, in some cases even a few days.
Comment #2
patcon commentedCould something be added so that it's only displayed after a given/chosen amount of time? What you mentioned is really valid, but often won't apply :)
If I get some time, I'll try to look into it sometime
Comment #3
patcon commentedWow, just realized how unclear my last message was. Let me try again:
Couldn't we add a checkbox in settings that would say
Or it could be 12 hours. Or customizable. Whatever seems right. The point is that this "Reported on" info is only useful when the conditions aren't current. Otherwise, it's unnecessary clutter :)
Comment #4
patcon commentedMhen, it's bad form, but I added a simple template fix that solved it for me:
In weather.tpl.php, find
And replace it with
I used
21600seconds, since I only wanted it to show if the weather data hadn't been updated in 6 hours. Under normal circumstances, it's hourly, so this works for me. Either means the weather station is broken, or I've had some sort of cron-tastrophe.Hopefully this helps someone else! Cheers all!
Comment #5
toddy commentedIn the current branch 7.x-2.x, there is no longer a "Reported on".