On Friday 09 December 2016 20:02:54 midi-pascal wrote:
<snip>
I'm that guy off screen, haveing handily exceeded
the average life
time the media is going nuts over.
This is off topic as can be, but calling the service has never
actually put me in touch with anybody that knew what I was talking
about. so...
However, your sig makes me lodge a conplaint about a service thats
has apparently been discontinued, eg the access to current
conditions at "KCKB", or for that matter any other net station.
I have a system monitor called gkrellm that has a weather plugin,
and its last valid connection was July 28th, 11:53 pm. I found it
quite handy, and since it was a totally automated service, self
updating at about 30 minute intervals, saw no financial advantage
for NWS/you in shutting off that service. Can it not be restored?
I believe the problem lies in the DNS lookup of KCKB or any other
of the 4 letter station codes used for this service nationwide.
You can PM me at gheskett at shentel dot net
I made a workaround for this problem when gkrellm weather plugin
stopped working.
It is only a Perl script (native to the plugin) to modify.
If you are interested I can send it with instructions to this
list.
Cheers.
Please, send away! And thank you, as a perl geek I am not. I speak
just enough C or assembly(on a 6x09 platform), to be dangerous.
Here is the Perl script in attachment :-)
The problem is that the URL to fetch the weather data changed and the
data format too...
The script name is: GrabWeather
To install it, replace the existing one in /usr/share/gkrellm/:
sudo cp GrabWeather /usr/share/gkrellm/
make sure it is executable:
sudo chmod 755 /usr/share/gkrellm/GrabWeather
Then restart gkrellm.
That's it!
I didn't kill the old one, but renamed it, And made all the rights &
owners match the old one. Stopped gkrellm & restarted it several times
but no difference. The url address in the old one had been patched
once, and that is still that address in the "get your station ID at"
box.
Running as root ./GRabWeather KCKB returns nothing, and as me:
./GrabWeather KCKB
Cannot specify both -k and -O if multiple URLs are given, or in
combination
with -p or -r. See the manual for details.
Usage: wget [OPTION]... [URL]...
Manual? I doubt if the old one applies to this code.
Call me puzzled.
Sending chromium to that address this code would query, and scrolling
down about 50 pages gets me to KCKB.TXT which contains this:
HARRISON/MARION REGIONAL, WV, United States (KCKB) 39-18N 080-13W 360M
Dec 09, 2016 - 08:53 PM EST / 2016.12.10 0153 UTC
Wind: from the WSW (240 degrees) at 8 MPH (7 KT):0
Visibility: 10 mile(s):0
Sky conditions: mostly cloudy
Temperature: 24.1 F (-4.4 C)
Windchill: 15 F (-9 C):1
Dew Point: 15.1 F (-9.4 C)
Relative Humidity: 68%
Pressure (altimeter): 30.44 in. Hg (1030 hPa)
ob: KCKB 100153Z 24007KT 10SM BKN038 M04/M09 A3044 RMK AO2 SLP320
T10441094
Which is exactly what I want.
cycle: 2
But how to make gkrellm use this new code?
Looking at /usr/lib/gkrellm2/plugins/gkrellweather.so is the only place
where I see the address displayed in the gkrell weather plugin config
screen. No wonder I can't change it as its a 95% pure binary file.
Disclaimer :-)
It worked perfectly for me but I cannot ensure it will work for you...
What version of gkrellm & gkrellmd are you running? I'm still on wheezy,
and its 2.3.5. unstable has 2.3.8-1. and a bunch of deps newer than what
I have. I did pull the 2.3.10 tarball, we'll see if ./configure can sort
it. No configure but apparently make does that, its bails out quickly
because I don't have a whole lot of gtk2 installed.
Enjoy!
Would if I could. But I am going to put that bookmark someplace handy so
its a 1 click display.
Thank you for that!
midi-pascal
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>