Welcome to Geeklog, Anonymous Sunday, November 24 2024 @ 09:31 am EST
Geeklog Forums
Weather Forecast for U.S. cities
jlhughes
This uses http://www.crh.noaa.gov/zipcity.php?inputstring=95821 (where you change the specific zip to get different cities) and some magic that parses the Web page so that it can be displayed using locally stored icons and wrapped inside Geeklog. You can see an example here.
The forecast data is cached for a specified period of time.
This is NOT a full port of the original module. I’ll leave that to people who need international weather forecasts. However, this can be easily incorporated into squatty’s weather block. You can see an example here.
The files and installation instructions are available here.
John Hughes
Tony
The reason people blame things on previous generations is that there's only one other choice.
Tony
The reason people blame things on previous generations is that there's only one other choice.
jlhughes
jlhughes
I've updated the index.php to convert the title images to local icons and added the title icons to the icons folder. The package is available here.
John Hughes
cdriscoll
jlhughes
cdriscoll
cdriscoll
jlhughes
The original module changed all URLs to local files that localized the additional information. That would be a great feature to restore, but for right now all I want is the local information and for all the links to go to the correct NOAA site.
I've checked this on a couple of different zips and it appears to work OK.
Just replace the index.php (after you modify the defaults)
The files have been updated here
jlhughes
jlhughes
The advantage is that the page loads a little faster since it has five fewer images. I also like the flexibility of using style.css to modify the section titles.
This version appears to work in both Iowa and California. My first effort didn't like Iowa. If you notice a region where the title icons don't get replaced, let me know.
The examples listed in the original post use the alternate version with the title images replaced with text.
Both the original version and the alternate are available here.
jlhughes
jlhughes
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content