You are not logged in.

#2426 2019-06-12 16:50:58

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

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

No it update with another conky (conky-meteo) witch use same data.

Offline

#2427 2019-06-13 12:08:04

ragamatrix
Member
Registered: 2015-10-04
Posts: 407

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

ok... well I'm not sure if I've understood how it works..
I got that (but the datas are not correct):
3b1:

#!/bin/bash

wget -O $HOME/conky-meteo-dark_sky/weather.json https://api.darksky.net/forecast/--my-id-number--/'47.250549','8.623953'?'lang=fr&units=si'


Dark_Sky_icons () {
    case $1 in
         clear-day)
            echo 1
        ;;
         clear-night)
            echo 2
        ;;
         cloudy)
            echo 3
        ;;
         fog)
            echo 4
        ;;
         partly-cloudy-day)
            echo 5
        ;;
         partly-cloudy-night)
            echo 6
        ;;
         rain)
            echo 7
        ;;
         sleet)
            echo 8
        ;;
         snow)
            echo 9
        ;;
         wind)
            echo 10
        ;;
        esac
}

rm $HOME/conky-meteo-dark_sky/*.png
#Forecast feature: Forecast
jq --raw-output '.currently[]' $HOME/conky-meteo-dark_sky/weather.json > Conditions

cp $HOME/conky-meteo-dark_sky/Dark_Sky_icons/$(Dark_Sky_icons $(sed -n 3p $HOME/conky-meteo-dark_sky/Conditions)).png $HOME/conky-meteo-dark_sky/Now.png

jq --raw-output '.daily.data[].icon' $HOME/conky-meteo-dark_sky/weather.json > daily-icons

cat $HOME/conky-meteo-dark_sky/weather.json | jq '.daily.data' | sed 's/[",:,},{]//g' | awk '{$1=""}1' | sed 's/^[ \t]*//' |  sed '/./!d' > Forecasts

for (( i=1; i<=8; i+=1 ))
    do
        cp $HOME/conky-meteo-dark_sky/Dark_Sky_icons/$(Dark_Sky_icons $(sed -n ${i}p $HOME/conky-meteo-dark_sky/daily-icons)).png $HOME/conky-meteo-dark_sky/d$(( i )).png
   done

#Hourly feature, commented out by default, uncomment if you wish so

#for (( j=1; j<=24; j+=1 ))
#    do
#        cp $HOME/conky-meteo-dark_sky/Dark_Sky_icons/$(Dark_Sky_icons $(sed -n ${j}p $HOME/conky-meteo-dark_sky/hourly-icons)).png $HOME/conky-meteo-dark_sky/h$(( j )).png
#   done

    # icone direction vent 
wind_direction=$(cat $HOME/conky-meteo-dark_sky/weather.json | jq --raw-output '.currently.windBearing')
if [[ $wind_direction > 0 ]] && [[ $wind_direction < 12 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"01.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 34 ]] && [[ $wind_direction < 56 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"03.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 56 ]] && [[ $wind_direction < 78 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"04.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 78 ]] && [[ $wind_direction < 101 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"05.png" $HOME/conky-meteo-dark_sky/Wind.png 
elif [[ $wind_direction > 101 ]] && [[ $wind_direction < 124 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"06.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 124 ]] && [[ $wind_direction < 146 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"07.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 146 ]] && [[ $wind_direction < 169 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"08.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 169 ]] && [[ $wind_direction < 192 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"09.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 192 ]] && [[ $wind_direction < 214 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"10.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 214 ]] && [[ $wind_direction < 236 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"11.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 236 ]] && [[ $wind_direction < 259 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"12.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 259 ]] && [[ $wind_direction < 281 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"13.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 281 ]] && [[ $wind_direction < 304 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"14.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 304 ]] && [[ $wind_direction < 326 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"15.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 326 ]] && [[ $wind_direction < 349 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"16.png" $HOME/conky-meteo-dark_sky/Wind.png
elif [[ $wind_direction > 349 ]] && [[ $wind_direction < 360 ]]; then
    cp $HOME/conky-meteo-dark_sky/vent/"01.png" $HOME/conky-meteo-dark_sky/Wind.png

fi

conky-meteo-V2:

conky.config = {
background = false,
use_xft = true,
font = 'DejaVuSansMono:size=8',
update_interval = 300.0,
total_run_times = 0,
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
--own_window_argb_visual = true,
own_window_hints = 'undecorated,skip_taskbar,skip_pager,below',
double_buffer = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
stippled_borders = 8,
border_inner_margin = 4,
alignment = 'top_left',
minimum_width = 390,
minimum_height = 900,
gap_x = 40,
gap_y = 40,
no_buffers = false,
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
use_spacer = right,
text_buffer_size = 6144,
imlib_cache_size = 8192, 

default_outline_color = '000000',
color1 = 'F5B800',
color2 = '00f5ff',
color3 = '005fff',
color4 = 'ff4500',
lua_load = '/home/raphix/conky-meteo-dark_sky/date_position.lua', 
lua_draw_hook_pre = 'date_position',

}

conky.text = [[
${execi 300 bash /home/raphix/conky-meteo-dark_sky/3b1}\
${color2}${goto 90}${font DejaVuSansMono:bold:size=10}Prévisions semaine${font}
${image ~/conky-meteo-dark_sky/d1.png -p -1,35 -s 53x32}
${image ~/conky-meteo-dark_sky/d2.png -p -1,105 -s 53x32}
${image ~/conky-meteo-dark_sky/d3.png -p -1,175 -s 53x32}
${image ~/conky-meteo-dark_sky/d4.png -p -1,245 -s 53x32}
${image ~/conky-meteo-dark_sky/d5.png -p -1,315 -s 53x32}
${image ~/conky-meteo-dark_sky/d6.png -p -1,385 -s 53x32}
${image ~/conky-meteo-dark_sky/d7.png -p -1,455 -s 53x32}
${image ~/conky-meteo-dark_sky/d8.png -p -1,525 -s 53x32}
]]

Offline

#2428 2019-06-14 04:42:51

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

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

Try to add

    os.execute ('/home/raphix/conky-meteo-dark_sky/3b1')

in the file date_position.lua:

require 'cairo'
require 'imlib2'

    os.execute ('/home/raphix/conky-meteo-dark_sky/3b1')

function conky_date_position()
    if conky_window == nil then return end

............................................

and remove "${execi 300 bash /home/raphix/conky-meteo-dark_sky/3b1}\" in your conky-meteo-V2

Offline

#2429 2019-06-14 08:20:57

ragamatrix
Member
Registered: 2015-10-04
Posts: 407

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

Thanks for your help chepioq but I still have the same uncorect datas appearing...

Offline

#2430 2019-06-18 04:45:40

unklar
Member
Registered: 2015-10-31
Posts: 914

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

Hi friends,

the page moongiant.com has a bug. Do you have that too?

Verbindungsaufbau zu www.moongiant.com (www.moongiant.com)|23.0.40.247|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 302 Moved Temporarily
Platz: https://www.moongiant.com/phase/today[folge]
--2019-06-18 06:30:25--  https://www.moongiant.com/phase/today
Verbindungsaufbau zu www.moongiant.com (www.moongiant.com)|23.0.40.247|:443... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 500 Internal Server Error
2019-06-18 06:30:25 FEHLER 500: Internal Server Error.

Offline

#2431 2019-06-18 04:54:03

ohnonot
...again
Registered: 2015-09-29
Posts: 3,909
Website

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

^ No, it's all good here.
Just a temporary glitch I guess.

Offline

#2432 2019-06-18 20:37:32

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

Open the script (moon_MoonGiant) and replace line #48

wget -O $HOME/4_Moon/raw "http://www.moongiant.com/phase/today"

with

wget -O $HOME/4_Moon/raw "http://www.moongiant.com/phase/today/"

ie. add a slash at the end of today.

The former url doesn't seem to work anymore whereas the slashed one seems to be ok; I'll watch it for a while (couple of days) and then I'll update the script.


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

#2433 2019-06-19 07:48:01

unklar
Member
Registered: 2015-10-31
Posts: 914

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

Thank you, Teo, I'll try it out.   smile

Offline

#2434 2019-06-19 07:54:51

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

...and today both urls work OK; go figure  roll


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

#2435 2019-06-19 08:04:02

unklar
Member
Registered: 2015-10-31
Posts: 914

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

and I have now inserted the / and the data is there, the raw file is filled.

TeoBigusGeekus wrote:

...and today both urls work OK; go figure  roll

Teo, Got'es ways are unfathomable....  not with me now.   hmm

only with /
retested

Last edited by unklar (2019-06-19 08:07:27)

Offline

#2436 2019-06-23 09:33:01

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

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

smilies%20(204).gif

i learn to use scroll in conky

here the scroll part in my weather conky , work great

${voffset -20}${font Liberation Sans:size=7}
${goto  270}${scroll 30 ${execi 90 sed -n '5p' $HOME/1_accuweather/first_days}}\
${goto  420}${scroll 30 ${execi 90 sed -n '10p' $HOME/1_accuweather/first_days}}\
${goto  570}${scroll 30 ${execi 90 sed -n '15p' $HOME/1_accuweather/first_days}}\
${goto  730}${scroll 30 ${execi 90 sed -n '20p' $HOME/1_accuweather/first_days}}\
${goto  870}${scroll 30 ${execi 90 sed -n '25p' $HOME/1_accuweather/first_days}}\
${goto 1020}${scroll 30 ${execi 90 sed -n '5p'  $HOME/1_accuweather/last_days}}\
${goto 1170}${scroll 30 ${execi 90 sed -n '10p' $HOME/1_accuweather/last_days}}

but i have a little problem

my weather icons disappear for a few seconds then reappear .

is there anything to put in the config part ?

tanks


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2437 2019-06-24 16:36:59

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

Sorry for the delay loutch, can you post your entire conkyrc file please?


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

#2438 2019-06-24 18:30:47

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

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

Hello

no problem real life is more important that any conky's


here conkyrc


conky.config = {
-- ------------------------- Windows Settings
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
	own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
	own_window_argb_visual = true,
	own_window_argb_value = 0,

	double_buffer = true,
	background = true,

-- ------------------------- Position
	alignment = 'top_left',

	minimum_width = 295,
	minimum_height = 165,
	maximum_width = 1300,
	gap_x = 626,
	gap_y = 870,

-- ------------------------- Font
	use_xft = true,
	xftalpha = 0.8,
	override_utf8_locale = true,

	draw_shades = true,
	default_shade_color = 'black',

	draw_borders = false,
	draw_outline = false,

	font = 'Monofur:bold:size=8',

-- ------------------------ Colors
	default_color = 'DCDCDC',
	color0 = '87CF3E',
	color1 = 'DDDDDD',
	color2 = 'AAAAAA',
	color3 = '888888',
        color7 = '#6495ee',
        color9 = 'red',

-- ------------------------- Other #${execi 3600 bash $HOME/1_accuweather/alertes.sh}
	update_interval = 1,

--	template0 = [[${GOTO 50}${color\1}${top_mem name \2}${alignr}${top_mem mem \2}%]],${template0 0 1} ${template0 1 2}

	--top_name_verbose = false,
	no_buffers = true,
lua_load = '~/.conky/lua/image.lua',

};

conky.text = [[
${execi 1800 bash $HOME/1_accuweather/1_accuweather -f2015}${execi 3500 bash $HOME/2_Wunderground_API/2_wun}
${voffset 1}${goto 16}${font GE Inspira:size=14:}Sarreguemines : ${font} ${execi 90 sed -n '4p' $HOME/1_accuweather/curr_cond} 
${goto 16}Temp.: ${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond} °C   Res.: ${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond} °C 
${voffset -16}
${goto 200}${font GE Inspira:size=8}Vent : ${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond} 
${goto 200}Vitesse : ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 200}Préssion : ${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond}
${goto 200}Indice UV : ${execi 90 sed -n '9p' $HOME/1_accuweather/curr_cond} $font
${goto 16}Phase : ${execi 600  sed -n '6p' $HOME/2_Wunderground_API/Moon_Sun}

${goto 16}${execi 600  sed -n '2p' $HOME/2_Wunderground_API/Alertes}
${goto 16}${execi 602  sed -n '1p' $HOME/2_Wunderground_API/Alertes | cut -c1-70}
${goto 16}${execi 602  sed -n '1p' $HOME/2_Wunderground_API/Alertes | cut -c71-120}
    ${voffset -140}
${goto  300}${color7}${if_match "${execi 90 sed -n '4p' $HOME/1_accuweather/first_days}" == "Min."}${else}${execi 90 sed -n '4p' $HOME/1_accuweather/first_days}°${endif}${color}/${color9}${execi 90 sed -n '3p' $HOME/1_accuweather/first_days}°\
${goto  450}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°${color}\
${goto  600}${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°${color}\
${goto  750}${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°${color}\
${goto  900}${color7}${execi 90 sed -n '24p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '23p' $HOME/1_accuweather/first_days}°${color}\
${goto 1050}${color7}${execi 90 sed -n '4p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}°${color}\
${goto 1200}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}°${color}

${voffset 30}
${goto  300}${execi 90 sed -n '1p' $HOME/1_accuweather/first_days}\
${goto  450}${execi 3600 echo `date --date="1 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="1 day" | awk '{print $2}'`}\
${goto  600}${execi 3600 echo `date --date="2 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="2 day" | awk '{print $2}'`}\
${goto  750}${execi 3600 echo `date --date="3 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="3 day" | awk '{print $2}'`}\
${goto  900}${execi 3600 echo `date --date="4 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="4 day" | awk '{print $2}'`}\
${goto 1050}${execi 3600 echo `date --date="5 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="5 day" | awk '{print $2}'`}\
${goto 1200}${execi 3600 echo `date --date="6 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="6 day" | awk '{print $2}'`}

${voffset -20}${font Liberation Sans:size=7}
${goto  270}${scroll 30 ${execi 90 sed -n '5p' $HOME/1_accuweather/first_days}}\
${goto  420}${scroll 30 ${execi 90 sed -n '10p' $HOME/1_accuweather/first_days}}\
${goto  570}${scroll 30 ${execi 90 sed -n '15p' $HOME/1_accuweather/first_days}}\
${goto  730}${scroll 30 ${execi 90 sed -n '20p' $HOME/1_accuweather/first_days}}\
${goto  870}${scroll 30 ${execi 90 sed -n '25p' $HOME/1_accuweather/first_days}}\
${goto 1020}${scroll 30 ${execi 90 sed -n '5p'  $HOME/1_accuweather/last_days}}\
${goto 1170}${scroll 30 ${execi 90 sed -n '10p' $HOME/1_accuweather/last_days}}

${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_0.png 0 50 100 60}
${lua fDrawImage $HOME/1_accuweather/Wind1.png 150 50 45 45}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_1.png  280 65 70 40}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_2.png  430 65 70 40}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_3.png  580 65 70 40}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_4.png  730 65 70 40}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_5.png  880 65 70 40}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_6.png 1030 65 70 40}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_7.png 1180 65 70 40}
${lua fDrawImage $HOME/2_Wunderground_API/Moon_phase.png 100 50 50 50}

