You are not logged in.

#2221 2019-01-28 16:30:10

chepioq
Member
Registered: 2015-11-29
Posts: 69

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Yes I want that, and that work for the first two icons, but after the third it does not fit anymore

Offline

#2222 2019-01-29 09:28:58

chepioq
Member
Registered: 2015-11-29
Posts: 69

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

I find other (but long) way
I update my #2219 post

Offline

#2223 2019-01-29 16:10:42

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

I run the script and it produces the correct icons.
Can you give me an example of what goes wrong?


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2224 2019-01-30 06:58:00

chepioq
Member
Registered: 2015-11-29
Posts: 69

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

ok Teo
list of daily icon:

partly-cloudy-night
partly-cloudy-day
rain
rain
wind
partly-cloudy-night
partly-cloudy-day
fog

sceenshot with my old script:
1548831090-screenshot-1.png

screenshot with my new script:
1548831318-screenshot-2.png

You can see that with my new script icons are good with the list

Offline

#2225 2019-01-30 07:34:18

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Ah, ok then, glad you've sorted it out.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2226 2019-01-30 07:43:08

chepioq
Member
Registered: 2015-11-29
Posts: 69

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

For my old script, may-be it's because jq count icons since zero (0,1,2,3, etc...) and not since one (1,2,3, etc...)

Offline

#2227 2019-01-31 19:07:46

chepioq
Member
Registered: 2015-11-29
Posts: 69

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

I update my script (and cleaner)
I think that is all good:
https://sd-1.archive-host.com/membres/u … rk_sky.zip

Offline

#2228 2019-01-31 21:47:31

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Nice job chepioq, I still believe it deserves its own thread.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2229 2019-02-01 12:20:08

chepioq
Member
Registered: 2015-11-29
Posts: 69

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

May be it deserves its own thread, but I prefer to leave it on this thread because it is the one for "Conky weather".
For me it's a training until the arrival of the new wunderground API.
https://apicommunity.wunderground.com/w … reply-list page 4

Victoria Gardner Official Rep wrote:

We'd like to remind our PWS owners/contributors:
Your past data will always be available to you for viewing and download in a web browser on wunderground.com, just like it always has.
If you are in the small minority of people who use the WU API and a corresponding WU API key to obtain data in .json format, here's what's happening:
- We'll open a registration page for you to get a new API key to get your data in .json format
- You'll sign up and get a new API key for the new API
- Once the registration page is open, we'll keep the old API and your old API key active for 2 weeks to allow transition time to your new key

We'll announce in the forum when the registration page opens.
Or, email victoria.gardner@ibm.com to receive an email notification once it's ready.

The new API will provide access to
Current observations from the PWS network
5 day daily forecast
PWS historical data
PWS lookup by geocode, zip code and location
Call volume: 1500/day, 30/minute

Last edited by chepioq (2019-02-01 12:22:20)

Offline

#2230 2019-02-09 14:25:38

seatommyboy
Member
Registered: 2016-09-12
Posts: 63

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

I've been using your scripts for a few years now Teo and yet again, we have ran into a wall with accuweather. Recently (not sure exactly when), accuweather stopped displaying in my conky. When I manually run the script I get

MainFrame weather $ ./1_accuweather -f
rm: cannot remove '/home/thomas/Conky/weather/*.png': No such file or directory
cp: cannot stat '/home/thomas/Conky/weather/Forecast_Images/'$'\r''.png': No such file or directory
cp: cannot stat '/home/thomas/Conky/weather/Forecast_Images/.png': No such file or directory
cp: cannot stat '/home/thomas/Conky/weather/Forecast_Images/.png': No such file or directory
cp: cannot stat '/home/thomas/Conky/weather/Forecast_Images/.png': No such file or directory
cp: cannot stat '/home/thomas/Conky/weather/Forecast_Images/.png': No such file or directory
cp: cannot stat '/home/thomas/Conky/weather/Forecast_Images/.png': No such file or directory
cp: cannot stat '/home/thomas/Conky/weather/Forecast_Images/.png': No such file or directory
cp: cannot stat '/home/thomas/Conky/weather/Forecast_Images/.png': No such file or directory
cp: cannot stat '/home/thomas/Conky/weather/Forecast_Images/.png': No such file or directory
cp: cannot stat '/home/thomas/Conky/weather/Forecast_Images/.png': No such file or directory
cp: cannot stat '/home/thomas/Conky/weather/Forecast_Images/.png': No such file or directory

From experience, something isn't getting written correctly to the *_raw and other files. So I looked at the curr_cond file and found this output

		<div class="wind
NE
			<div>Humidity: 88%</div>
			<div>Pressure: 30.56 in </div>
			<div>UV Index: 0</div>
			<div>Cloud Cover: 100%</div>
			<div>Ceiling: 2745 ft</div>
			<div>Dew Point: 30°&nbsp;F</div>
			<div>Visibility: 10 mi</div>
            <div class="label
            <div class="label
                    <th scope="row

Unfortunately, I don't have an old curr_cond file so I can compare things to it.
This is what displays now though
screen shot

Last edited by seatommyboy (2019-02-09 14:27:52)

Offline

#2231 2019-02-09 16:32:16

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

