Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 06:38 am EST
Geeklog Forums
Weather blocks/module.
Status: offline
chmouel
Forum User
Newbie
Registered: 02/05/02
Posts: 13
I took some time to convert the My Weather Suite from phpnuke to geeklog.
It still missing user defined configuration and i should make it as plugins.
But it does work for my needs as you can see on my site http://www.chmouel.org/.
You can find the tarball here :
http://www.chmouel.org/misc/weather-geeklog.tar.gz.
Chmouel.
24
23
Quote
Status: offline
Tony
Site Admin
Admin
Registered: 12/17/01
Posts: 405
Location:Urbandale, Iowa
I, at one time, had phpWeather working flawlessly on my site. i will probably get it working again but how does your weather software work? I'm assuming it uses METAR data, right? Also, can the user change the city is that on the to-do list?
phpWeather provide current weather conditions (updated hourly) and you can do forecasts as well. Only down side is there isn't a one-to-one correlation between current weather feeds and forecast feeds (i.e. it's possible one city will have a current weather feed but no forecast feed.
-----
The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
24
17
Quote
Status: offline
chmouel
Forum User
Newbie
Registered: 02/05/02
Posts: 13
Humm i looked also to phpMYwheather but it didn't do what i want. This weather module use msnbc.com information which provide everything we want.
Also things like if it's rainning/sunny etc... is much more easy to do with msnbc.
The per-user option is not implemented, i should do it, but i'm a litle lazzy since i don't really i'll check that this weekend if it's easy to do..
22
20
Quote
Anonymous
Anonymous
It works nice. Thank you.
18
14
Quote
vdanen
Anonymous
Geez, Chmouel... you're working too hard... =) But I must admit, it's really sweet... (and here I thought you were going to keep your website low profile... can't help yourself can you? <grin>.
16
16
Quote
natter
Anonymous
Works great but when I try to click on "details", I get:
Fatal error: Cannot redeclare get_from_msnbc() in /www/t10/main/gl/public_html/weather/display_weather.php on line 28
Any ideas? Thanks.
http://m.t10.net to see
20
20
Quote
natter
Anonymous
latest 4.1.1
I've searched google for this error and I can't find a good answer...
I wish I knew what: Cannot redeclare get_from_msnbc() mean.
redeclare?
23
24
Quote
Status: offline
efarmboy
Forum User
Moderator
Registered: 02/26/02
Posts: 147
I too am now getting this error - but only when I choose Detail. Otherwise it works fine. This occurs either from the main block view or in the "edit" screen.
I had it all installed and working a few days ago.
I was tweaking with display formating but that's working fine.
I'm running FreeBSD 4.5
- Apache 1.3
- Mysql 3.23.47
- PHP 4.1.1
- Geeklog v1.3.2-1
I'm going to go back and check all the punctuation again.
Any Ideas ?
20
23
Quote
Status: offline
efarmboy
Forum User
Moderator
Registered: 02/26/02
Posts: 147
The problem appears to be that, there are two functions with the same name in the files:
- display_weather.php
- detailed_weathers.php
Specifically getweather() and get_from_msnbc().
Everything is fine when the block first comes up. Once you click on detail you get the duplicate declare error()
I changed the names in detailed_weathers.php and it works again.
I have been installing additional ports and modules so I suspect there is a config file in which a default was changed. This worked initially when I installed it.
Blaine
20
19
Quote
All times are EST. The time is now 06:38 am.
- 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