You are not logged in.

#2381 2019-04-04 08:29:01

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

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

Maybe the lua command affects the final result?


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

#2382 2019-04-04 08:30:27

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

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

If that don't work with accuweather i try it with wunderground conditions


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

#2383 2019-04-04 08:32:38

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

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

Try executing the script without launching conky, see if that works.


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

#2384 2019-04-04 08:35:28

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

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

~$ bash $HOME/1_accuweather/1_accuweather -f2016
/home/romuald/1_accuweather/1_accuweather: ligne 858 : printf: 999.40: nombre non valable

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

#2385 2019-04-04 08:38:10

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

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

try this :

name='exec',                arg='sed -n 8p $HOME/1_accuweather/curr_cond | awk '{printf("%d\n",$1)}'

Last edited by chepioq (2019-04-04 09:58:55)

Offline

#2386 2019-04-04 08:39:38

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

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

Theo i quit you a fews minutes must chearch my son at school


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

#2387 2019-04-04 08:41:26

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

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

Could it be a regional setting?
What's your system's decimal separator?
Is it a comma or a period?


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

#2388 2019-04-04 09:24:47

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

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

i have this

it's a comma

1554369938.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

#2389 2019-04-04 09:35:57

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

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

Hello chepioq

tanks for helping ,sorry don't work


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

#2390 2019-04-04 09:39: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)

loutch wrote:

i have this

it's a comma

That's why it's not recognized as a valid number.

Use these instead

round_press=$(printf "%.0f\n" $(sed -n 8p $HOME/1_accuweather/curr_cond|sed 's/ mb//'|sed 's/\./\,/'))
sed -i "8s/.*/$round_press/" $HOME/1_accuweather/curr_cond

EDIT: Corrected the commands

Last edited by TeoBigusGeekus (2019-04-04 09:45:35)


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

#2391 2019-04-04 09:48:36

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

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

wait no error in terminal

Last edited by loutch (2019-04-04 09:50:06)


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

#2392 2019-04-04 09:49:28

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've corrected the commands in my latest post, copy them again.


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

#2393 2019-04-04 09:54:35

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

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

ok work great  i have 1000 at line 8 conky work great

Tanks MASTERS


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

#2394 2019-04-04 09:55:57

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

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

wink

Took us a while but we finally got it.


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

#2395 2019-04-04 09:58:16

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

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

loutch wrote:

Hello chepioq

tanks for helping ,sorry don't work

I have a mistake in my code the good is :

name='exec',                arg='sed -n 8p $HOME/1_accuweather/curr_cond | awk '{printf("%d\n",$1)}'

Offline

#2396 2019-04-04 12:19:02

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

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

Don't work

something like ' or \ or , make a mistake

in conkyrc i used this before

sed -n '8p' $HOME/1_accuweather/curr_cond |cut -c1-4

in lua script this

sed -n 8p $HOME/1_accuweather/curr_cond |cut -c1-4

without ' for 8p

@+


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

#2397 2019-04-04 12:22:28

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

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

Conkys are working great since this morning

1554380635.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

#2398 2019-04-04 14:11:46

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

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

@ loutch
Where is the conky which show the graphic for the pressure ?

Offline

#2399 2019-04-04 14:51:53

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

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

here page 95 post 2363

conky , script.sh & link to images pack

https://forums.bunsenlabs.org/viewtopic … 685#p84685

Last edited by loutch (2019-04-04 14:52: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

#2400 2019-04-06 16:25:54

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

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

Thank loutch, but I can see in your conky:
......................
lua_load = '~/.conky/lua/image.lua',
..........................
..........................
${lua fDrawImage ~/.conky/barographe/base.png 66 18 228 97}
${lua fDrawImage ~/.conky/barographe/white.png 74 114 214 12}

what is the script "image.lua"

Offline

Board footer

Powered by FluxBB