You are not logged in.

#981 2016-07-19 00:18:58

frankb
Member
Registered: 2016-07-02
Posts: 25

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

thank you. Ive noticed the weather report change. no rain was forecast then a thunderstorm happened. I guess that's the way it goes.

Last edited by frankb (2016-07-19 00:19:10)

Offline

#982 2016-08-17 05:49:15

vinkler
Member
Registered: 2016-08-17
Posts: 5

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

Hello,
I try to run the script 1b1 and I have a problem.
At my location:

http://www.accuweather.com/pl/pl/kole-kdzierzyn-kole/265161/weather-forecast/265161

does not work:

vinkler@desktop:~$ ~/1b1_accuweather_images/1b1
wget: nie znaleziono żadnego procesu
--2016-08-17 07:41:44--  http://www.accuweather.com/pl/pl/kole-kdzierzyn-kole/265161/current-weather/265161
Translacja www.accuweather.com (www.accuweather.com)... 23.61.248.98, 23.61.248.96
Łączenie się z www.accuweather.com (www.accuweather.com)|23.61.248.98|:80... połączono.
Żądanie HTTP wysłano, oczekiwanie na odpowiedź... 200 OK
Długość: nieznana [text/html]
Zapis do: `/home/vinkler/1b1_accuweather_images/curr_cond_raw'

/home/vinkler/1b1_accuweather_im     [ <=>                                                    ]  85,96K  --.-KB/s    in 0,02s   

2016-08-17 07:41:45 (4,42 MB/s) - zapisano `/home/vinkler/1b1_accuweather_images/curr_cond_raw' [88026]

--2016-08-17 07:41:45--  http://www.accuweather.com/pl/pl/kole-kdzierzyn-kole/265161/daily-weather-forecast/265161
Translacja www.accuweather.com (www.accuweather.com)... 23.61.248.98, 23.61.248.96
Łączenie się z www.accuweather.com (www.accuweather.com)|23.61.248.98|:80... połączono.
Żądanie HTTP wysłano, oczekiwanie na odpowiedź... 200 OK
Długość: nieznana [text/html]
Zapis do: `/home/vinkler/1b1_accuweather_images/first_days_raw'

/home/vinkler/1b1_accuweather_im     [ <=>                                                    ]  87,19K  --.-KB/s    in 0,02s   

2016-08-17 07:41:45 (4,74 MB/s) - zapisano `/home/vinkler/1b1_accuweather_images/first_days_raw' [89286]

--2016-08-17 07:41:45--  http://www.accuweather.com/pl/pl/kole-kdzierzyn-kole/265161/daily-weather-forecast/265161?day=6
Translacja www.accuweather.com (www.accuweather.com)... 23.61.248.98, 23.61.248.96
Łączenie się z www.accuweather.com (www.accuweather.com)|23.61.248.98|:80... połączono.
Żądanie HTTP wysłano, oczekiwanie na odpowiedź... 200 OK
Długość: nieznana [text/html]
Zapis do: `/home/vinkler/1b1_accuweather_images/last_days_raw'

/home/vinkler/1b1_accuweather_im     [ <=>                                                    ]  86,96K  --.-KB/s    in 0,02s   

2016-08-17 07:41:45 (4,44 MB/s) - zapisano `/home/vinkler/1b1_accuweather_images/last_days_raw' [89051]

sed: -e wyrażenie #1, znak 3: oczekiwano znaku \ po `a', `c' lub `i'
cp: nie można wykonać stat na '/home/vinkler/1b1_accuweather_images/Forecast_Images/.png': Nie ma takiego pliku ani katalogu
cp: cel '/home/vinkler/1b1_accuweather_images/11.png' nie jest katalogiem
cp: nie można wykonać stat na '/home/vinkler/1b1_accuweather_images/Forecast_Images/9.png': Nie ma takiego pliku ani katalogu
cp: nie można wykonać stat na '/home/vinkler/1b1_accuweather_images/Forecast_Images/.png': Nie ma takiego pliku ani katalogu
cp: nie można wykonać stat na '/home/vinkler/1b1_accuweather_images/Forecast_Images/.png': Nie ma takiego pliku ani katalogu
cp: cel '/home/vinkler/1b1_accuweather_images/last_2.png' nie jest katalogiem
cp: nie można wykonać stat na '/home/vinkler/1b1_accuweather_images/Forecast_Images/28.png': Nie ma takiego pliku ani katalogu
cp: nie można wykonać stat na '/home/vinkler/1b1_accuweather_images/Forecast_Images/.png': Nie ma takiego pliku ani katalogu

