Donations

Help support Pro_News and become a member of our Sponsors Group
The tip jar is at PayPal, but does not require a PayPal account
User Info
Selamat Datang Anonymous
Keanggotaan:
Terakhir: Witewolf
Yang baru hari ini: 0
Yang baru kemarin: 0
Semuanya: 151
Orang yang Online:
Member: 0
Pengunjung: 45
Bots: 3
Total: 48
Who Is Where:
Pengunjung:Support Forums
Support Forums
Pro News Articles
Nedladdningar
Support Forums
Support Forums
Nedlastninger
Pro News Articles
Support Forums
Support Forums
Téléchargement
Descargas
Support Forums
Support Forums
Support Forums
التحمي
Nedladdningar
Support Forums
Pro News Articles
Support Forums
Support Forums
Pro News Articles
Support Forums
Downloads
Pro News Articles
Nedladdningar
Pro News Articles
Support Forums
Pro News Articles
Nedlastninger
Support Forums
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Support Forums
Pro News Articles
Support Forums
Support Forums
Pro News Articles
Support Forums
Pro News Articles
Pro News Articles
Bots:Google > Pro News Articles
Baidu > Pro News Articles
YANDEX > Support Forums
Staff Online:
No staff members are online!
'New' Ridge Radar now supported in WeatherHarvest
'New' Ridge Radar now supported in WeatherHarvest
Dikirim: Mon Feb 26, 2007 9:17 pm
If you are still interested, I finally got around to "fixing" Weather Harvest to use the revised NOAA Ridge radar site.
Note this is only of interest to users in USA, due to the extent of the US Govt. NOAA radar system. So don't waste your time downloading if you do not need this feature.
The following files need to be replaced or added (all attached):
- wh_radar.php in modules\WeatherHarvest\
- radarjs.php in modules\WeatherHarvest\utils\
- noaa_radar_legend.gif in modules\WeatherHarvest\images (new file)
- weatherharvest.php in language\english\
(Note if you are still on 9.0.6.1 that last file will need to be renamed to lang-english.php and stored in modules\WeatherHarvest\language).
As part of the hack I have also got the Scale NOAA Radar feature in WeatherHarvest Initialization panel working. (Although if you use it, you may want to suppress the City background display, as the names get hard to read if displayed at anything other than 100%.)
Notes on Implementation
Ridge uses multiple background images - called Overlays - to reduce the dynamic content to the radar image alone. This hack downloads all of these on demand, and attempts to cache them semi-permanently in the Weather Harvest cache. The topo image in particular is fairly large, and may delay initial loads.
The overlays consist of Topo terrain, County borders, Rivers, Highways and Cities. These files are listed in wh_radar.php, and you can suppress them by simply deleting (or commenting out) the undesired images.
Looping Radar displays are still available, they now are at 10 minute intervals from NOAA Ridge, which claims to show the last 20 images, but my hack displays all of them - 30 for my local radar - giving almost a 4 hour view back in time (vs. the 1 hour of the old system).
The Long Range Composite formerly offered by WeatherHarvest is not provided by the newer NOAA Ridge system, and so I removed all references to it.
Cautions
It is tricky to align the looping radar images with the backgrounds due to the play buttons, so I had to improvise, and I may be off by +/- a pixel or 2 - in 600.
Scale NOAA Radar works very differently with IE and real browsers. So if keeping the display within a 800 pixel wide screen is important to you, you'll need to decide if you want it set to display the correct size in Firefox and be undersized in IE, or OK in IE and a little oversize in Firefox.
Warnings (tornado, winds, flood, etc.) were never supported in old WeatherHarvest, but I have attempted to show the latest warning (only) in Short display as the top background display. I have no way of adequately testing the Warnings - as the sun is shining today! (Warnings are not available in long display due a naming collision in NOAA Ridge system.)
Caveat Emptor I made this hack for my own use, and am happy to share it, but you use at your own risk. It should work with your local radar feed, but I have only tested with my local one. Back up your old files before overwriting them.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1

layingback- Site Admin

- Post: 1229
- Sejak: Mar 18, 2006
Anda tidak dapat menjawab topik
Anda tidak dapat mengubah pesan Anda
Anda tidak dapat menghapus pesan Anda
Anda tidak dapat mengikuti polling
You cannot attach files in this forum
You can download files in this forum
Zona waktu menurut GMT











