You are not logged in.

#1476 2017-01-16 19:31:52

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

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

@chepioq
I want to put your script and conkyrc on a link from the front page.
Can you gather them on a single post?
Don't forget to include the link with the available languages.
Thanks.


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

#1477 2017-01-16 20:01:59

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

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

Ok Theo.
I made a conky-weather , based on  2b_Wunderground_API, I modified the 2b script and rename it as 3b. I use Wundergroud API, with personal key, and I have learned that this API can be provided with several language.

List of language can be found here : https://www.wunderground.com/weather/ap … ge-support.

You must add your language in 3b script, like this :

#put your Weather Underground address API here
address="http://api.wunderground.com/api/you_api_key_here/conditions/forecast10day/astronomy/hourly/satellite/lang:FR/q/aubagne.json"

3b script :

#!/bin/bash

#put your hemisphere here: n for north, s for south
hemisphere=n

#put your Weather Underground address API here
address="http://api.wunderground.com/api/your_api_key_here/conditions/forecast10day/astronomy/hourly/satellite/lang:FR/q/aubagne.json"

wun_icon_to_png () {
    if [[ $1 == day ]]; then
        case $2 in
            chanceflurries)
                echo 21
            ;;
            chancerain)
                echo 14
            ;;
            chancesleet)
                echo 26
            ;;
            chancesnow)
                echo 20
            ;;
            chancetstorms)
                echo 17
            ;;
            clear)
                echo 1
            ;;
            cloudy)
                echo 7
            ;;
            flurries)
                echo 21
            ;;
            fog)
                echo 11
            ;;
            hazy)
                echo 5
            ;;
            mostlycloudy)
                echo 6
            ;;
            mostlysunny)
                echo 4
            ;;
            partlycloudy)
                echo 4
            ;;
            partlysunny)
                echo 6
            ;;
            sleet)
                echo 26
            ;;
            rain)
                echo 18
            ;;
            snow)
                echo 22
            ;;
            sunny)
                echo 1
            ;;
            tstorms)
                echo 15
            ;;
            unknown)
                echo 0
            ;;
        esac
    elif [[ $1 == night ]]; then
        case $2 in
            chanceflurries)
                echo 43
            ;;
            chancerain)
                echo 39
            ;;
            chancesleet)
                echo 40
            ;;
            chancesnow)
                echo 43
            ;;
            chancetstorms)
                echo 41
            ;;
            clear)
                echo 33
            ;;
            cloudy)
                echo 38
            ;;
            flurries)
                echo 43
            ;;
            fog)
                echo 11
            ;;
            hazy)
                echo 37
            ;;
            mostlycloudy)
                echo 36
            ;;
            mostlysunny)
                echo 35
            ;;
            partlycloudy)
                echo 35
            ;;
            partlysunny)
                echo 36
            ;;
            sleet)
                echo 40
            ;;
            rain)
                echo 40
            ;;
            snow)
                echo 44
            ;;
            sunny)
                echo 33
            ;;
            tstorms)
                echo 41
            ;;
            unknown)
                echo 0
            ;;
        esac
    fi
    }
    
#rm $HOME/test/*.png

curl $address -o $HOME/test/raw_data
    
sed -n '/,	"current_observation": {/,/,	"satellite": {/p' $HOME/test/raw_data > $HOME/test/Conditions
sed -i 's/^[ \t]*"//g' $HOME/test/Conditions
sed -i '/current_observation\|image":\|logo_\|title":\|link":\|^[ \t]*},$\|^[ \t]*}$\|temperature_string\|forecast_url\|history_url\|ob_url\|satellite":/d' $HOME/test/Conditions
sed -i -e 's/":"/\n/g' -e 's/",\|": {$//g' -e 's/"precip_1hr_string/\nprecip_1hr_string/g' -e 's/":/\n/g' -e 's/,$//g' $HOME/test/Conditions
sed -i -e 's/^http.*\/c\/k\///g' -e '/gif/s/_.*$//g' $HOME/test/Conditions
day_or_night=$(sed -n 137p $HOME/test/Conditions)
if [[ $day_or_night == nt ]]; then
	cp $HOME/test/Forecast_Images/$(wun_icon_to_png night $(sed -n 135p $HOME/test/Conditions)).png $HOME/test/Now.png
else 
	cp $HOME/test/Forecast_Images/$(wun_icon_to_png day $(sed -n 135p $HOME/test/Conditions)).png $HOME/test/Now.png
