You are not logged in.

#4026 2021-10-05 09:17:52

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,483

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

That's what I call conky weather extravaganza !!! smile


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

#4027 2021-10-05 11:43:15

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

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

loutch wrote:

Hello unklar

conky in 1.10-8 .

die scripte sind von meinem mageia5 und villeicht von ragamatrix

meine

#!/bin/bash

rm $HOME/tmpconky/satimage.png

sleep 3

wget -O $HOME/tmpconky/satimage.png https://neige.meteociel.fr/satellite/latest-vis.jpg

exit 0

ragamatrix ????

#!/bin/bash

file_exists() {
    if [ -e "$1" ]; then
        return 0
    else
        return 1
    fi
}

PREFIX=${HOME}/tmpconky/
RSAT=${PREFIX}radar-sat
#RSAT_zoom=${PREFIX}radar-satzoom
OUTPUT=${PREFIX}europe.png
tailleRSAT=80
#tailleRSAT_zoom=80
tailledecoupe_ir2=692x692
#tailledecoupe_zoom=150x150
################################
################################
#Annotation pour vérifier si l'image est actualisée ##HelveticaLTStd-BlkCond
jour=$(date +%d.%m.%y); heuremodif=$(date +%H); minmodif=$(date +%M)
#fonte=Open-Sans-Bold
libelle=""
TXT=${PREFIX}updated.png
#################################################################

adrS="https://eumetview.eumetsat.int/static-images/latestImages/EUMETSAT_MSG_RGBNatColour_WesternEurope.jpg"

wget -qO "${RSAT}" "${adrS}"

convert ${RSAT} -filter Lanczos -crop $tailledecoupe_ir2+331+1\! ${RSAT}.png
#convert ${RSAT} -filter Lanczos -crop $tailledecoupe_zoom+389+335\! ${RSAT_zoom}.png
#convert ${RSAT_zoom}.png -resize ${tailleRSAT_zoom}% ${RSAT_zoom}
#########################################################
convert ${RSAT}.png -resize ${tailleRSAT}% ${RSAT}.png
convert  ${RSAT}.png \
\( +clone  -alpha extract \
       -draw 'fill black polygon 0,0 0,5 5,0 fill white circle 5,5 5,0' \
        \( +clone -flip \) -compose Multiply -composite \
        \( +clone -flop \) -compose Multiply -composite \
     \) -alpha off -compose CopyOpacity -composite ${RSAT}.png

#convert -background transparent -fill blue -font Ubuntu -pointsize 17 -gravity center label:"${libelle} ${jour} @ ${heuremodif} : ${minmodif}" -trim \
#\( +clone -background skyblue  -shadow 100x1 -channel A -level 0,6% +channel \) +swap +repage -gravity center -composite ${TXT}



convert $RSAT.png  -background  black \( +clone -shadow 70x4+4+4 \) +swap -background none -flatten ${OUTPUT}

composite -geometry +35+10 ${TXT} ${OUTPUT} ${OUTPUT}

if file_exists "${HOME}"/tmpconky/radar-sat-*; then
    rm "${HOME}"/.conky/tmpconky/radar-sat-* "${RSAT}" "${RSAT}.png"
else
    rm "${RSAT}" "${RSAT}.png"
fi
 
exit

keine problem 

systeme oder barographe-barometre


Das wahr in M5 kde eine conky-clic in 1.9 version

@+

Merci, loutch.
Je n'avais pas encore votre script simple. Voici le résultat.
2021-10-05-13-14-10_scrot.th.png link


Darkly, je me souviens de deux fois où lua ne fonctionnait pas dans une configuration (dans la version 1.10).

...
	lua_load = '~/.conky/rumit/scripts/image.lua',
--${lua fDrawImage $HOME/tmpconky/satimage.png 0 730 240 240 0}
};