What's your location seatommyboy?
For Kastoria I get

$ ./1_accuweather -f
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

and the curr_cond file is

1
9
9
Sunny
N
8 km/h
41%
1018.40 mb 
0
9%
3840 m
-3
16 km
07:37 AM
06:02 PM
10:25 hr
1-m
10:03 AM
10:23 PM
12:20 hr
33-m
a
07:37
18:02
10:03
22:23
9

ie. everything's normal.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2232 2019-02-09 17:47:50

seatommyboy
Member
Registered: 2016-09-12
Posts: 63

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:

What's your location seatommyboy?
For Kastoria I get

$ ./1_accuweather -f
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

Hutto TX

I downloaded a little more up-to-date script and now when I run it, I get no output...

Last edited by seatommyboy (2019-02-09 17:50:00)

Offline

#2233 2019-02-09 18:02:54

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Wait, you weren't using the latest script?
Can you post the script you're using?


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2234 2019-02-09 18:08:12

seatommyboy
Member
Registered: 2016-09-12
Posts: 63

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:

Wait, you weren't using the latest script?
Can you post the script you're using?

old script
newest script

Offline

#2235 2019-02-09 18:46:03

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

I can't read it right now, but do you get a proper conky when you run the latest script?


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2236 2019-02-09 19:13:52

seatommyboy
Member
Registered: 2016-09-12
Posts: 63

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:

I can't read it right now, but do you get a proper conky when you run the latest script?

No... displays the same as the screenshot I linked
Also, apologies for being a script or 2 behind. I also adjusted my file paths to be the same as the new script I posted.

Last edited by seatommyboy (2019-02-09 19:14:44)

Offline

#2237 2019-02-09 22:32:03

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

It seems ok, do you get any error messages when you run the script?
Are the files (curr_cond, etc.) populated?


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2238 2019-02-10 02:19:52

seatommyboy
Member
Registered: 2016-09-12
Posts: 63

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:

It seems ok, do you get any error messages when you run the script?
Are the files (curr_cond, etc.) populated?

They are all poputlated. I'm restoring my computer back to an earlier time to see if it was something with the upgrade I did a few weeks ago. Like I stated earlier, I'm not exactly sure when this happened, so I'm trying to narrow it down. Being that it is working for you, I'm pretty sure it's something on my end. I'll update in a bit...

Shifting back to an earlier time did not change anything...

As for the errors, the only ones I get are due to the fact that the files are not being populated:

rm: cannot remove '/home/thomas/Conky/weather/forecast_2016/forecast_*.png': No such file or directory
cp: cannot stat '/home/thomas/Conky/weather/Forecast_Images_2016/'$'\r''.png': No such file or directory
cp: target '/home/thomas/Conky/weather/forecast_2016/wind_0.png' is not a directory
conky: Unable to load image '/home/thomas/Conky/weather/0.png'

Oddly enough, when tested with another url for somewhere overseas like kastoria, buenos-aires, and tokyo, the images still don't load, but the weather does. However, if I use a us city like new york, albuquerque, or even hutto, the output is the same as the pic I linked above.

Last edited by seatommyboy (2019-02-10 03:21:11)

Offline

#2239 2019-02-10 03:53:23

seatommyboy
Member
Registered: 2016-09-12
Posts: 63

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Yet another update...
I cleaned out all the file (curr_cond, etc) and deleted my .xsession.errors file. After a reboot, I checked the .xsession.errors file and here is what I found for conky:

conky: desktop window (3200028) is subwindow of root window (6c2)
conky: window type - normal
conky: drawing to created window (0x3a00002)
conky: drawing to double buffer
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/curr_cond: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/curr_cond: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/curr_cond: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory

Looking up www.accuweather.com
Unable to locate remote host www.accuweather.com.
Alert!: Unable to connect to remote host.

lynx: Can't access startfile https://www.accuweather.com/en/us/hutto-tx/78634/current-weather/2110192

Looking up www.accuweather.com
Unable to locate remote host www.accuweather.com.
Alert!: Unable to connect to remote host.

lynx: Can't access startfile https://www.accuweather.com/en/us/hutto-tx/78634/daily-weather-forecast/2110192

Looking up www.accuweather.com
Unable to locate remote host www.accuweather.com.
Alert!: Unable to connect to remote host.

lynx: Can't access startfile https://www.accuweather.com/en/us/hutto-tx/78634/daily-weather-forecast/2110192?day=6
rm: cannot remove '/home/thomas/Conky/weather/forecast_2016/forecast_*.png': No such file or directory
sed: can't read /home/thomas/Conky/weather/first_days: No such file or directory
conky: Unable to load image '/home/thomas/Conky/weather/0.png'

I opened a terminal and ran:

lynx https://www.accuweather.com/en/us/hutto-tx/78634/weather-forecast/2110192

And lynx connected with no problem. I was able to see my current weather.

Last edited by seatommyboy (2019-02-10 04:05:20)

Offline

#2240 2019-02-10 16:11:51

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

I apologize seatommyboy, when calling accuweather for a us location the source page is completely different from when calling it for an international location.
I'll investigate asap.
How long has this been going on? Why hasn't anyone complained?


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

Board footer

Powered by FluxBB