You are not logged in.

#2561 2019-08-23 21:25:42

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

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

for people are a little bit east side... :
wu_conkyrc:

conky.config = {
	background = true,  --true si transparent
	use_xft = true,
	font = 'Liberation Sans:size=7',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = false,  
    own_window_argb_visual = true,
    own_window_argb_value = 50,     -- 0 transparent 255 plein
	own_window_type = 'normal',
	--sticky,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,',
	double_buffer = true,
	minimum_width = 400, minimum_height = 920,
		--maximum_height = 920,
        --maximum_width = 400,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 50,
	gap_y = 50,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
        imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,
	stippled_borders = 5,
        default_shade_color = '#333333',
	default_outline_color = 'black',

lua_load = '~/.conky/script/image.lua',


color1 = 'F5B800',
color2 = '00f5ff',
color3 = '828200',
color4 = '323200',
color5 = 'fdb72e',
};

conky.text = [[
${execi 1200 $HOME/.conky/ConkySatMap/02-satir.sh}\
${lua fDrawImage $HOME/.conky/ConkySatMap/satir-1.png 0 510 400 400}\
${color5}${font Arial:size=11}WEATHER ${color5}${hr 1}$color${texeci 3600 bash $HOME/2_Wunderground/2_wun}${font}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/current.png 30 30 75 75}${font Arial:size=11}${goto 180}${execpi 600 sed -n '88p' $HOME/2_Wunderground/curr_cond|cut -c1-20}
${goto 180}${execpi 600 sed -n '88p' $HOME/2_Wunderground/curr_cond|cut -c21-40}
${font Arial:size=20}${goto 180}${execpi 600 sed -n '52p' $HOME/2_Wunderground/curr_cond}° (${execpi 600 sed -n '58p' $HOME/2_Wunderground/curr_cond}°)${font}
${font Arial:size=8}
${goto 290}${execpi 600 sed -n '1p' $HOME/2_Wunderground/moon_data}${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/Moon_phase.png 310 50 40 40}
${color5}Wind: $color              ${goto 110}${execpi 600 sed -n '82p' $HOME/2_Wunderground/curr_cond} ${execpi 600 sed -n '86p' $HOME/2_Wunderground/curr_cond}km/h ${goto 200}${color5}Pression:               $color${alignr}${execpi 600 sed -n '30p' $HOME/2_Wunderground/curr_cond}hPa
${color5}Visibility: $color        ${goto 110}${execpi 600 sed -n '78p' $HOME/2_Wunderground/curr_cond} km                                                            ${goto 200}${color5}Humidity:               $color${alignr}${execpi 600 sed -n '36p' $HOME/2_Wunderground/curr_cond} %
${color5}UV Index: $color          ${goto 110}${execpi 600 sed -n '72p' $HOME/2_Wunderground/curr_cond}                                                               ${goto 200}${color5}Prec. (6h):    $color${alignr}${execpi 600 sed -n '22p' $HOME/2_Wunderground/curr_cond} mm
${color5}Sunrise: $color   ${goto 110}${execpi 600 sed -n '44p' $HOME/2_Wunderground/curr_cond|cut -c1-5}                                                     ${goto 200}${color5}Moonrise:           $color${alignr}${execpi 600 sed -n '2p' $HOME/2_Wunderground/moon_data|cut -c1-5}
${color5}Sunset: $color ${goto 110}${execpi 600 sed -n '48p' $HOME/2_Wunderground/curr_cond|cut -c1-5}                                                     ${goto 200}${color5}Moonset: $color${alignr}${execpi 600 sed -n '3p' $HOME/2_Wunderground/moon_data|cut -c1-5}
${color5}${hr 1}
##--bloc heures##
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h2.png 20 210 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h4.png 90 210 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h6.png 160 210 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h8.png 230 210 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h10.png 300 210 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h10.png 370 210 30 30}\
##-fin-bloc heures#
${goto 6}${execpi 600 echo `date --date "2 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 90}${execpi 600 echo `date --date "4 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 160}${execpi 600 echo `date --date "6 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 230}${execpi 600 echo `date --date "8 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 300}${execpi 600 echo `date --date "10 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 370}${execpi 600 echo `date --date "12 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${voffset 15}${color8}${goto 6}${execpi 600  sed -n '153p' $HOME/2_Wunderground/hourly}°\
${goto 90}${execpi 600  sed -n '226p' $HOME/2_Wunderground/hourly}°\
${goto 160}${execpi 600  sed -n '372p' $HOME/2_Wunderground/hourly}°\
${goto 230}${execpi 600  sed -n '518p' $HOME/2_Wunderground/hourly}°\
${goto 300}${execpi 600  sed -n '664p' $HOME/2_Wunderground/hourly}°\
${goto 370}${execpi 600  sed -n '810p' $HOME/2_Wunderground/hourly}°\



${color5}${hr 1}
${if_match "${execpi 600 sed -n '2p' $HOME/2_Wunderground/10days}" == "Tonight"}${font Arial:size=10}${execpi 600 sed -n '2p' $HOME/2_Wunderground/10days|tr a-z A-Z}${goto 210}${execpi 600 sed -n '100p' $HOME/2_Wunderground/10days|tr a-z A-Z}${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/1.png 10 275 40 40}${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/2.png 220 275 40 40}$color$font

${goto 100} ${execpi 600 sed -n '12p' $HOME/2_Wunderground/10days}°${goto 290}${execpi 600 sed -n '110p' $HOME/2_Wunderground/10days}°/${execpi 600 sed -n '208p' $HOME/2_Wunderground/10days}°
${font Arial:size=8}${goto 100}${execpi 600 sed -n '46p' $HOME/2_Wunderground/10days} ${execpi 600 sed -n '42p' $HOME/2_Wunderground/10days}km/h${goto 290}${execpi 600 sed -n '144p' $HOME/2_Wunderground/10days} ${execpi 600 sed -n '140p' $HOME/2_Wunderground/10days}km/h
${goto 100}${execpi 600 sed -n '30p' $HOME/2_Wunderground/10days}${goto 290}${execpi 600 sed -n '128p' $HOME/2_Wunderground/10days}
${color5}${hr 1}
${font Arial:size=8}${color5}${execpi 600 sed -n '296p' $HOME/2_Wunderground/10days|tr a-z A-Z}${goto 150}${execpi 600 sed -n '492p' $HOME/2_Wunderground/10days|tr a-z A-Z}${goto 280}${execpi 600 sed -n '688p' $HOME/2_Wunderground/10days|tr a-z A-Z}${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/4.png 10 350 40 40}${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/6.png 150 350 40 40}${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/8.png 280 350 40 40}$color${font Arial:size=5}

${font Arial:size=8}${goto 70}max ${execpi 600 sed -n '306p' $HOME/2_Wunderground/10days}° ${goto 200}max ${execpi 600 sed -n '502p' $HOME/2_Wunderground/10days}°${goto 330}max ${execpi 600 sed -n '698p' $HOME/2_Wunderground/10days}°
                    ${goto 70}min ${execpi 600 sed -n '404p' $HOME/2_Wunderground/10days}° ${goto 200}min ${execpi 600 sed -n '600p' $HOME/2_Wunderground/10days}°${goto 330}min ${execpi 600 sed -n '796p' $HOME/2_Wunderground/10days}°
                    ${goto 70}${execpi 600 sed -n '324p' $HOME/2_Wunderground/10days}      ${goto 200}${execpi 600 sed -n '520p' $HOME/2_Wunderground/10days}     ${goto 330}${execpi 600 sed -n '716p' $HOME/2_Wunderground/10days}
${font Arial:size=8}${execpi 600 sed -n '320p' $HOME/2_Wunderground/10days}${goto 150}${execpi 600 sed -n '516p' $HOME/2_Wunderground/10days}${goto 280}${execpi 600 sed -n '712p' $HOME/2_Wunderground/10days}
${color5}${hr 1}
${goto 25}${execpi 600 sed -n '884p' $HOME/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}${goto 90}${execpi 600 sed -n '1080p' $HOME/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}${goto 160}${execpi 600 sed -n '1276p' $HOME/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}${goto 230}${execpi 600 sed -n '1472p' $HOME/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}${goto 300}${execpi 600 sed -n '1668p' $HOME/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}${goto 370}${execpi 600 sed -n '1864p' $HOME/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/10.png  20 435 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/12.png  90 435 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/14.png 160 435 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/16.png 230 435 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/18.png 300 435 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/20.png 370 435 30 30}$color
${font Arial:size=8}${execpi 600 sed -n '894p' $HOME/2_Wunderground/10days}°                   ${goto 70}${execpi 600 sed -n '1090p' $HOME/2_Wunderground/10days}°                    ${goto 140}${execpi 600 sed -n '1286p' $HOME/2_Wunderground/10days}°                    ${goto 210}${execpi 600 sed -n '1482p' $HOME/2_Wunderground/10days}°                    ${goto 280}${execpi 600 sed -n '1678p' $HOME/2_Wunderground/10days}°                    ${goto 350}${execpi 600 sed -n '1874p' $HOME/2_Wunderground/10days}°

${voffset 10}${goto 40}${execpi 600 sed -n '992p' $HOME/2_Wunderground/10days}°                ${goto 110}${execpi 600 sed -n '1188p' $HOME/2_Wunderground/10days}°                  ${goto 180}${execpi 600 sed -n '1384p' $HOME/2_Wunderground/10days}°                     ${goto 250}${execpi 600 sed -n '1580p' $HOME/2_Wunderground/10days}°                    ${goto 320}${execpi 600 sed -n '1776p' $HOME/2_Wunderground/10days}°                    ${goto 395}${execpi 600 sed -n '1972p' $HOME/2_Wunderground/10days}°
${else}${color5}${font Arial:size=10}${execpi 600 sed -n '2p' $HOME/2_Wunderground/10days|tr a-z A-Z}${goto 210}${execpi 600 sed -n '100p' $HOME/2_Wunderground/10days|tr a-z A-Z}${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/1.png 10 206 40 40}${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/2.png 220 206 40 40}$color$font
${goto 100}${execpi 600 sed -n '12p' $HOME/2_Wunderground/10days}°${goto 290}${execpi 600 sed -n '110p' $HOME/2_Wunderground/10days}°
${font Arial:size=8}${goto 100}${execpi 600 sed -n '46p' $HOME/2_Wunderground/10days} ${execpi 600 sed -n '42p' $HOME/2_Wunderground/10days}km/h${goto 290}${execpi 600 sed -n '144p' $HOME/2_Wunderground/10days} ${execpi 600 sed -n '140p' $HOME/2_Wunderground/10days}km/h
${goto 100}${execpi 600 sed -n '30p' $HOME/2_Wunderground/10days}${goto 290}${execpi 600 sed -n '128p' $HOME/2_Wunderground/10days}
${color5}${hr 1}
${font Arial:size=7}${color5}${execpi 600 sed -n '200p' $HOME/2_Wunderground/10days|tr a-z A-Z}${goto 150}${execpi 600 sed -n '396p' $HOME/2_Wunderground/10days|tr a-z A-Z}${goto 280}${execpi 600 sed -n '592p' $HOME/2_Wunderground/10days|tr a-z A-Z}${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/3.png 10 270 40 40}${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/5.png 150 270 40 40}${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/7.png 280 270 40 40}$color${font Arial:size=5}

${font Arial:size=8}${goto 70}max ${execpi 600 sed -n '208p' $HOME/2_Wunderground/10days}° ${goto 200}max ${execpi 600 sed -n '404p' $HOME/2_Wunderground/10days}°  ${goto 330}max ${execpi 600 sed -n '600p' $HOME/2_Wunderground/10days}°
                    ${goto 70}min ${execpi 600 sed -n '306p' $HOME/2_Wunderground/10days}° ${goto 200}min ${execpi 600 sed -n '502p' $HOME/2_Wunderground/10days}°  ${goto 330}min ${execpi 600 sed -n '698p' $HOME/2_Wunderground/10days}°
                    ${goto 70}${execpi 600 sed -n '324p' $HOME/2_Wunderground/10days}      ${goto 200}${execpi 600 sed -n '520p' $HOME/2_Wunderground/10days}       ${goto 330}${execpi 600 sed -n '716p' $HOME/2_Wunderground/10days}
${font Arial:size=8}${execpi 600 sed -n '222p' $HOME/2_Wunderground/10days}${goto 150}${execpi 600 sed -n '418p' $HOME/2_Wunderground/10days}${goto 280}${execpi 600 sed -n '614p' $HOME/2_Wunderground/10days}
${color5}${hr 1}
${goto 25}${execpi 600 sed -n '786p' $HOME/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}${goto 90}${execpi 600 sed -n '982p' $HOME/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}${goto 160}${execpi 600 sed -n '1178p' $HOME/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}${goto 230}${execpi 600 sed -n '1374p' $HOME/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}${goto 300}${execpi 600 sed -n '1570p' $HOME/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}${goto 370}${execpi 600 sed -n '1766p' $HOME/2_Wunderground/10days|tr a-z A-Z|cut -c1-3} 
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/9.png 20 395 30 30} 
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/11.png 90 395 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/13.png 160 395 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/15.png 230 395 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/17.png 300 395 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/19.png 370 395 30 30}$color${voffset -20}
${font Arial:size=8}${execpi 600 sed -n '796p' $HOME/2_Wunderground/10days}°                    ${goto 70}${execpi 600 sed -n '992p' $HOME/2_Wunderground/10days}°                    ${goto 140}${execpi 600 sed -n '1188p' $HOME/2_Wunderground/10days}°                    ${goto 210}${execpi 600 sed -n '1384p' $HOME/2_Wunderground/10days}°                   ${goto 280}${execpi 600 sed -n '1580p' $HOME/2_Wunderground/10days}°                     ${goto 350}${execpi 600 sed -n '1776p' $HOME/2_Wunderground/10days}°

