You are not logged in.

#2341 2019-03-25 12:06:23

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

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

@unklar
That's beautiful mein Freund, congrats!

@chepioq
If you don't know the number of lines of your output then there's nothing much that you can do.
Unless you use the cut command and just cut it to as many characters as you like while keeping a standard number of lines.
But in this way you end up with a lot of white space... hmm


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

#2342 2019-03-25 12:49:51

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

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

TeoBigusGeekus wrote:

@chepioq
If you don't know the number of lines of your output then there's nothing much that you can do.
Unless you use the cut command and just cut it to as many characters as you like while keeping a standard number of lines.
But in this way you end up with a lot of white space... hmm

Thank for your answer  Teo.
I will see if this is possible with a script lua.

Offline

#2343 2019-03-26 07:46:33

loutch
Member
Registered: 2015-12-12
Posts: 848

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

hello

Guys i would integreat this in my weather station

1553586328.png

but i lost my conky-pack .

If anyone have the scripts for conky 1.10 tanks.


@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2344 2019-03-26 08:59:51

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

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

TeoBigusGeekus wrote:

@unklar
That's beautiful mein Freund, congrats!


Teo, thank you very much!
Without your super script I would be nothing. O:)  And, the idea had @loutch...   smile

Offline

#2345 2019-03-26 09:05:57

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

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

loutch wrote:

Guys i would integreat this in my weather station
....
but i lost my conky-pack .
If anyone have the scripts for conky 1.10 tanks.

You mean conkyrc 1.10?
Or, do you mean 
https://forums.bunsenlabs.org/viewtopic … 220#p31220
https://forums.bunsenlabs.org/viewtopic.php?id=2282

Offline

#2346 2019-03-26 15:13:19

loutch
Member
Registered: 2015-12-12
Posts: 848

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

Hello

unklar wrote:

You mean conkyrc 1.10?


I mean conky version 1.10  .

i go to try yours links (conky 1.09) but i'm not shure that work with conky 1.10

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2347 2019-03-26 16:14:00

loutch
Member
Registered: 2015-12-12
Posts: 848

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

Don' work

Many errors in console.

When weather.txt empty is & nothing in conky

romuald@RogStrix:~$ conky -c ~/.conky/weather/conkyrc
conky: desktop window (a00008) is subwindow of root window (28a)
conky: window type - normal
conky: drawing to created window (0x4c00002)
conky: drawing to double buffer
conky: forked to background, pid is 3505
romuald@RogStrix:~$ 
conky: llua_do_call: function conky_main execution failed: /home/romuald/.conky/weather/weather.lua:96: attempt to perform arithmetic on a nil value
/home/romuald/.conky/weather/lua-weather.sh: 43: /home/romuald/.conky/weather/lua-weather.sh: Syntax error: Bad for loop variable
conky: llua_do_call: function conky_main execution failed: /home/romuald/.conky/weather/weather.lua:96: attempt to perform arithmetic on a nil value
conky: llua_do_call: function conky_main execution failed: /home/romuald/.conky/weather/weather.lua:96: attempt to perform arithmetic on a nil value
conky: llua_do_call: function conky_main execution failed: /home/romuald/.conky/weather/weather.lua:96: attempt to perform arithmetic on a nil value
conky: llua_do_call: function conky_main execution failed: /home/romuald/.conky/weather/weather.lua:96: attempt to perform arithmetic on a nil value
conky: llua_do_call: function conky_main execution failed: /home/romuald/.conky/weather/weather.lua:96: attempt to perform arithmetic on a nil value
conky: llua_do_call: function conky_main execution failed: /home/romuald/.conky/weather/weather.lua:96: attempt to perform arithmetic on a nil value
conky: llua_do_call: function conky_main execution failed: /home/romuald/.conky/weather/weather.lua:96: attempt to perform arithmetic on a nil value

when i ad this in weather.txt


270
0,0 kn
0534
2138
0,0
Sarreguemines
broken clouds


