You are not logged in.
Teo,
after the first tests the script works without errors.![]()
All variables are displayed, also the images come correctly. Here "weatherfont".
Oops, I just noticed on your shot, the dew point values are wrong
I'll correct it later in the day.
EDIT: Corrected!
Last edited by TeoBigusGeekus (2020-07-05 10:05:50)
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
There's also a bug in h_no_in_hum vs. h_no_ind_hum -- I think one of them should be used and not both. I stick with h_no_ind_hum.
Other than that it works well:
Offline
Never tried the hourly accuweather conky before. but it sure is impressive. what an amazing script.
one question: how to make it show the hours in 24h format?
Offline
@morfik
Corrected, thanks for the tip.
@ceeslans
There's no way to do it right now.
I'll see if I can come up with something.
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
What's the general consensus about the 24h format in the hourly Accuweather forecast?
What do you guys say?
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
What's the general consensus about the 24h format in the hourly Accuweather forecast?
What do you guys say?
Teo, not pretending to claim general consensus, but this really is a trivial matter only.
The 12h am/pm format is fine by me, no need to go to extra lengths to implement a 24h format
Offline
No problem man, if a lot of people are for it, then why not?
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
^I would have sworn now to have seen the 24 hour format before with Accuweather.
I was of the opinion that at that time (2015) in the script, which Teo had written especially for the German edition of the script, was the case.
It could also be that I am mistaken, because I can't find anything in my archive...
In any case, I would be in favour of it, if Teo doesn't mind.
Offline
Well, that settles it then...
After massive public demand by ceeslans and unklar I've updated the script to use the 24h format for the hourly forecast.
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
^Teo, it took a little longer with me.
You had given me a riddle again, because I didn't get any data and pictures displayed.
I am older and had downloaded the script via git... 8) 8o
Now everything is ok. Nice work from you.
Offline
Thank you both for your feedback.
I'll let the script be for a few days and then I'll update the git repository.
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
I'll let the script be for a few days and then I'll update the git repository.
...or not
ANNOUNCEMENT
Accuweather's hourly forecast massively changed. So has the script. Read the readme info for the new hourly forecast parameters.
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
Teo, in an effort to reduce screen occupancy and tweak the looks of the hourly forecast conky, I had to make numerous changes to the text, icon/font sizes, colors, offsets etc.
Since these conky settings for 'Hourly Forecast' are now mostly hardcoded in the base script file, I had to change the values in 'accuweather' script.
Would it be possible to 'move' this specific code to an extra script file, which could then be called as an 'include' by the accuweather script?
This way, it will be easier to update the base script, whenever accuweather decides to change their general format again...
Offline
Out of town, will answer in the next couple of days.
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
Ok, back to base again.
@ceeslans
I suppose I could make it a separate script, but I don't see how it would make things easier; could you please explain a bit more?
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
@Teo, on second thought I agree with you, it wouldn't make it easier really.
I've backed up the edited 'hourly forecast' script section, for a simple overwrite - if/when needed.
Offline
Alright, thanks for your contributions.
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
Hi teo,this conky no longer shows the hours of the weather.
Could you please change this with the new parameters the weather hours for newbies like me ?!
Always when you have time.
Thank you
conky.config = {
-- Create own window instead of using desktop (required in nautilus)
own_window = true,
own_window_type = 'override',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,
-- fiddle with window
use_spacer = 'right',
use_xft = true,
-- Update interval in seconds
update_interval = 3,
-- Minimum size of text area
minimum_width = 360, minimum_height = 500,
maximum_width = 360,
override_utf8_locale = true,
-- Draw shades?
draw_shades = true,
-- Text stuff
draw_outline = true,-- amplifies text if yes
draw_borders = false,
--font freesans -12
font = 'Arial:size=9',
uppercase = false,-- set to yes if you want all text to be in uppercase
-- Stippled borders?
stippled_borders = 3,
-- border margins
border_inner_margin = 9,
-- border width
border_width = 10,
-- Default colors and also border colors, grey90 == #e5e5e5
default_color = '#cbcbcb',
color1 = '#ffe595',
own_window_colour = 'brown',
own_window_transparent = true,
-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_right',
--alignment bottom_left
--alignment bottom_right
-- Gap between borders of screen and text
gap_x = 10,
gap_y = 30,
imlib_cache_size = 0,
-- stuff after 'TEXT' will be formatted on screen
};
conky.text = [[
${font Arial:size=12}${color1}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/Accuweather_conky_script/accuweather -f2016}
${image $HOME/Accuweather_conky_script/forecast_2016/forecast_0.png -p 0,50 -s 170x170}
${font Arial:size=10}${texeci 600 sed -n '4p' $HOME/Accuweather_conky_script/curr_cond}${font}${goto 200}${color1}TEMPERATURE: $color${alignr}${texeci 600 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond}° (${texeci 600 sed -n '3p' $HOME/Accuweather_conky_script/curr_cond}°)
${goto 200}${color1}WIND SPEED: $color${alignr}${texeci 600 sed -n '5p' $HOME/Accuweather_conky_script/curr_cond} ${texeci 600 sed -n '6p' $HOME/Accuweather_conky_script/curr_cond}
${goto 200}${color1}HUMIDITY: $color${alignr}${texeci 600 sed -n '7p' $HOME/Accuweather_conky_script/curr_cond}
${goto 200}${color1}PRESSURE: $color${alignr}${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/curr_cond}
${goto 200}${color1}UV INDEX: $color${alignr}${texeci 600 sed -n '9p' $HOME/Accuweather_conky_script/curr_cond}
${goto 200}${color1}CLOUD COVER: $color${alignr}${texeci 600 sed -n '10p' $HOME/Accuweather_conky_script/curr_cond}
${goto 200}${color1}CEILING: $color${alignr}${texeci 600 sed -n '11p' $HOME/Accuweather_conky_script/curr_cond}
${goto 200}${color1}DEW POINT: $color${alignr}${texeci 600 sed -n '12p' $HOME/Accuweather_conky_script/curr_cond}°
${goto 200}${color1}VISIBILITY: $color${alignr}${texeci 600 sed -n '13p' $HOME/Accuweather_conky_script/curr_cond}
${goto 200}${color1}SUN R/S: $color${alignr}${texeci 600 sed -n '14p' $HOME/Accuweather_conky_script/curr_cond}/${texeci 600 sed -n '15p' $HOME/Accuweather_conky_script/curr_cond}
${goto 200}${color1}SUN DUR: $color${alignr}${texeci 600 sed -n '16p' $HOME/Accuweather_conky_script/curr_cond}
${goto 200}${color1}MOON R/S: $color${alignr}${texeci 600 sed -n '18p' $HOME/Accuweather_conky_script/curr_cond}/${texeci 600 sed -n '19p' $HOME/Accuweather_conky_script/curr_cond}
${goto 200}${color1}MOON DUR: $color${alignr}${texeci 600 sed -n '20p' $HOME/Accuweather_conky_script/curr_cond}
${hr 1}
${goto 40}${font Arial:size=10}${color1}${texeci 600 sed -n '1p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z}${goto 145}${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z}${goto 270}${texeci 600 sed -n '15p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z}$color$font${image $HOME/Accuweather_conky_script/forecast_2016/forecast_1.png -p 0,245 -s 80x80}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_2.png -p 110,245 -s 80x80}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_3.png -p 230,245 -s 80x80}
${goto 100}${texeci 600 sed -n '4p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 210}${texeci 600 sed -n '11p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 330}${texeci 600 sed -n '18p' $HOME/Accuweather_conky_script/daily_forecast}°
${goto 100}/${texeci 600 sed -n '5p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 210}/${texeci 600 sed -n '12p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 330}/${texeci 600 sed -n '19p' $HOME/Accuweather_conky_script/daily_forecast}°
${font Arial:size=8}${texeci 600 sed -n '6p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-20}${goto 135}${texeci 600 sed -n '13p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-20}${goto 255}${texeci 600 sed -n '20p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-20}
${texeci 600 sed -n '6p' $HOME/Accuweather_conky_script/daily_forecast|cut -c21-40}${goto 135}${texeci 600 sed -n '13p' $HOME/Accuweather_conky_script/daily_forecast|cut -c21-40}${goto 255}${texeci 600 sed -n '20p' $HOME/Accuweather_conky_script/daily_forecast|cut -c21-40}$font
${hr 1}
${goto 40}${font Arial:size=10}${color1}${texeci 600 sed -n '22p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z}${goto 145}${texeci 600 sed -n '29p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z}${goto 270}${texeci 600 sed -n '36p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z}$color$font${image $HOME/Accuweather_conky_script/forecast_2016/forecast_4.png -p 0,385 -s 80x80}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_5.png -p 110,385 -s 80x80}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_6.png -p 230,385 -s 80x80}
${goto 100}${texeci 600 sed -n '25p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 210}${texeci 600 sed -n '32p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 330}${texeci 600 sed -n '39p' $HOME/Accuweather_conky_script/daily_forecast}°
${goto 100}/${texeci 600 sed -n '26p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 210}/${texeci 600 sed -n '33p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 330}/${texeci 600 sed -n '40p' $HOME/Accuweather_conky_script/daily_forecast}°
${font Arial:size=8}${texeci 600 sed -n '27p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-20}${goto 135}${texeci 600 sed -n '34p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-20}${goto 255}${texeci 600 sed -n '41p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-20}
${texeci 600 sed -n '27p' $HOME/Accuweather_conky_script/daily_forecast|cut -c21-40}${goto 135}${texeci 600 sed -n '34p' $HOME/Accuweather_conky_script/daily_forecast|cut -c21-40}${goto 255}${texeci 600 sed -n '41p' $HOME/Accuweather_conky_script/daily_forecast|cut -c21-40}$font
${hr 1}
${goto 40}${font Arial:size=10}${color1}${texeci 600 sed -n '43p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z}${goto 145}${texeci 600 sed -n '50p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z}${goto 270}${texeci 600 sed -n '57p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z}$color$font${image $HOME/Accuweather_conky_script/forecast_2016/forecast_7.png -p 0,525 -s 80x80}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_8.png -p 110,525 -s 80x80}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_9.png -p 230,525 -s 80x80}
${goto 100}${texeci 600 sed -n '46p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 210}${texeci 600 sed -n '53p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 330}${texeci 600 sed -n '60p' $HOME/Accuweather_conky_script/daily_forecast}°
${goto 100}/${texeci 600 sed -n '47p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 210}/${texeci 600 sed -n '54p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 330}/${texeci 600 sed -n '61p' $HOME/Accuweather_conky_script/daily_forecast}°
${font Arial:size=8}${texeci 600 sed -n '48p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-20}${goto 135}${texeci 600 sed -n '55p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-20}${goto 255}${texeci 600 sed -n '62p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-20}
${texeci 600 sed -n '48p' $HOME/Accuweather_conky_script/daily_forecast|cut -c21-40}${goto 135}${texeci 600 sed -n '55p' $HOME/Accuweather_conky_script/daily_forecast|cut -c21-40}${goto 255}${texeci 600 sed -n '62p' $HOME/Accuweather_conky_script/daily_forecast|cut -c21-40}$font
]];
thank for help
Offline
^only the curr_cond is ok.
They've been tinkering again, they're teasing Teo again...
Offline