${voffset 10}${goto 40}${execpi 600 sed -n '894p' $HOME/2_Wunderground/10days}°                 ${goto 110}${execpi 600 sed -n '1090p' $HOME/2_Wunderground/10days}°                  ${goto 180}${execpi 600 sed -n '1286p' $HOME/2_Wunderground/10days}°                    ${goto 250}${execpi 600 sed -n '1482p' $HOME/2_Wunderground/10days}°                   ${goto 320}${execpi 600 sed -n '1678p' $HOME/2_Wunderground/10days}°                     ${goto 395}${execpi 600 sed -n '1874p' $HOME/2_Wunderground/10days}°
${color5}${hr 1}

${endif}

]];

ConkySatMap archive:
https://transfer.sh/15RgQ5/ConkySatMap.tar.gz
render:
wu_sat_map_2019-08-23_23-27-18.th.png

Last edited by ragamatrix (2019-08-23 21:29:03)

Offline

#2562 2019-08-24 05:41:09

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

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

TeoBigusGeekus wrote:

That's what I'd call advanced use already; even if you only learn how to push changes (i.e. what you made locally => to the remote reopository) it's an immense improvement over uploading zips to cloud.drive.

Offline

#2563 2019-08-24 08:10:19

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'd really like to read people's opinion/feedback about the execpi vs texeci debate.