Can you ask for a suggestion of how to solve the problem?

Offline

#983 2016-08-17 05:53:06

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

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

Sorry vinkler, but all the script works only with english.
Try again using the following address:

http://www.accuweather.com/en/pl/kole-kdzierzyn-kole/265161/current-weather/265161

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

#984 2016-08-17 07:07:04

vinkler
Member
Registered: 2016-08-17
Posts: 5

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

It works!

1b1.png

Thanks. smile

Offline

#985 2016-08-17 14:44:24

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

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

HEY!  I know that conky  smile

Dzień Dobry vinkler, Witamy BunsenLabs

I still use the full version of it on Desktop3 with a minor tweak to relocate "the clock"
2016_08_17_11_27_50_Scrot11.jpg

But I notice the you have "The Southern Moon" in there.  Poland is in the northern hemisphere so you need to change that to "The Northern Moon" - or "Na północy Księżyc" or "północ księżyca", google sucks at times, and change the moon script to use the north hemisphere moon.

somewhere around line 46-47 change south to north  :

#put your hemisphere here: north or south
hemisphere=south

The conky only - you'll need the weather and moon scripts

# pkill -xf "conky -q -c /media/5/Conky/The_Clock_3-9day_2.conky" &
# Working: Wed 17 Aug 2016 11:51:09
## ---------- Begin Window Settings

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager,undecorated,below #,sticky
own_window_colour 000000
own_window_class Conky
own_window_title The Clock 3 9day 2
# ARGB can be used for real transparency
#  own_window_argb_visual yes ## Options: yes or no
# Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#  own_window_argb_value 70

minimum_size 200 700
maximum_width 200

gap_x 10	## l|r
gap_y 10	## u|d
alignment tr
## ---------- End Window Settings
## ---------- Font Settings
## Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Fantasque Sans Mono:bold:size=11

## Alpha of Xft font. Must be a value at or between 1 and 0
xftalpha 1.0

## Force UTF8? requires XFT
override_utf8_locale yes

## --------- End Font Settings
## --------- Color Settings
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color f5fffa ## MintCream
color1 778899 ## LightSlateGray
color2 FFA07A ## LightSalmon
color3 87CEFA ## LightSkyBlue
color4 48D1CC ## MediumTurquoise
color5 FFDEAD ## NavajoWhite
color6 00BFFF ## DeepSkyBlue
color7 B0E0E6 ## PowderBlue
color8 FFD700 ## Gold
color9 CD5C5C ## IndianRed
## ---------- End Color Settings
## ---------- Begin Borders Section
draw_borders no
## Stippled borders?
stippled_borders 5
## border margins
border_inner_margin 5
border_outer_margin 0
## border width
border_width 2
## graph borders
draw_graph_borders yes ## no
## default_graph_size 15 40
## ---------- End Borders Secton
## ---------- Begin Miscellaneous Section
## Boolean value, if true, Conky will be forked to background when started.
background yes ## yes
imlib_cache_size 0

## Adds spaces around certain objects to stop them from moving other things
## around, this only helps if you are using a mono font
## Options: right, left or none
use_spacer none

## Subtract (file slystem) buffers from used memory?
no_buffers yes

## Use the Xdbe extension? (eliminates flicker)
## It is highly reco${color}mmended to use own window with this one
## so double buffer won't be so big.
double_buffer yes

update_interval 1