${voffset -500}
]];

@+

Last edited by loutch (2019-06-24 18:31:40)


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2439 2019-06-24 20:51:55

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

Sorry but why do you use lua to get the forecast images on your conky?
I can't test your configuration cause I don't use lua, but you could get the same result by just using the image conky command.


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

#2440 2019-06-25 06:47:17

unklar
Member
Registered: 2015-10-31
Posts: 914

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

I could understand the flashing of the pictures here on archlinux.
In my opinion you made the window of Conky too small.
Instead

	minimum_width = 295,
	minimum_height = 165,
	maximum_width = 1300,


you should use.

	minimum_width = 1300, minimum_height = 165,
	maximum_width = 1300,

Then it will not blink here.   smile

Offline

#2441 2019-06-25 08:07:50

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

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

smilies%20(204).gif

Oopss unklar do hast es super work great

@ Théo

I use the lua script for image because it looks better

here whitout lua

1561449959.png

with lua

1561450042.png


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2442 2019-06-25 09:38:09

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

Dear God, are these the same images?
They do look awful without lua...
I've never witnessed that in my configuration, why is it happening?


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

#2443 2019-06-25 16:12:00

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

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

re

yes same images & i don't know why there different

Last edited by loutch (2019-06-25 16:16:40)


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2444 2019-06-26 16:31:08

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