Execpi used to work flawlessly, but since conky 1.11.4-1 (and now on conky 1.11.5-1) it makes conky freeze all the time.

Texeci never freezes conky, but once in a while a couple of icons vanish, or a temp, or a wind value, etc. Furthermore, when the script is updated the images disappear for a second or two. I still prefer it over execpi though.

What's your experience with both of them? (provided you're in the latest conky version that is)


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

#2564 2019-08-24 08:14:03

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

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

@unklar and ragamatrix
Brilliant outcome!
For an even better result try to reduce your whitespace horizontally, ie. change the goto commands.


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

#2565 2019-08-24 09:44:42

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

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

ohnonot wrote:
TeoBigusGeekus wrote:

Did I promise to you?

No, I don't think so.

I won't promise again cause I've been shown not to hold my promises, but I completely agree that it would make things a lot easier with updates. Perhaps this winter :8

Good, here's me hoping!

Did I do it right?

https://github.com/teobigusgeekus/2_Wunderground


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

#2566 2019-08-24 09:46:48

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 169
Website

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

What's the current status of the weather scripts? I noticed that sometimes (most of the time) some parts of my conky's output are missing. I'm talking about hourly_2015 and images_2015 .

Offline

#2567 2019-08-24 11:20:11

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

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

I can confirm that. It's been a long time and I can't remember what I've tried for the repair.  hmm