fi

#Satellite feature, commented out by default, uncomment if you wish so
sed -n '/,	"satellite": {/,/"forecast":{/p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/raw_data > $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Satellite
sed -i 's/^[ \t]*"//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Satellite
sed -i -e '/image/!d' -e 's/^.*": "//g' -e 's/".*$//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Satellite
for (( i=1; i<=3; i++ ))
	  do
          wget -O $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/sat_pic$i.png $(sed -n ${i}p $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Satellite)
	  done

#Forecast feature: Forecast
sed -n '/"forecast":{/,/"simpleforecast": {/p' $HOME/test/raw_data > $HOME/test/Forecast
sed -i -e '/"period":\|icon_url/d' $HOME/test/Forecast
sed -i 's/^[ \t]*"//g' $HOME/test/Forecast
sed -i -e '/period\|icon\|title\|fcttext/!d' -e 's/":"/\n/g' -e 's/":/\n/g' -e 's/",//g' -e 's/,$//g' -e 's/nt_//g' $HOME/test/Forecast

#Forecast feature: Moon_Sun
sed -n '/"moon_phase": {/,/"sun_phase": {/p' $HOME/test/raw_data > $HOME/test/Moon_Sun
sed -i 's/^[ \t]*"//g' $HOME/test/Moon_Sun
sed -i '/moon_phase\|^[ \t]*},$\|sun_phase\|^[ \t]*}$/d' $HOME/test/Moon_Sun
sed -i -e 's/":"/\n/g' -e 's/".*$//g' $HOME/test/Moon_Sun

#Forecast feature: Simple Forecast
sed -n '/"simpleforecast": {/,/"hourly_forecast": \[/p' $HOME/test/raw_data > $HOME/test/Simple_Forecast
sed -i 's/^[ \t]*"//g' $HOME/test/Simple_Forecast
sed -i '/hourly_forecast\|simpleforecast\|forecastday\|{"date"\|period\|icon_url\|^[ \t]*},$\|^[ \t]*}$\|^[ \t]*,$\|^[ \t]*\]$/d' $HOME/test/Simple_Forecast
sed -i -e 's/":"/\n/g' -e 's/":/\n/g' -e 's/",$//g' -e 's/,$//g' -e 's/"$//g' $HOME/test//Simple_Forecast
sed -i '/^[ \t]*{/d' $HOME/test/Simple_Forecast
sed -i -e 's/^[ \t]*"//g' -e 's/^[ \t]*//g' $HOME/test/Simple_Forecast
for (( i=2; i<=146; i+=16 ))
    do
        cp $HOME/test/Forecast_Images/$(wun_icon_to_png day $(sed -n ${i}p $HOME/test/Forecast)).png $HOME/test/d$(( 1+(i-2)/16 )).png
        j=$(( i+8 ))
        cp $HOME/test/Forecast_Images/$(wun_icon_to_png night $(sed -n ${j}p $HOME/test/Forecast)).png $HOME/test//n$(( 1+(i-2)/16 )).png
    done
    
    sed -n '/"hourly_forecast": \[/,/"moon_phase": {/p' $HOME/test/raw_data > $HOME/test/Hourly
sed -i -e 's/^[ \t]*"//g' -e 's/^[ \t]*//g' $HOME/test/Hourly
sed -i '/hourly_forecast\|FCTTIME\|^{$\|^},$\|^}$\|^,$\|^]$\|moon_phase/d' $HOME/test/Hourly
sed -i -e 's/": /\n/g' -e 's/","/\n/g' -e 's/", "/\n/g' $HOME/test/Hourly
sed -i -e 's/^""//g' -e 's/^"//g' -e 's/^{"//g' -e 's/"},$//g' -e 's/",$//g' $HOME/test/Hourly 
sed -i -e 's/^},//g' -e 's/"}$//g' -e 's/^,//g' $HOME/test/Hourly
sed -i -e 's/^icon_url.*\/c\/k\///g' -e '/gif/s/_.*$//g' $HOME/test/Hourly
sed -i -e '/min_unpadded\|UTCDATE/,+1d' $HOME/test/Hourly
for (( i=64; i<=4212; i+=117 ))
    do
		j=$(( i+1 ))
		day_or_night=$(sed -n ${j}p $HOME/test/Hourly)
		if [[ $day_or_night == nt ]]; then
			cp $HOME/test/Forecast_Images/$(wun_icon_to_png night $(sed -n ${i}p $HOME/test/Hourly)).png $HOME/test/h$(( 1+(i-64)/117 )).png
		else 
			cp $HOME/test/Forecast_Images/$(wun_icon_to_png day $(sed -n ${i}p $HOME/test/Hourly)).png $HOME/test/h$(( 1+(i-64)/117 )).png
		fi
    done
    