i have in console this (

romuald@RogStrix:~$ conky -c ~/.conky/weather/conkyrc
conky: desktop window (a00008) is subwindow of root window (28a)
conky: window type - normal
conky: drawing to created window (0x4a00002)
conky: drawing to double buffer
conky: forked to background, pid is 3587
romuald@RogStrix:~$ 
/home/romuald/.conky/weather/lua-weather.sh: 43: /home/romuald/.conky/weather/lua-weather.sh: Syntax error: Bad for loop variable

done this

1553616820.png

Last edited by loutch (2019-03-26 16:14:34)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2348 2019-03-26 16:26:29

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

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

loutch wrote:

I mean conky version 1.10  .

i go to try yours links (conky 1.09) but i'm not shure that work with conky 1.10

If your conky version is at least 1.10.6 and higher, then the conky is still displayed in the old syntax1.9. It only complains about it at the beginning of the terminal.

Using this example, you can also do the conversion to syntax1.10 yourself.
The script for this is in
/usr/share/doc/conky1.10.x/convert.lua


Copy it into your /home, into the directory of conky1.9, make it executable, go into it and issue the command:

lua convert.lua conkyrc9 conkyrc10

For better understanding I have here the 9 for old and the 10 for the new Conky

I've done this so many times, it works reliably.
In debian based distro's you should make sure that the package lua5.2  wink
is installed because the convert.lua script needs this command line interpreter.

Last edited by unklar (2019-03-26 16:29:10)

Offline

#2349 2019-03-26 16:36:01

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

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

loutch wrote:
conky: llua_do_call: function conky_main execution failed: /home/romuald/.conky/weather/weather.lua:96: attempt to perform arithmetic on a nil value
/home/romuald/.conky/weather/lua-weather.sh: 43: /home/romuald/.conky/weather/lua-weather.sh: Syntax error: Bad for loop variable
conky: llua_do_call: function conky_main execution failed: /home/romuald/.conky/weather/weather.lua:96: attempt to perform arithmetic on a nil value

These are syntax errors from your weather.lua and lua-weather.sh scripts. They have nothing to do with the conky syntax1.10    hmm

Offline

#2350 2019-03-26 16:38:46

loutch
Member
Registered: 2015-12-12
Posts: 848

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

conky 1.10.8
liblua5.1.0
liblua5.2.0
liblua5.3.0


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2351 2019-03-26 16:42:10

loutch
Member
Registered: 2015-12-12
Posts: 848

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

line 43 lua-weather.sh

for (( i=0; i < attempts || attempts == 0; i++ )); do

weather.lua line 96

 winddir=-math.pi*(tonumber(dir))/180

Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2352 2019-03-26 16:57:20

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

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

I'm sorry loutch...  :8
I have never tried your scripts. If they are on the linked page, I have to do that first.

What I tested a year ago with manuel909 was the configuration of @damo and openweathermap, without success.
Because it itched me, I retested in August'18 myself. It worked then for 3 months and afterwards again no more. I haven't touched Openweathermap since then

Offline

#2353 2019-03-26 17:27:09

loutch
Member
Registered: 2015-12-12
Posts: 848

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

Ok

keine shade wen ehr nicht will ,will er nicht

danke schön noch und biss bald


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2354 2019-03-26 18:37:50

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

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

big_smile

fuerLoutch.png

You're a lucky guy, just tried it out and it works (again).
In the terminal I still see (my) known error messages with every update of the damo scripts.

conky: desktop window (1c00013) is subwindow of root window (6b4)
conky: window type - normal
conky: drawing to created window (0x5e00002)
conky: drawing to double buffer
datafile /tmp/weather.txt not found
/home/unklarer/damo-weather/lua-weather.sh: Zeile 100: printf: 12.93: Ungültige Zahl.
/home/unklarer/damo-weather/lua-weather.sh: Zeile 101: printf: 50.83: Ungültige Zahl.
/home/unklarer/damo-weather/lua-weather.sh: Zeile 103: printf: 4.73: Ungültige Zahl.
/home/unklarer/damo-weather/lua-weather.sh: Zeile 105: printf: 0.56: Ungültige Zahl.
/home/unklarer/damo-weather/lua-weather.sh: Zeile 106: printf: 7.22: Ungültige Zahl.
/home/unklarer/damo-weather/lua-weather.sh: Zeile 120: printf: 4.73: Ungültige Zahl.
conky: '/home/unklarer/damo-weather/.conkyrc10' modified, reloading...
conky: desktop window (1c00013) is subwindow of root window (6b4)
conky: window type - normal
conky: drawing to created window (0x5e00002)
conky: drawing to double buffer

weather.txt

270
5.1 m/s
0558
1829
4,0
Chemnitz
light rain

Offline

#2355 2019-03-27 06:46:37

loutch
Member
Registered: 2015-12-12
Posts: 848

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

Hello

i have it (modify the lua script )


console done this

omuald@RogStrix:~$ conky -c ~/.conky/weather/conkyrc
conky: desktop window (800008) is subwindow of root window (28a)
conky: window type - normal
conky: drawing to created window (0x3e00002)
conky: drawing to double buffer
conky: forked to background, pid is 27954
romuald@RogStrix:~$ 
/home/romuald/.conky/weather/lua-weather.sh: ligne 99 : printf: 7.07: nombre non valable
/home/romuald/.conky/weather/lua-weather.sh: ligne 100 : printf: 49.11: nombre non valable
/home/romuald/.conky/weather/lua-weather.sh: ligne 102 : printf: 3.81: nombre non valable
/home/romuald/.conky/weather/lua-weather.sh: ligne 104 : printf: 1.67: nombre non valable
/home/romuald/.conky/weather/lua-weather.sh: ligne 105 : printf: 5.56: nombre non valable
/home/romuald/.conky/weather/lua-weather.sh: ligne 115 : printf: 11.1: nombre non valable
/home/romuald/.conky/weather/lua-weather.sh: ligne 119 : printf: 3.81: nombre non valable

weather.txt

40
0,0 kn
0620
1853
0,0
Sarreguemines
few clouds

Last edited by loutch (2019-03-27 07:25:45)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2356 2019-03-27 08:46:31

loutch
Member
Registered: 2015-12-12
Posts: 848

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

boouuu

Don't work very well

weather.txt 1 hour later

50
0,0 km/h
0620
1853
0,0
Sarreguemines
few clouds

no temp 0.0

no wind 0.0 km/h

sunrise work great position from sun moved in conky

Last edited by loutch (2019-03-27 08:47:44)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2357 2019-03-27 12:31:20

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

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

loutch wrote:

Don't work very well

weather.txt 1 hour later

...

no temp 0.0

no wind 0.0 km/h

I know the problem  wink

I didn't get my own location correctly displayed with the name or the ID from the city.list.json. It was always missing the temperature, the wind or both.

Very unreliable the whole thing.
You can try the next bigger city with you. This gave me a better result with Chemnitz or Dresden. But, what interests me the weather in 50 or 100 km distance...

forLoutch.th.png

Further aggravating is that you block the data retrieval, if this does not take place in a distance of at least 10 minutes.  8o

For me, this weather data provider is out of the question.

-------------------------
Je connais le problème  wink

Je n'ai pas eu mon propre emplacement correctement affiché avec le nom ou l'ID de la city.list.json. Il manquait toujours la température, le vent ou les deux.

C'est très peu fiable.
Vous pouvez essayer la prochaine grande ville avec vous. Cela m'a donné un meilleur résultat avec Chemnitz ou Dresde. Mais, ce qui m'intéresse c'est la météo à 50 ou 100 km de distance....
De plus, vous bloquez l'extraction des données si elle n'a pas lieu à une distance d'au moins 10 minutes.  8o

Pour moi, ce fournisseur de données météorologiques est hors de question.

Last edited by unklar (2019-03-27 12:48:17)

Offline

#2358 2019-03-27 15:01:58

loutch
Member
Registered: 2015-12-12
Posts: 848

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

ok no problem

chearch another conky

Bis Bald


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2359 2019-03-28 11:01:18

loutch
Member
Registered: 2015-12-12
Posts: 848

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

hello

My conky-barographe work great since yesterday & no problem in console.
Modify it for accuweather.

1553770952.png

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2360 2019-03-28 13:13:16

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

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

I'm interested.  smile
...and, would you like to publish the files as well?

Offline

Board footer

Powered by FluxBB