So far I haven't written anything about it, because Teo with WUN
has enough on his plate. Now accuweather is added as well.
I'm afraid accuweather has changed the page as well.   mad

once missing first_days then last_days etc.

2019-08-22-10-56-53_scrot.png

Offline

#2568 2019-08-24 12:03:03

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

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

execpi vs texeci

Teo,
I have here in arch still the 1.11.3
Had I installed myself because of the cairo support from the AUR.
https://aur.archlinux.org/packages/?O=0&K=conky
https://www.archlinux.org/packages/?sor … =&flagged=


At debian/siduction they are still at 1.10.8

Since you mentioned that, I've replaced everything with texeci wherever possible. Can't see any change though
The effect of the disappearance of images (and data) remains.


But this is the case under all syntaxes!   roll

Offline

#2569 2019-08-24 16:58:43

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

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

Accuweather's pages randomly fail to download using lynx, ie. I get the correct page once and the next few times I get a wrong one.
Wget, curl, w3m and elinks also fail (even using a user agent).

The pages' layout hasn't been changed, as far as I've managed to download anything and test it, it's just that Accuweather has probably banned every text browser in existence.

If I find a way to download the pages it'll be OK. But how?...

Ideas/advice is welcome.


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

#2570 2019-08-24 17:02:51

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

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