conky.text = [[
${font monofur:size=9}${alignc}Conky v${conky_version}${font}
${goto 55}${font LED_mono:size=25}${color6}88:88:88${goto 55}${color}${time %T}${color}${font}
${texeci 1200 bash $HOME/.conky/rumit/neige.sh}${lua fDrawImage $HOME/.conky/rumit/satir-1.png 0 490 240 240 0}
#${texeci 1200 bash $HOME/.conky/rumit/scripts/loutch.sh}${image $HOME/tmpconky/satimage.png -p 0,0 -s 240x240}
${texeci 500 bash $HOME/Accuweather_conky_script/accuweather -f}
...

J'ai donc dû configurer un conky supplémentaire et le placer comme ça :

-- LUA --	
--lua_load = '~/.conky/scripts/draw_bg.lua',
--lua_draw_hook_pre = 'draw_bg 10 0 0 0 0 0x000000 0.55',

};

conky.text = [[

${texeci 1200 bash $HOME/.conky/rumit/scripts/loutch.sh}
${image $HOME/tmpconky/satimage.png -p 0,0 -s 240x240}
...

Quelle était l'astuce pour le mettre dans une configuration de toute façon ?   big_smile

Offline

#4028 2021-10-05 13:08:26

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

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

re

@ unklar

Super


Quelle était l'astuce pour le mettre dans une configuration de toute façon ? 

sorry immer noch nicht gefunden mit diesem verdammten Version 1.10 , fur mich es ist

1 lua Skript für 1 conky

2 lua Skripte  für 2 conky

  etc.....

Nun, wenn jetzt eine freundliche Seele weiß, wie man mehrere Lua-Skripte in ein conky setzen, werde ich es nehmen.
--------------------------------
sorry still not found with this damn version 1.10 , for me it is

1 lua script for 1 conky

2 lua scripts for 2 conky

  etc.....

Well if now some kind soul knows how to put several lua scripts in a conky I take .
@+

Last edited by loutch (2021-10-05 13:12:55)


Linuxmint 19.1 Tessa cinnamon & mageia 8 Plasma5 & XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 21.04 lts on ASUS Rog STRIX

Offline

#4029 2021-10-05 16:08:23

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

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

loutch wrote:

sorry immer noch nicht gefunden mit diesem verdammten Version 1.10 , fur mich es ist
...
--------------------------------
sorry still not found with this damn version 1.10 , for me it is
...

lol  lol  lol

J'aime ça !

Si je ne me trompe pas, @manuel-909 connaissait la solution.  wink

Offline

#4030 2021-10-08 07:18:01

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

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

I finally got around to installing the fixed script because it was looking like this more and more often:

Screenshot_20211008_090607.th.png   link Screenshot_20211008_091858.th.png   link


Thanks again, Teo.  smile

Last edited by unklar (2021-10-08 07:21:16)

Offline

#4031 2021-10-13 10:40:25

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

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

Looks like accuweather is it at again

conky: desktop window (2201414) is subwindow of root window (1e6)
conky: window type - normal
conky: drawing to created window (0x5a00002)
conky: drawing to double buffer
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21869  100 21869    0     0  28401      0 --:--:-- --:--:-- --:--:-- 28364
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22611  100 22611    0     0  25207      0 --:--:-- --:--:-- --:--:-- 25179
cp: target '/home/thomas/Accuweather_conky_script/forecast_2016/forecast_2.png' is not a directory
cp: cannot stat '/home/thomas/Accuweather_conky_script/Forecast_Images_2016/80%.png': No such file or directory
cp: cannot stat '/home/thomas/Accuweather_conky_script/Forecast_Images_2016/79.png': No such file or directory
cp: cannot stat '/home/thomas/Accuweather_conky_script/Forecast_Images_2016/69.png': No such file or directory
cp: cannot stat '/home/thomas/Accuweather_conky_script/Forecast_Images_2016/73.png': No such file or directory
cp: cannot stat '/home/thomas/Accuweather_conky_script/Forecast_Images_2016/77.png': No such file or directory
cp: cannot stat '/home/thomas/Accuweather_conky_script/Forecast_Images_2016/80.png': No such file or directory
cp: cannot stat '/home/thomas/Accuweather_conky_script/Forecast_Images_2016/80.png': No such file or directory
cp: cannot stat '/home/thomas/Accuweather_conky_script/Forecast_Images_2016/79.png': No such file or directory
cp: cannot stat '/home/thomas/Accuweather_conky_script/Forecast_Images_2016/80.png': No such file or directory
cp: cannot stat '/home/thomas/Accuweather_conky_script/Forecast_Images_2016/82.png': No such file or directory

daily_forecast now has 2 extra outputs. I had to adjust my conkyrc, but I only have weather icons for for 2 days. Looks like they added

LOCAL HURRICANE TRACKER
Pamela

Which is what is throwing off my conkyrc

Offline

#4032 2021-10-14 10:32:06

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

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

Here everything is (still) ok.   big_smile

Edit: Are you also up to date?

Last edited by unklar (2021-10-14 15:00:12)

Offline

#4033 2021-10-14 19:50:26

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,483

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

Sorry for the late response, mine's also ok, but we don't have hurricanes in Greece (apart from our political choices and political life in general).
Can you remind me your accuweather address again seatommyboy?


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

#4034 2021-10-15 10:57:30

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

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

I think it was the hurricane thing they added tht threw things off. Booted this morning and everything is fine. Thanks...

Offline

#4035 2021-10-16 21:30:14

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,483

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

Ok, thanks for the feedback.


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