You are not logged in.
@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...
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
@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...
Thank for your answer Teo.
I will see if this is possible with a script lua.
Offline
hello
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.
@+
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
@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...
Offline
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
Hello
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
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
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
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
is installed because the convert.lua script needs this command line interpreter.
Last edited by unklar (2019-03-26 16:29:10)
Offline
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
Offline
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
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
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
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
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
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
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
Don't work very well
weather.txt 1 hour later
...
no temp 0.0
no wind 0.0 km/h
I know the problem
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...
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
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
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
Offline
I'm interested.
...and, would you like to publish the files as well?
Offline