unklar wrote:

I have here in arch still the 1.11.3

You're one version away from execpi hell sad

Last edited by TeoBigusGeekus (2019-08-24 17:03:00)


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

#2571 2019-08-24 18:28:20

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

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

don't know if it could help: https://github.com/slotix/dataflowkit
hmm

Offline

#2572 2019-08-24 19:26:19

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

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

I see that you are working on an update @teo, but I wanted to mention that the script isn't working correctly again.
curr_cond has line 1 has - and 2-4 are :
curr_cond_raw is blank
first days are 5 lines of -
and first_days_raw is blank
last_days and last_days_raw are both correct

Hopefully this is what the update is going to fix... I would read back further, but I have a 6yo begging me to play with her...

Last edited by seatommyboy (2019-08-24 19:26:45)

Offline

#2573 2019-08-24 20:43:00

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

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

ragamatrix wrote:

don't know if it could help: https://github.com/slotix/dataflowkit
hmm

Seems too complicated for the average user.

seatommyboy wrote:

I see that you are working on an update @teo, but I wanted to mention that the script isn't working correctly again.
curr_cond has line 1 has - and 2-4 are :
curr_cond_raw is blank
first days are 5 lines of -
and first_days_raw is blank
last_days and last_days_raw are both correct

Hopefully this is what the update is going to fix... I would read back further, but I have a 6yo begging me to play with her...

Yep, Accuweather is screwed up.


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

#2574 2019-08-24 20:52:46

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

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

TeoBigusGeekus wrote:

Yep, Accuweather is screwed up.

That never happens...lol

Offline

#2575 2019-08-24 22:16:46

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

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

Don't despair guys, there might be a way out of this (replacing lynx with w3m).
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

#2576 2019-08-25 04:12:54

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

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

Well, just popped in to confirm ... yup ACCUFOOFOO ...

2019-08-25_010552_Scrot11.th.jpg

1 in the morning and sun shinning, and UV of 2  ... no wait clear moonlight.

Another GRRRRR!

Thanks for looking into it Teo

No execpi hell for me --> Conky v1:1.9  :d


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2577 2019-08-25 05:39:48

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

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

TeoBigusGeekus wrote:

Looks good.

git clone https://github.com/teobigusgeekus/2_Wunderground
cd 2_Wunderground/
conky -c wu_conkyrc1 

This essentially works. The conky throws errors and cannot find anything, I guess that's normal at this point.

People downloading your stuff will 'see' only the latest commit by default.

If you make some changes (commits), I can now do

cd 2_Wunderground/
git pull

and will get the latest version.

On your side, you should essentially have the same repo as I have now on my side.
you do changes, then, always inside the repo's root directory so to speak, issue:

git status
git add . # or git add * # essentially adds all new files. check with:
git status
# OK? now:
git commit -m 'message for this commit'
git push origin master # this needs to be set up first to work

There's a lot more to be said; github has really good documentation for every conceivable question; just search and find, e.g. https://help.github.com/en/articles/add … mmand-line

Git-wise, It's good that all temporary files are stored elsewhere otherwise they'd get added to the repo...
This can be avoided with a '.gitignore' file.

Obviously you'd want to add a README etc.

Last edited by ohnonot (2019-08-25 05:53:18)

Offline

#2578 2019-08-25 06:50: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)

@S11
Lucky you!

@ohnonot
Thanks for the motivation, I'd never would have been arsed to do it otherwise.
I changed the contents of the repository so that everything is now in the 2_Wunderground folder.
This is a release candidate, so you shouldn't get any error messages; if you still do, can you please post them?

...but enough with WUnderground, Accuweather requires my full attention for now...

Last edited by TeoBigusGeekus (2019-08-25 06:50:47)


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

#2579 2019-08-25 14:11:24

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 169
Website

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

TeoBigusGeekus wrote:

The pages' layout hasn't been changed, as far as I've managed to download anything and test it, it's just that Accuweather has probably banned every text browser in existence.

Looks like the following can access the website:

$ curl -A "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; de-de) AppleWebKit/534.15 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4" https://www.accuweather.com/

Offline

#2580 2019-08-25 14:53:51

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've found a way with w3m.
Just wait an hour or two.


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