And the conky:

conky.config = {
background = false,
use_xft = true,
font = 'DejaVuSansMono:size=8',
update_interval = 1800.0,
total_run_times = 0,
own_window = true,
own_window_type = 'dock',
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 = 190,
minimum_height = 283,
gap_x = 130,
gap_y = 85,
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',
}

conky.text = [[
${exec bash $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/3b}\
${goto 50}${font DejaVuSansMono:bold:size=8}${color2}Actuel${color1}${font} ${font DejaVuSansMono:bold:size=8}${goto 140}${color1}${exec sed -n '67p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}°${font}
${color1}${goto 50}${exec sed -n '63p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Now.png -p -1,0 -s 53x32}
${goto 50}${font DejaVuSansMono:bold:size=8}${color2}Aujourd'hui${font}${color1} ${color2}${goto 140}${exec sed -n '44p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '39p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d1.png -p -1,35 -s 53x32} ${goto 50}${exec sed -n '46p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}

${goto 50}${font DejaVuSansMono:bold:size=8}${color2}${execi 3600 date --date="1 day" | awk '{print $1""$3}' | tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '150p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '145p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '152p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d2.png -p -1,72 -s 53x32}
${color2}${goto 50}${execi 3600 date -d +2days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '256p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '251p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '258p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d3.png -p -1,112 -s 53x32}
${color2}${goto 50}${execi 3600 date -d +3days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '362p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '357p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '364p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast} 
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d4.png -p -1,152 -s 53x32}
${goto 50}${color2}${execi 3600 date -d +4days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '468p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '463p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '470p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d5.png -p -1,192 -s 53x32}
${goto 50}${color2}${execi 3600 date -d +5days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '574p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '569p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '576p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d6.png -p -1,232 -s 53x32}
${color2}${goto 50}${execi 3600 date -d +6days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '680p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '675p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '682p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d7.png -p -1,272 -s 53x32}
${color2}${goto 50}${execi 3600 date -d +7days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '786p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '781p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '788p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d8.png -p -1,312 -s 53x32}

${alignc}${color2}${font DejaVuSansMono:bold:size=10}${exec sed -n '3p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}${font}

${color2}Humidité${alignr}${color1}${exec sed -n '69p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}
${color2}Pression${alignr}${color1}${exec sed -n '85p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions} hPa
${color2}Vent${alignr}${color1}${exec sed -n '81p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions} km/h${alignr}
${color2}Direction ${alignr}${color1}${exec sed -n '73p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}
]]

The result:
A5g0.jpg

Edit
Additional conky, to complete my conky .

conky-texte:

conky.config = {
background = false,
use_xft = true,
font = 'DejaVuSansMono:size=8',
update_interval = 1800.0,
total_run_times = 0,
own_window = true,
own_window_type = 'dock',
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 = 190,
minimum_height = 283,
gap_x = 120,
gap_y = 505,
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',
}

conky.text = [[
${color2}${alignc}${font DejaVuSansMono:bold:size=10}Tendance${font}
${color1}${goto 13}${exec sed -n '8p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast | tr -s '.' '\n' | sed 's/$/./g'}
${color2}${alignc}${font DejaVuSansMono:bold:size=10}Cette nuit${font}
${color1}${goto 13}${exec sed -n '16p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast | tr -s '.' '\n' | sed 's/$/./g'}
]]

Yon2.jpg

I place this conky under my conky-meteo, because if I integrate the code in my conky-meteo it changes the width of my conky, depending on the length of the sentences.

Last edited by chepioq (2017-03-02 05:31:38)

Offline

#1478 2017-01-16 20:04:52

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

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

Brilliant my friend! Thanks a lot!


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

#1479 2017-01-17 10:55:22

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

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

chepioq wrote:

You must add your language in 3b script, like this :

I thought that was long known.  wink
https://forums.bunsenlabs.org/viewtopic … 5784#p5784

Offline

#1480 2017-01-17 13:08:33

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

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

Touche!


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

#1481 2017-01-18 13:10:10

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

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

Hello

I a little understood how work one interactive conky, here is my clickable 1_accuweather

clear

1484744824.png

details

1484744894.png

week

1484744934.png

alerts

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

Online

#1482 2017-01-18 17:56:06

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

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

I think you need lua for this, so it's out of my league. 
Anyone else?


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

#1483 2017-01-21 16:51:36

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

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

TeoBigusGeekus wrote:

I'll be damned: .conkyrc4 from script #2b works now.
I swear it didn't work last night and today at noon.  hmm

@S11
Thats a great idea S11 and it can come handy in hot and semi hot climates.
I'm putting it on the front page.

Missed this post - somehow I got myself unsubscribed to the thread - HORROR!!!!!!!!!!!

It's a good idea for the north ... but really needed here.  Right now accuweather is reporting 8|11 and wunderground was reporting 10 but has stopped working.    One can feel the difference, when walking in the sun at 23° one thinks it's not so hot, why are my arms 'burning' (literally feels like fire) and when I get home and see a 10/11 I know.

BTW, is it me or is 2b_Wunderground_API down for the count?
None of mine are working.  ???

I'M BACK


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

#1484 2017-01-21 17:26:46

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

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

loutch wrote:

Hello

I a little understood how work one interactive conky, here is my clickable 1_accuweather

Looks interesting. I'm LUA illiterate but can tweak a little.  Good luck with this.


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

#1485 2017-01-21 19:29:24

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

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

What about the 2b?
I have no trouble here. Also compare with mrpeachy's WUN.

Difference is:
WUN uses the data of a weather station with WIND.
2b uses data from a weather station (pws) without WIND data.

2bAPI.th.jpg

Offline

#1486 2017-01-21 20:01:28

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

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

Hmmmmmmmm thanks unklar ... I must have made an OOPS! somewhere then.  Will check.


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

#1487 2017-01-21 20:57:26

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

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

Sector11 wrote:

BTW, is it me or is 2b_Wunderground_API down for the count?
None of mine are working.  ???

The first 3 are working; the 4th doesn't.
I'll investigate tomorrow.


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

#1488 2017-01-21 21:23:06

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

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

Excuse me Teo, I only had the No.3 in my /home

For tomorrow No.4  wink
That is with conky V1.9

Edit:A test with "Teo-Mega", also here I can not find any errors.

3bAPI.th.jpg4bAPI.th.jpg

Last edited by unklar (2017-01-21 22:34:00)

Offline

#1489 2017-01-22 05:59:52

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

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

Additional conky, to complete my conky in post #1478.

conky-texte:

conky.config = {
background = false,
use_xft = true,
font = 'DejaVuSansMono:size=8',
update_interval = 1800.0,
total_run_times = 0,
own_window = true,
own_window_type = 'dock',
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 = 190,
minimum_height = 283,
gap_x = 120,
gap_y = 505,
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',
}

conky.text = [[
${color2}${alignc}${font DejaVuSansMono:bold:size=10}Tendance${font}
${color1}${goto 13}${exec sed -n '8p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast | tr -s '.' '\n' | sed 's/$/./g'}
${color2}${alignc}${font DejaVuSansMono:bold:size=10}Cette nuit${font}
${color1}${goto 13}${exec sed -n '16p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast | tr -s '.' '\n' | sed 's/$/./g'}
]]

Yon2.jpg

I place this conky under my conky-meteo, because if I integrate the code in my conky-meteo it changes the width of my conky, depending on the length of the sentences.

Offline

#1490 2017-01-22 08:03:07

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

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

@chepioq
Can you please edit your initial post so that others can find everything in one post?


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

#1491 2017-01-22 08:31:07

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

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

TeoBigusGeekus wrote:
Sector11 wrote:

BTW, is it me or is 2b_Wunderground_API down for the count?
None of mine are working.  ???

The first 3 are working; the 4th doesn't.
I'll investigate tomorrow.

Right.
The script populates the output files without problem, so it's not a coding error.
All the first conkyrcs run OK, only the 4th one refuses to show up.
Remove some of the output and it worked alright.
So, the problem might be a combination of the large amount of output .conkyrc4  shows, a memory bug (?) perhaps in conky 1.10 and my crappy pc.
Waiting for confirmation from other people with better hardware than mine.


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

#1492 2017-01-22 12:57:36

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

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

TeoBigusGeekus wrote:

@chepioq
Can you please edit your initial post so that others can find everything in one post?

Done.

Offline

#1493 2017-01-22 13:37:57

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

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

Well, I finally found out what the "thermometers" are for in the Accuweather scripts.  Up until today I thought they were 'just there'  - NOPE, they are Warnings - extreme heat or cold (cold I'm guessing)

Check out 30 / 31 Jan  sad

Probably comes into play at:

 22 Jan 17 @ 10:36:40 ~
  $ c2f 35

   35°C  =  95.00°F

but that's a guess.

@ Teo -  Will play with wunderground today.


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

#1494 2017-01-22 14:48:49

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

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

Well, I found a problem right up front:

/media/5/Conky/2b_Wunderground_API/conkyrc1
${execi 600 bash /media/5/2_wunderground_int/wunderground-script}  DUH!!!!
Tested with:
${execi 600 bash /media/5/Conky/2b_Wunderground_API/2b} - works

/media/5/Conky/2b_Wunderground_API/conkyrc2
${execi 600 bash /media/5/Conky/2b_Wunderground_API/2b} - works

/media/5/Conky/2b_Wunderground_API/conkyrc2_SC
${execi 600 bash /media/5/Conky/2b_Wunderground_API/2b} - works

/media/5/Conky/2b_Wunderground_API/conkyrc3
${execi 600 bash /media/5/Conky/2b_Wunderground_API/2b}\ - works

/media/5/Conky/2b_Wunderground_API/conkyrc4 - 36 Hours
${execi 600 bash /media/5/Conky/2b_Wunderground_API/2b-66x40}\ - works

Special to use smaller images:
/media/5/Conky/2b_Wunderground_API/2b-66x40
/media/5/Conky/2b_Wunderground_API/Forecast_Images-66x40

/media/5/Conky/2b_Wunderground_API/conkyrc4_SC
${execi 600 bash /media/5/Conky/2b_Wunderground_API/2b}\ - works

/media/5/Conky/2b_Wunderground_API/conkyrc4_text - had the same as conkyrc1 ops
${execi 600 bash /media/5/Conky/2b_Wunderground_API/2b}\ - works
- was going to be converted to straight text - should do.


I have more but they do not have auto-start-stop scripts.
Still checking ...


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

#1495 2017-01-22 17:18:03

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

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

Definitely not wunderground.  It's ME ops   I don't know what caused my wife's script to stop working, I's run daily and working fine now.  So - me, except for the case of Teo's script that doesn't work.

2017-01-22_140943_Scrot11.th.png<--> 2017-01-22_141116_Scrot11.th.jpg
Two conkys - same thing almost.  I wonder why I did that?


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

#1496 2017-01-22 18:25:25

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

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

with conky1.10  big_smile
screenFetch-2017-01-22.th.png
??

Offline

#1497 2017-01-22 18:49:42

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

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

Yeah, it must be a pc resources thing.
No big deal...


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

#1498 2017-01-22 19:40:31

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

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

^ That's the 36hr one you're talking about, right?


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

#1499 2017-01-22 19:43:07

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

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

Yeah, the huge one.


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

#1500 2017-01-22 20:08:39

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

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

Bummer ... Would it work without images?
Or using the smaller images?

I have one version that does not resize the images ${image} using -s uses CPU resources.

Soooooooooooooooo I resized the images and created a 36 HR one that uses the small images in their natural size:

/media/5/Conky/2b_Wunderground_API/conkyrc4 - 36 Hours
${execi 600 bash /media/5/Conky/2b_Wunderground_API/2b-66x40}\ - works

Special to use smaller images:
/media/5/Conky/2b_Wunderground_API/2b-66x40
/media/5/Conky/2b_Wunderground_API/Forecast_Images-66x40

Looks the same as the other one resizes the 37 images from 250x150 to 66x40: OK, not quite.  smile
${image /media/5/Conky/2b_Wunderground_API/h1.png -p 42,27 -s 41x25}
${image /media/5/Conky/2b_Wunderground_API/h1.png -p 100,105}

Of course the problem is if I run 2 wunderground scripts at the same time one using the 66x40 images - one of them will look like I was drunk when I made it.
2017-01-22_170525_Scrot11.th.png
I've been meaning to put that in a directory by itself so it doesn't mess up the other wunderground scripts.  big_smile


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

Board footer

Powered by FluxBB