Weird, it doesn't happen in my system.
Some bug with your version of conky?
Compositor's fault?

Can you post your non-lua conkyrc?


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

#2445 2019-06-26 17:49:53

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

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

here

conky.config = {
-- ------------------------- Windows Settings
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
	own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
	own_window_argb_visual = true,
	own_window_argb_value = 0,

	double_buffer = true,
	background = true,

-- ------------------------- Position
	alignment = 'top_left',

	minimum_width = 1300,
	minimum_height = 165,
	maximum_width = 1300,
	gap_x = 626,
	gap_y = 870,

-- ------------------------- Font
	use_xft = true,
	xftalpha = 0.8,
	override_utf8_locale = true,

	draw_shades = true,
	default_shade_color = 'black',

	draw_borders = false,
	draw_outline = false,

	font = 'Monofur:bold:size=8',

-- ------------------------ Colors
	default_color = 'DCDCDC',
	color0 = '87CF3E',
	color1 = 'DDDDDD',
	color2 = 'AAAAAA',
	color3 = '888888',
        color7 = '#6495ee',
        color9 = 'red',

-- ------------------------- Other #${execi 3600 bash $HOME/1_accuweather/alertes.sh}
	update_interval = 1,

--	template0 = [[${GOTO 50}${color\1}${top_mem name \2}${alignr}${top_mem mem \2}%]],${template0 0 1} ${template0 1 2}

	--top_name_verbose = false,
	no_buffers = true,


};

conky.text = [[
${execi 1800 bash $HOME/1_accuweather/1_accuweather -f2015}${execi 3500 bash $HOME/2_Wunderground_API/2_wun}
${voffset 1}${goto 16}${font GE Inspira:size=14:}Sarreguemines : ${font} ${execi 90 sed -n '4p' $HOME/1_accuweather/curr_cond} 
${goto 16}Temp.: ${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond} °C   Res.: ${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond} °C 
${voffset -16}
${goto 200}${font GE Inspira:size=8}Vent : ${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond} 
${goto 200}Vitesse : ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 200}Préssion : ${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond}
${goto 200}Indice UV : ${execi 90 sed -n '9p' $HOME/1_accuweather/curr_cond} $font
${goto 16}Phase : ${execi 600  sed -n '6p' $HOME/2_Wunderground_API/Moon_Sun}

${goto 16}${execi 600  sed -n '2p' $HOME/2_Wunderground_API/Alertes}
${goto 16}${execi 602  sed -n '1p' $HOME/2_Wunderground_API/Alertes | cut -c1-70}
${goto 16}${execi 602  sed -n '1p' $HOME/2_Wunderground_API/Alertes | cut -c71-120}
    ${voffset -140}
${goto  300}${color7}${if_match "${execi 90 sed -n '4p' $HOME/1_accuweather/first_days}" == "Min."}${else}${execi 90 sed -n '4p' $HOME/1_accuweather/first_days}°${endif}${color}/${color9}${execi 90 sed -n '3p' $HOME/1_accuweather/first_days}°\
${goto  450}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°${color}\
${goto  600}${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°${color}\
${goto  750}${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°${color}\
${goto  900}${color7}${execi 90 sed -n '24p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '23p' $HOME/1_accuweather/first_days}°${color}\
${goto 1050}${color7}${execi 90 sed -n '4p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}°${color}\
${goto 1200}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}°${color}

${voffset 30}
${goto  300}${execi 90 sed -n '1p' $HOME/1_accuweather/first_days}\
${goto  450}${execi 3600 echo `date --date="1 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="1 day" | awk '{print $2}'`}\
${goto  600}${execi 3600 echo `date --date="2 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="2 day" | awk '{print $2}'`}\
${goto  750}${execi 3600 echo `date --date="3 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="3 day" | awk '{print $2}'`}\
${goto  900}${execi 3600 echo `date --date="4 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="4 day" | awk '{print $2}'`}\
${goto 1050}${execi 3600 echo `date --date="5 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="5 day" | awk '{print $2}'`}\
${goto 1200}${execi 3600 echo `date --date="6 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="6 day" | awk '{print $2}'`}

${voffset -20}
${goto  270}${scroll 30 ${execi 90 sed -n '5p' $HOME/1_accuweather/first_days}}\
${goto  420}${scroll 30 ${execi 90 sed -n '10p' $HOME/1_accuweather/first_days}}\
${goto  570}${scroll 30 ${execi 90 sed -n '15p' $HOME/1_accuweather/first_days}}\
${goto  730}${scroll 30 ${execi 90 sed -n '20p' $HOME/1_accuweather/first_days}}\
${goto  870}${scroll 30 ${execi 90 sed -n '25p' $HOME/1_accuweather/first_days}}\
${goto 1020}${scroll 30 ${execi 90 sed -n '5p'  $HOME/1_accuweather/last_days}}\
${goto 1170}${scroll 30 ${execi 90 sed -n '10p' $HOME/1_accuweather/last_days}}

${image $HOME/1_accuweather/forecast_2015/forecast_0.png -p 0,50 -s 100x60}
${image $HOME/2_Wunderground_API/Moon_phase.png -p 100,50 -s 50x50}
${image $HOME/1_accuweather/Wind1.png -p 150,50 -s 45x45}
${image $HOME/1_accuweather/forecast_2015/forecast_1.png -p  280,65 -s 70x40}
${image $HOME/1_accuweather/forecast_2015/forecast_2.png -p  430,65 -s 70x40}
${image $HOME/1_accuweather/forecast_2015/forecast_3.png -p  580,65 -s 70x40}
${image $HOME/1_accuweather/forecast_2015/forecast_4.png -p  730,65 -s 70x40}
${image $HOME/1_accuweather/forecast_2015/forecast_5.png -p  880,65 -s 70x40}
${image $HOME/1_accuweather/forecast_2015/forecast_6.png -p 1030,65 -s 70x40}
${image $HOME/1_accuweather/forecast_2015/forecast_7.png -p 1180,65 -s 70x40}


${voffset -500}
]];

Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2446 2019-06-26 19:45:38

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

Your conkyrc on my system
wKEEi5Ut.jpg

It looks fine to me.

How are other images (photos for example) shown in your conky? (using the image command of course)


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

#2447 2019-06-27 07:06:22

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

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

hello

the images are from hour accuweather pack

they look good with any dark wallpaper

1561618992.png


that is why i use the lua script for all wallpaper

Last edited by loutch (2019-06-27 07:15:25)


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2448 2019-06-27 21:39:28

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

Can you try to show an irrelevant image (a wallpaper for example) with the image command in a conky configuration?
Does it show properly?


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

#2449 2019-06-27 22:03:10

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,528

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

Maybe this might help: ARGB Visual


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#2450 2019-06-28 06:58:51

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

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

Hello

@ Theo

here with an other image wall dark
1561704985.png

wall clear


1561705037.png

@ Sector

i try everything that done this

1561705107.png

@+

Last edited by loutch (2019-06-28 07:00:25)


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

Board footer

Powered by FluxBB