NOAA Quick Forecast

Karamba & Superkaramba

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5 .0
Description:

A lot of people have written weather forecasting themes for Karamba. I am now one of those people.
Last changelog:

17 years ago

v0.2 shoud fix a couple stupid problems. (Such as single line forecast phrases messing up the data offset.)

sheldonl

17 years ago

I went to the site and can't find anything other than data for the USA. Is there international data there as well? (I'm in Canada).

Report

tonymaro

17 years ago

I got it sorta working, but the data as it parses it from NOAA's website is corrupted. It's putting temp on the wrong days, duplicating days, etc...

I'm assuming NOAA has changed their page a bit from what the author based his code on. I sent him an e-mail but never saw a response.

Report

C

flikx

17 years ago

Sorry, I don't think I recieved an email concerning this. The problem is not that the page is corrupted, it's the fact that they post the title for next monday as 'MEMORIAL DAY' instead of 'MONDAY'. That completely goofs up the data offset, because any string that is not a known day is ignored.

Allow me to find out which special days they display, after which I will post an update.

Report

punkshark

17 years ago

How do I Copy getForecast.pl to somewhere in my path?

Report

punkshark

17 years ago

is is ./getForecast.pl ?

Report

sargon

17 years ago

This theme isn't working for me. When I run the getForecast Perl script, I get this error:

Died at getForecast.pl line 41, line 49

Any ideas?

Thanks.

Report

C

flikx

17 years ago

The program dies if it cannot fetch the page, this is intentional.

It actually writes a file every time it grabs the forecast, if a subsequent time fails, it simply outputs the file and dies. This is to prevent a blank box when you take a machine off the network. (Useful for modem users, or notebook users -- like me.)

The problem may be due to your network being down, or NOAA being down.

If it's not one of these things, check for a slight typo in the URL. Also, I haven't verified if the URL provided will always work. I can fetch from srh.noaa.gov, and crh.noaa.gov. Other regions might require a slight change.

Report

Sacus

17 years ago

This is how I got it to work.

getForecast.pl
First you'll have to give the path to the pix and forecastDATA.txt . Unless they are in the same path as the script. Then there where . in the begaining of some of the script lines. remove them.

NOAAforecast.theme
The dreaded . returns with a friend # remove them both and PROGRAM="perl getForecast.pl" sould be PROGRAM="getForecast.pl".

Report

sargon

17 years ago

Hmmmmm. No . (dots) in my files. Those must be the tab markings in Kwrite (or whatever editor you use---I edit everything using vi).

I did find the # (hash marks). Thanks. And the path is set correctly.

When I run the Perl script from a console session, I still get this error:

Died at ./getForecast.pl line 41, line 49.

Line 41 is this:

die;

Line 49 is this:

my @dayData;

The getForecast.pl script doesn't complete. I check the timestamps on the two forecastDATA text files, and they are not being updated (even when run from the console).

I am not a Perl scripter, so I am at a loss as to how to fix it.

Report

Sacus

17 years ago

your write about the tab marks. and I'm no perl. And I only wrote in VB long time ago. One other thing I did was to change permission of the file to exec. I hope that helps

Report

sargon

17 years ago

Hmmmmm. No . (dots) in my files. Those must be the tab markings in Kwrite (or whatever editor you use---I edit everything using vi).

I did find the # (hash marks). Thanks. And the path is set correctly.

When I run the Perl script from a console session, I still get this error:

Died at ./getForecast.pl line 41, line 49.

Line 41 is this:

die;

Line 49 is this:

my @dayData;

The getForecast.pl script doesn't complete. I check the timestamps on the two forecastDATA text files, and they are not being updated (even when run from the console).

I am not a Perl scripter, so I am at a loss as to how to fix it.

Report

Batman2372

17 years ago

I'm using RedHat 9, and I installed and when I bring up the theme, it's just the blank background. I put in the correct URL for my state, so I tried it with the default location, and still have a blank. This is true with the weather app that comes with Karamba. Is there something I'm not doing correctly? Any help would be appreciated.

Report

tonymaro

17 years ago

I had the same problem, but turned out it was permissions on the directory that it runs from. It must be able to delete and create files within it's directory. Otherwise, it can't download the cache.

Report

C

flikx

17 years ago

Try running getForecast.pl by itself. Does it die after trying to connect? (die; statement @ line ~40) Or does it fail immediately? LWP::UserAgent and HTML::TokeParser perl modules need to be installed. Mandrake provides RPMs, and I think RedHat does the same.

Also, try the suggestions made by Sacus.


I simply run superkaramba from the install path of the theme.


I'll take some time to make the INSTALL file a little more helpful. I also found a couple more icons I missed before, and have now added to the download script.

Report

opus125

17 years ago

I'm running Redhat 9.

At first I got the blank frame too. Then I edited the script to have the absolute path of getForecast.pl. You have to do this so many times that it would be best just to use some utility to replace the string "getForecast.pl" with the absolute path.

Now it works fine.

Report

neoTheCat

17 years ago

in order to get the city state info,
go to:

http://www.erh.noaa.gov/er/hq/

and on the left bar is a search for a city, state search. after clicking search, the city and state codes will be in the URL to put in the perl script.

-- neoTheCat

Report

ares

17 years ago

UAO......good theme..

Report

17 years ago

v0.2 shoud fix a couple stupid problems. (Such as single line forecast phrases messing up the data offset.)

12345678910
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
updated May 17 2003
added May 12 2003
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1