TEXT
${execi 900 bash /media/5/Conky/1b1_accuweather_images/1b1}\
${execi 900 bash /media/5/Conky/4_Moon/moon}\
${image /media/5/Conky/4_Moon/0.png -p 8,80}\
${image /media/5/Conky/1b1_accuweather_images/cc.png -p 7,115 -s 200x120}\
${font LED_mono:size=30}${goto 30}${color1}88:88:88${goto 30}${color5}${time %T}${color}${font}
${alignc}${time %a %d %b %Y}
${alignc}${if_match ${time %H}<12}Good Morning${else}\
${if_match ${time %H}<18}Good Afternoon${else}Good Evening${endif}${endif}
${font monofur:bold:size=16}${color8}±${execpi 600 sed -n '30p' /media/5/Conky/1b1_accuweather_images/curr_cond}°\
${alignr}${color}${execpi 600 sed -n '29p' /media/5/Conky/1b1_accuweather_images/curr_cond}°${font}







High${alignr}Low
${font monofur:bold:size=16}${color2}↑${execpi 600 sed -n '26p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${alignr}${color6}↓${execpi 600 sed -n '31p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}${font}
Bar ${execpi 600 sed -n '33p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 150}Cld${alignr}${execi 90 sed -n '36p' /media/5/Conky/1b1_accuweather_images/curr_cond}
UVI ${execpi 600 sed -n '34p' /media/5/Conky/1b1_accuweather_images/curr_cond} /11\
${goto 150}Hum${alignr}${execpi 600 sed -n '32p' /media/5/Conky/1b1_accuweather_images/curr_cond}
DP  ${execi 90 sed -n '35p' /media/5/Conky/1b1_accuweather_images/curr_cond}°\
${alignr}Vis ${execi 90 sed -n '37p' /media/5/Conky/1b1_accuweather_images/curr_cond}
${alignc}Wind ${execi 90 sed -n '31p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
 @ ${execi 90 sed -n '38p' /media/5/Conky/1b1_accuweather_images/curr_cond}
${alignc}${color5}${membar 0,15} Buenos Aires Sun ${membar 0,15}${color}
Rise${color7} ${execpi 600 sed -n '39p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${alignr}${color5}Set ${color7}${execpi 600 sed -n '40p' /media/5/Conky/1b1_accuweather_images/curr_cond}${color}
${alignc}${color5}${membar 0,15} The Southern Moon ${membar 0,15}${color}
Rise${color7} ${execpi 600 sed -n '41p' /media/5/Conky/1b1_accuweather_images/curr_cond}${color}\
${alignr}${color5}Set ${color7}${execpi 600 sed -n '42p' /media/5/Conky/1b1_accuweather_images/curr_cond}${color}
${alignc}${execpi 600 sed -n '7p' /media/5/Conky/4_Moon/raw}
${alignc}${execpi 600 sed -n '1p' /media/5/Conky/4_Moon/raw} visible @ ${execi 600 sed -n '6p' /media/5/Conky/4_Moon/raw}°
${alignc}and ${execi 600 sed -n '5p' /media/5/Conky/4_Moon/raw} day(s) old${font}
${alignc}${color5}${membar 0,15} NINE DAY FORECAST ${membar 0,15}${color}
${alignc}Tomorrow: ${execi 43200 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}
${image /media/5/Conky/1b1_accuweather_images/6.png -p 73,423 -s 80x48}\
${font Fantasque Sans Mono:bold:size=20}${goto 20}${color2}${execi 90 sed -n '8p' /media/5/Conky/1b1_accuweather_images/first_days}°
${alignr}${color7}${execi 90 sed -n '9p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}${font}
  ${execi 43200 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
${alignr 10}${execi 43200 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}
${image /media/5/Conky/1b1_accuweather_images/6.png -p 22,490 -s 80x48}\
${image /media/5/Conky/1b1_accuweather_images/11.png -p 129,490 -s 80x48}\
${goto 11}${color2}${execi 90 sed -n '13p' /media/5/Conky/1b1_accuweather_images/first_days}°\
  ${goto 118}${execi 90 sed -n '18p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}

${goto 11}${color7}${execi 90 sed -n '14p' /media/5/Conky/1b1_accuweather_images/first_days}°\
  ${goto 118}${execi 90 sed -n '19p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}
  ${execi 43200 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}\
${alignr 10}${execi 43200 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}
${image /media/5/Conky/1b1_accuweather_images/16.png -p 22,550 -s 80x48}\
${image /media/5/Conky/1b1_accuweather_images/21.png -p 129,550 -s 80x48}\
${goto 11}${color2}${execi 90 sed -n '23p' /media/5/Conky/1b1_accuweather_images/first_days}°\
  ${goto 118}${execi 90 sed -n '4p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}

${goto 11}${color7}${execi 90 sed -n '24p' /media/5/Conky/1b1_accuweather_images/first_days}°\
 ${goto 118}${execi 90 sed -n '5p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}
  ${execi 43200 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}\
${alignr 10}${execi 43200 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}
${image /media/5/Conky/1b1_accuweather_images/last_2.png -p 22,610 -s 80x48}\
${image /media/5/Conky/1b1_accuweather_images/last_7.png -p 129,610 -s 80x48}\
${goto 11}${color2}${execi 90 sed -n '9p' /media/5/Conky/1b1_accuweather_images/last_days}°\
  ${goto 118}${execi 90 sed -n '14p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}

${goto 11}${color7}${execi 90 sed -n '10p' /media/5/Conky/1b1_accuweather_images/last_days}°\
  ${goto 118}${execi 90 sed -n '15p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}
  ${execi 43200 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}\
${alignr 10}${execi 43200 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}
${image /media/5/Conky/1b1_accuweather_images/last_12.png -p 22,670 -s 80x48}\
${image /media/5/Conky/1b1_accuweather_images/last_17.png -p 129,670 -s 80x48}\
${goto 11}${color2}${execi 90 sed -n '19p' /media/5/Conky/1b1_accuweather_images/last_days}°\
  ${goto 118}${execi 90 sed -n '24p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}

${goto 11}${color7}${execi 90 sed -n '20p' /media/5/Conky/1b1_accuweather_images/last_days}°\
  ${goto 118}${execi 90 sed -n '25p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#986 2016-08-18 06:01:14

vinkler
Member
Registered: 2016-08-17
Posts: 5

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

Thank you for the hints and suggestions, but I have another problem.
Well conky stops (stops the clock, conky is not responsible) during the update script 1b1 and moon_MoonGiant.

conky-Stop.png

Is there a solution?

Offline

#987 2016-08-18 13:02:02

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

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

Yes that's normal.  ALL of Teo's scripts stop "conky" while updating then start them again when done.

What's not right is the amount of time it looks like it has stopped - 12 minutes is a long time.

To stop that: near the beginning of each script (1b1 and moon) there are two lines you can comment out:

#kill -STOP $(pidof conky)
#killall wget

and at the end of each script there is one line to comment out.

#kill -CONT $(pidof conky)

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#988 2016-08-19 15:10:08

vinkler
Member
Registered: 2016-08-17
Posts: 5

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

Unfortunately, with me in one configuration file, execute the two scripts (moon and 1b1) stops conky.
The resulting two configuration files, in addition to my old local scripts and the effect looks like.

2016_08_19.png

Offline

#989 2016-08-19 16:04:23

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

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

@ Vinkler
Can you please post the conky along with your 1b1 and moon scripts it uses.
Or if there are more scripts post everything that created that image  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#990 2016-08-19 18:38:08

vinkler
Member
Registered: 2016-08-17
Posts: 5

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

My configuration is a mix of 4 scripts.
1. 1b1
2. 4_moon
3. weather service for my town --> http://portal.kedzierzynkozle.pl/pogoda/
4. duration of the day

and two configuration files conky
1. weather
2. moon

weather service for my town

#!/bin/bash

LICZNIK=0
while [ $LICZNIK -lt 8000000000 ]
do

     w3m http://portal.kedzierzynkozle.pl/pogoda |head -n21 > /home/vinkler/conky/pogoda/pogoda1.tmp
if [ -s /home/vinkler/conky/pogoda/pogoda1.tmp ]
then
    # transfer się udał, nadpisz plik
    rm /home/vinkler/conky/pogoda/pogoda1
    mv /home/vinkler/conky/pogoda/pogoda1.tmp /home/vinkler/conky/pogoda/pogoda1
fi
 sleep 300
 LICZNIK=$((LICZNIK+1))
done

duration of the day

#!/bin/bash
wschod=`grep -w "Wschód słońca" "$HOME"/conky/pogoda/pogoda1|awk '{printf $3}'`
zachod=`grep -w "Zachód słońca" "$HOME"/conky/pogoda/pogoda1|awk '{printf $3}'`

w1=`date --date="$wschod" +"%s"`
z1=`date --date="$zachod" +"%s"`

roznica=$(( z1 - w1 ))
godz=$(( roznica / 3600 ))
min=$(( roznica % 3600 / 60 ))
echo -n "${godz}h${min}min"
let roznica-=28860 # (8 * 60 + 1) * 60 = 28860
godz=$(( roznica / 3600 ))
min=$(( roznica % 3600 / 60 ))
echo -n " + "
if [ $godz != 0 ]
then
    echo -n "${godz}h"
fi
echo "${min}min"

conkyrc_weather

conky.config = {
        own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'skip_taskbar,skip_pager,undecorated,below,sticky',
        -- own_window_argb_visual = true,
        -- own_window_argb_value = 100,
	--own_window_colour = '#000000',
	--own_window_class = 'Conky',
	--own_window_title = 'The Clock 2',
	minimum_width = 200, 
	maximum_width = 200,
        minimum_height = 400,
	gap_x = 25,--# l|r
	gap_y = 10,--# u|d
	alignment = 'top_right',
        use_xft = true,
	-- font = 'Fantasque Sans Mono:bold:size=11',
        -- font = 'Fantasque Sans Mono:size=11',
	-- font = 'Monospace:bold:size=10',
        font = 'Mono:size=10',
        xftalpha = 1.0,
	override_utf8_locale = true,
	draw_shades = false,
	-- default_shade_color = '#000000',
	draw_outline = false,
	-- default_outline_color = '#000000',
	default_color = '#f5fffa',--# MintCream
	color1 = '#778899',--# LightSlateGray
	color2 = '#FFA07A',--# LightSalmon
	color3 = '#87CEFA',--# LightSkyBlue
	color4 = '#48D1CC',--# MediumTurquoise
	color5 = '#FFDEAD',--# NavajoWhite
	color6 = '#00BFFF',--# DeepSkyBlue
	color7 = '#B0E0E6',--# PowderBlue
	color8 = '#FFD700',--# Gold
	color9 = '#CD5C5C',--# IndianRed
	-- draw_borders = false,
	-- stippled_borders = 5,
	border_inner_margin = 5,
	border_outer_margin = 0,
	border_width = 2,
	draw_graph_borders = true,--# no
	-- background = false,--# yes
	use_spacer = 'none',
	no_buffers = true,
	double_buffer = true,
	update_interval = 1,


};

conky.text = [[
${execi 900 bash $HOME/1b1_accuweather_images/1b1}\
${image $HOME/1b1_accuweather_images/cc.png -p 7,25 -s 200x120}\
${alignc}${time %a %d %b %Y}
${alignc}${if_match ${time %H}<12}Dzień Dobry!${else}\
${if_match ${time %H}<18}Witaj po południu!${else}Dobry Wieczór!${endif}${endif}
${font monofur:bold:size=16}${color2}↑${execpi 600 sed -n '26p' $HOME/1b1_accuweather_images/first_days}°\
${alignr}${color6}↓${execpi 600 sed -n '31p' $HOME/1b1_accuweather_images/first_days}°${color}${font}




${voffset 8}${alignr}${font Georgia:size=28}${color5}${execi 30 cat /home/vinkler/conky/pogoda/pogoda1 |awk '{if(NR==15){print $3}}'}°C${font}

${goto 35}Max${goto 150}Min
${font monofur:bold:size=16}${color2}↑${execi 60 cat /home/vinkler/conky/pogoda/pogoda1 |awk '{if(NR==21){print $2}}'}°C\
${alignr}${color6}↓${execi 60 cat /home/vinkler/conky/pogoda/pogoda1 |awk '{if(NR==20){print $2}}'}°C${color}
${voffset -8}${goto 22}${font Mono:size=10}${execi 60 cat /home/vinkler/conky/pogoda/pogoda1 |awk '{if(NR==21){print $6}}'}\
${goto 150}${execi 60 cat /home/vinkler/conky/pogoda/pogoda1 |awk '{if(NR==20){print $6}}'}${font}
${voffset 8}${alignc}${color5}${membar 0,26} K-Koźle Słońce ${membar 0,26}${color}
${color5}Wschód ${color7}${execi 30 cat /home/vinkler/conky/pogoda/pogoda1 |awk '{if(NR==11){print $3}}'}\
${alignr}${color5}Zachód ${color7}${execi 30 cat /home/vinkler/conky/pogoda/pogoda1 |awk '{if(NR==9){print $3}}'}${color}
${alignc}${color5}${membar 0,35} Długość dnia ${membar 0,35}${color}
${alignc}${color7} ${execi 3600 /home/vinkler/conky/pogoda/dd.sh}${color}
${alignc}${color5}${membar 0,15} Prognoza na jutro ${membar 0,15}${color}
${alignc}${execi 43200 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}
${image $HOME/1b1_accuweather_images/6.png -p 73,323 -s 80x48}\
${font Fantasque Sans Mono:bold:size=20}${goto 20}${color2}${execi 90 sed -n '8p' $HOME/1b1_accuweather_images/first_days}°C
${alignr}${color7}${execi 90 sed -n '9p' $HOME/1b1_accuweather_images/first_days}°C${color}${font}
${voffset 0}${alignc}${color5}${membar 0,15} Aktualizacja ${membar 0,15}${color}
${alignc}${voffset -00}${font Monaco:size=8}20${execi 120 cat /home/vinkler/conky/pogoda/pogoda1 |awk '{if(NR==3){print $3}}' |sed -e 's/-/./g'}\
${offset 10}${execi 120 cat /home/vinkler/conky/pogoda/pogoda1 |awk '{if(NR==7){print $5}}'}
${stippled_hr 5 1}
]]

conkyrc_moon

conky.config = {
        own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'skip_taskbar,skip_pager,undecorated,below,sticky',
        -- own_window_argb_visual = true,
        -- own_window_argb_value = 100,
	--own_window_colour = '#000000',
	--own_window_class = 'Conky',
	--own_window_title = 'The Clock 2',
	minimum_width = 200, 
	maximum_width = 200,
        minimum_height = 100,
	gap_x = 25,--# l|r
	gap_y = 453,--# u|d
	alignment = 'top_right',
        use_xft = true,
	-- font = 'Fantasque Sans Mono:bold:size=11',
        -- font = 'Fantasque Sans Mono:size=11',
	-- font = 'Monospace:bold:size=10',
        font = 'Mono:size=10',
        xftalpha = 1.0,
	override_utf8_locale = true,
	draw_shades = false,
	-- default_shade_color = '#000000',
	draw_outline = false,
	-- default_outline_color = '#000000',
	default_color = '#f5fffa',--# MintCream
	color1 = '#778899',--# LightSlateGray
	color2 = '#FFA07A',--# LightSalmon
	color3 = '#87CEFA',--# LightSkyBlue
	color4 = '#48D1CC',--# MediumTurquoise
	color5 = '#FFDEAD',--# NavajoWhite
	color6 = '#00BFFF',--# DeepSkyBlue
	color7 = '#B0E0E6',--# PowderBlue
	color8 = '#FFD700',--# Gold
	color9 = '#CD5C5C',--# IndianRed
	-- draw_borders = false,
	-- stippled_borders = 5,
	border_inner_margin = 5,
	border_outer_margin = 0,
	border_width = 2,
	draw_graph_borders = true,--# no
	-- background = false,--# yes
	use_spacer = 'none',
	no_buffers = true,
	double_buffer = true,
	update_interval = 1,


};

conky.text = [[
${execi 900 bash $HOME/4_Moon/moon_MoonGiant}
${image /home/vinkler/4_Moon/0.png -p 5,5 -s 60x60}
${voffset -20}${font monofur:bold:size=16}${color2}${goto 80}${execpi 600 sed -n '1p' /home/vinkler/4_Moon/raw}${font}
${goto 90}${color5}${membar 0,15} Faza ${membar 0,15}${color}
${goto 80}${font Mono:size=8}${execpi 600 sed -n '7p' /home/vinkler/4_Moon/raw |sed -e 's/Waxing Gibbous/Księżyc Rośnie/' |sed -e 's/Full Moon/Pełnia/' |sed -e 's/Waning Gibbous/Księżyc Maleje/'}
]];

Offline

#991 2016-08-19 21:24:06

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

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

Near the top of these two scripts:

$HOME/1b1_accuweather_images/1b1
$HOME/4_Moon/moon_MoonGiant

Change:

kill -STOP $(pidof conky)
killall wget

to

#kill -STOP $(pidof conky)
#killall wget

and near the end of them both, change:

kill -CONT $(pidof conky)

to

#kill -CONT $(pidof conky)

That will stop conky from stopping while updating.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#992 2016-09-06 18:39:03

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

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

Good afternoon Teo ... and all you weather fans ...

It looks like accuweather has changed the way they do things:
2016_09_06_15_34_14_Scrot11.jpg2016_09_06_15_35_11_Scrot11.jpg2016_09_06_15_35_00_Scrot11.jpg

On a good note the Moon script and Wunderground are still working.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#993 2016-09-06 18:44:39

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

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

Indeed they have.
It's been about two and a half years since their last change, so I guess they deserve it smile

A visit to the Accuweather page confirms the change.

I'll start working immediately, stay tuned.


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

#994 2016-09-06 22:12:11

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'll probably merge 1a and 1b.
I'm thinking about merging 1c with them.
1d will remain independent though...


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

#995 2016-09-07 07:16:03

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

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

Hello

Theo thank you for this piece of news I exactly wanted to ask why my 1b1_accuweather_images did not work any more this morning.

Thank you again for all the work which you makes and see you soon for the new 1c or 1d

@+

Last edited by loutch (2016-09-07 07:16:49)


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

#996 2016-09-07 08:33:30

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 262

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

Hello friends .... may the force be with you ..... I confirm what said by Teo Sector11 ...... not bad the idea of merging the scripts .... mmmm .... Sector11 Ready for new conky .... we see TEO pulling out of his magic hat .....

by Luke    tongue  tongue

@TEO Check out this site  http://www.calendrier-lunaire.net/ for the lunar phases that do you think? I am in French do not think you can pull out the of malicious and even some scripts for our conky ..... see you soon friend

Last edited by fvirgola80 (2016-09-07 08:37:19)


Nothing happens by chance

Offline

#997 2016-09-07 12:06:21

Fortran
Member
Registered: 2016-09-07
Posts: 7

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

I knew I should have gone to the end of the thread. My 1b2 and 1c failed as well, but I started the "Well, I haven't updated my scripts in a while, so..." process and by the end I was wondering what I was failing at.

Glad to know Teo is on the case.

Offline

#998 2016-09-07 17:25:20

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

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

TeoBigusGeekus wrote:

I'll probably merge 1a and 1b.
I'm thinking about merging 1c with them.
1d will remain independent though...

Awesome idea.  Since the info all comes from the same place.

Accuweather - One Script to Rule Them All except RSS  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#999 2016-09-07 17:31:07

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

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

Fortran wrote:

I knew I should have gone to the end of the thread. My 1b2 and 1c failed as well, but I started the "Well, I haven't updated my scripts in a while, so..." process and by the end I was wondering what I was failing at.

Glad to know Teo is on the case.

Trial and Error.

Now that you know the Error you don't need to do the Trial anymore

If you subscribe the thread you'll get notifications in your email.
Help keep Teo on his toes. I did not say that I did not, someone hi-jacked my keyboard.  ]:D


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1000 2016-09-07 17:32:16

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

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

@Teo - Looking forward to doing a 'conky-companion' for the new script. wink


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB