You are not logged in.
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
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
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
~$ 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
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
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
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
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
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
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
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
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
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
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
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
@ loutch
Where is the conky which show the graphic for the pressure ?
Offline
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
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