You are not logged in.
This is what I like:
conky.config = {
-- Window Settings
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
own_window_colour = '000000',
own_window_class = 'Conky',
own_window_title = 'BunsenLabs Default Conky',
-- ARGB can be used for real transparency
--own_window_argb_visual = true, -- Options: true|false
-- NOTE that a composite manager is required for real transparency and ARGB will not
-- work as desired (in most cases) in conjunction with 'own_window_type override'.
-- Use with: own_window_type = 'normal',
-- Use with: own_window_transparent = false,
-- When ARGB visuals are enabled, use the following to modify the alpha value. Valid
-- range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
--own_window_argb_value = 150,
minimum_width = 200, minimum_height = 0,-- width | height
maximum_width = 200,
gap_x = 20,-- left | right
gap_y = 45,-- up | down
alignment = 'top_right',
-- End Window Settings
-- Font Settings
-- Use Xft (anti-aliased font and stuff)
use_xft = true,
--font = 'Liberation Mono:bold:size=10',
--font = 'Liberation Sans:size=10',
font = 'Sans-serif:size=10',
-- Alpha of Xft font. Must be a value at or between 1 and 0
xftalpha = 1,
-- Force UTF8? requires XFT
override_utf8_locale = true,
uppercase = false,
-- End Font Settings
-- Color Settings
draw_shades = false,
default_shade_color = '000000',
draw_outline = false,-- amplifies text if true
default_outline_color = '000000',
default_color = '678b8b', -- Beam green
--default_color = '656667', -- Waldorf original colour
--default_color = '7a7a7a', -- Flame & BunsenLabs Grey
--default_color = '929292', -- BunsenLabs Grey
--default_color = 'C0C0C0', -- BunsenLabs Silver
color0 = 'B0E0E6',-- PowderBlue
color1 = '778899',-- LightSlateGray
color2 = 'D8BFD8',-- Thistle
color3 = '9ACD32',-- YellowGreen
color4 = 'FFA07A',-- LightSalmon
color5 = 'FFDEAD',-- NavajoWhite
color6 = '00BFFF',-- DeepSkyBlue
color7 = '5F9EA0',-- CadetBlue
color8 = 'BDB76B',-- DarkKhaki
color9 = 'C0C0C0',-- Silver
-- End Color Settings
-- Borders Section
draw_borders = false,
-- 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 = false,
--default_graph_height = 15,
--default_graph_width = 40,
-- End Borders Section
-- Miscellaneous Section
-- Boolean value, if true, Conky will be forked to background when started.
background = true,
-- 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',
-- Default and Minimum size is 256 - needs more for single commands that
-- "call" a lot of text IE: bash scripts
--text_buffer_size = 6144,
-- Subtract (file system) buffers from used memory?
no_buffers = true,
-- change GiB to G and MiB to M
short_units = true,
-- Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
-- $image lots. Set to 0 to disable the image cache.
imlib_cache_size = 0,
-- Use the Xdbe extension? (eliminates flicker)
-- It is highly recommended to use own window with this one
-- so double buffer won't be so big.
double_buffer = true,
-- Maximum size of user text buffer, i.e. layout below TEXT line in config file
-- (default is 16384 bytes)
--max_user_text = 16384,
-- Desired output unit of all objects displaying a temperature. Parameters are
-- either "fahrenheit" or "celsius". The default unit is degree Celsius.
--temperature_unit = 'Fahrenheit',
-- Update interval in seconds
update_interval = 3,
update_interval_on_battery = 6
-- End Miscellaneous Section
};
With conky 1.9 the following did the trick:
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
Offline
Ah, ok, I figured it out. The following changes are needed:
own_window_type = 'normal'
own_window_class = 'Conky'
The other settings of the original weather script can be used without any changes, and then this does the trick.
Offline
Alright, good to know you've made it ghorvath.
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
So I've been having some issues with Wunderground being unreliable (not loading weather data every 2-3 updates, so I thought I was over my allotted calls.) I noticed this message here:
To improve our services and enhance our relationship with our users, we will no longer provide free weather API keys as part of our program. If you have been directed to download our Weather Underground free API key by a third party provider, please contact your vendor for resolution.
Offline
I have already referred here to this unreliability of the data transmitted (mrpeachy's WUN).
It is the same API key.
The statement you quoted I evaluate that it only affects NEW keys.
I assume, however, that the end has been rung in.
Offline
I have already referred here to this unreliability of the data transmitted (mrpeachy's WUN).
It is the same API key.The statement you quoted I evaluate that it only affects NEW keys.
I assume, however, that the end has been rung in.
Yeah, I switched to NWS scripts. I do need to hack up something to give me a satellite image, though.
Offline
Try using the following key:
d8585d80376a429e
It should work for all users.
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 don't think it has anything to do with that key, Teo.
The big advantage of the Wundergroung API so far was that I could select PWS (personal weather station). This made the weather forecast as nearh from my location possible as it was not the case otherwise
pws:ILICHTEN11 I used for many years. But this station did not offer any wind data and I had to change.
pws:IDEUTSCH6 much with the redesign of the website away and with
pws:ILUGAUER3 I don't get continuously reliable data because the evening changes to Kalovy Vary or Altenburg-Nobitz (EDAC).
Besides, 80 - 100km distance does not make sense.
Now I have
pws:IMLSEN8 discovers. Let's see what it looks like.
Last edited by unklar (2018-06-20 12:52:39)
Offline
At the end of the day though, since WU aren't issuing new API keys, the script needs to be updated or withdrawn.
Stay tuned guys.
Last edited by TeoBigusGeekus (2018-06-21 20:11:16)
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
Can I get some testers to check the 2_WUnderground script with the fixed API key?
ie:
#!/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/d8585d80376a429e/conditions/forecast10day/astronomy/hourly/satellite/q/Greece/kastoria.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/2_Wunderground_API/*.png
kill -STOP $(pidof conky)
wget -O $HOME/2_Wunderground_API/raw_data $address
#Conditions feature
sed -n '/, "current_observation": {/,/, "satellite": {/p' $HOME/2_Wunderground_API/raw_data > $HOME/2_Wunderground_API/Conditions
sed -i 's/^[ \t]*"//g' $HOME/2_Wunderground_API/Conditions
sed -i '/current_observation\|image":\|logo_\|title":\|link":\|^[ \t]*},$\|^[ \t]*}$\|temperature_string\|forecast_url\|history_url\|ob_url\|satellite":/d' $HOME/2_Wunderground_API/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/2_Wunderground_API/Conditions
sed -i -e 's/^http.*\/c\/k\///g' -e '/gif/s/_.*$//g' $HOME/2_Wunderground_API/Conditions
day_or_night=$(sed -n 137p $HOME/2_Wunderground_API/Conditions)
if [[ $day_or_night == nt ]]; then
cp $HOME/2_Wunderground_API/Forecast_Images/$(wun_icon_to_png night $(sed -n 135p $HOME/2_Wunderground_API/Conditions)).png $HOME/2_Wunderground_API/Now.png
else
cp $HOME/2_Wunderground_API/Forecast_Images/$(wun_icon_to_png day $(sed -n 135p $HOME/2_Wunderground_API/Conditions)).png $HOME/2_Wunderground_API/Now.png
fi
#Satellite feature, commented out by default, uncomment if you wish so
#sed -n '/, "satellite": {/,/"forecast":{/p' $HOME/2_Wunderground_API/raw_data > $HOME/2_Wunderground_API/Satellite
#sed -i 's/^[ \t]*"//g' $HOME/2_Wunderground_API/Satellite
#sed -i -e '/image/!d' -e 's/^.*": "//g' -e 's/".*$//g' $HOME/2_Wunderground_API/Satellite
#for (( i=1; i<=3; i++ ))
# do
# wget -O $HOME/2_Wunderground_API/sat_pic$i.png $(sed -n ${i}p $HOME/2_Wunderground_API/Satellite)
# done
#Forecast feature: Forecast
sed -n '/"forecast":{/,/"simpleforecast": {/p' $HOME/2_Wunderground_API/raw_data > $HOME/2_Wunderground_API/Forecast
sed -i -e '/"period":\|icon_url/d' $HOME/2_Wunderground_API/Forecast
sed -i 's/^[ \t]*"//g' $HOME/2_Wunderground_API/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/2_Wunderground_API/Forecast
#Forecast feature: Simple Forecast
sed -n '/"simpleforecast": {/,/"hourly_forecast": \[/p' $HOME/2_Wunderground_API/raw_data > $HOME/2_Wunderground_API/Simple_Forecast
sed -i 's/^[ \t]*"//g' $HOME/2_Wunderground_API/Simple_Forecast
sed -i '/hourly_forecast\|simpleforecast\|forecastday\|{"date"\|period\|icon_url\|^[ \t]*},$\|^[ \t]*}$\|^[ \t]*,$\|^[ \t]*\]$/d' $HOME/2_Wunderground_API/Simple_Forecast
sed -i -e 's/":"/\n/g' -e 's/":/\n/g' -e 's/",$//g' -e 's/,$//g' -e 's/"$//g' $HOME/2_Wunderground_API/Simple_Forecast
sed -i '/^[ \t]*{/d' $HOME/2_Wunderground_API/Simple_Forecast
sed -i -e 's/^[ \t]*"//g' -e 's/^[ \t]*//g' $HOME/2_Wunderground_API/Simple_Forecast
for (( i=2; i<=146; i+=16 ))
do
cp $HOME/2_Wunderground_API/Forecast_Images/$(wun_icon_to_png day $(sed -n ${i}p $HOME/2_Wunderground_API/Forecast)).png $HOME/2_Wunderground_API/d$(( 1+(i-2)/16 )).png
j=$(( i+8 ))
cp $HOME/2_Wunderground_API/Forecast_Images/$(wun_icon_to_png night $(sed -n ${j}p $HOME/2_Wunderground_API/Forecast)).png $HOME/2_Wunderground_API/n$(( 1+(i-2)/16 )).png
done
#Forecast feature: Hourly
sed -n '/"hourly_forecast": \[/,/"moon_phase": {/p' $HOME/2_Wunderground_API/raw_data > $HOME/2_Wunderground_API/Hourly
sed -i -e 's/^[ \t]*"//g' -e 's/^[ \t]*//g' $HOME/2_Wunderground_API/Hourly
sed -i '/hourly_forecast\|FCTTIME\|^{$\|^},$\|^}$\|^,$\|^]$\|moon_phase/d' $HOME/2_Wunderground_API/Hourly
sed -i -e 's/": /\n/g' -e 's/","/\n/g' -e 's/", "/\n/g' $HOME/2_Wunderground_API/Hourly
sed -i -e 's/^""//g' -e 's/^"//g' -e 's/^{"//g' -e 's/"},$//g' -e 's/",$//g' $HOME/2_Wunderground_API/Hourly
sed -i -e 's/^},//g' -e 's/"}$//g' -e 's/^,//g' $HOME/2_Wunderground_API/Hourly
sed -i -e 's/^icon_url.*\/c\/k\///g' -e '/gif/s/_.*$//g' $HOME/2_Wunderground_API/Hourly
sed -i -e '/min_unpadded\|UTCDATE/,+1d' $HOME/2_Wunderground_API/Hourly
for (( i=64; i<=4212; i+=117 ))
do
j=$(( i+1 ))
day_or_night=$(sed -n ${j}p $HOME/2_Wunderground_API/Hourly)
if [[ $day_or_night == nt ]]; then
cp $HOME/2_Wunderground_API/Forecast_Images/$(wun_icon_to_png night $(sed -n ${i}p $HOME/2_Wunderground_API/Hourly)).png $HOME/2_Wunderground_API/h$(( 1+(i-64)/117 )).png
else
cp $HOME/2_Wunderground_API/Forecast_Images/$(wun_icon_to_png day $(sed -n ${i}p $HOME/2_Wunderground_API/Hourly)).png $HOME/2_Wunderground_API/h$(( 1+(i-64)/117 )).png
fi
done
#Forecast feature: Moon_Sun
sed -n '/"moon_phase": {/,/"sun_phase": {/p' $HOME/2_Wunderground_API/raw_data > $HOME/2_Wunderground_API/Moon_Sun
sed -i 's/^[ \t]*"//g' $HOME/2_Wunderground_API/Moon_Sun
sed -i '/moon_phase\|^[ \t]*},$\|sun_phase\|^[ \t]*}$/d' $HOME/2_Wunderground_API/Moon_Sun
sed -i -e 's/":"/\n/g' -e 's/".*$//g' $HOME/2_Wunderground_API/Moon_Sun
moon_phase=$(sed -n 6p $HOME/2_Wunderground_API/Moon_Sun)
if [[ $moon_phase == "Waning Crescent" ]]; then
cp $HOME/2_Wunderground_API/moonicons/$hemisphere"21.png" $HOME/2_Wunderground_API/Moon_phase.png
elif [[ $moon_phase == "Waxing Crescent" ]]; then
cp $HOME/2_Wunderground_API/moonicons/$hemisphere"04.png" $HOME/2_Wunderground_API/Moon_phase.png
elif [[ $moon_phase == "Waning Gibbous" ]]; then
cp $HOME/2_Wunderground_API/moonicons/$hemisphere"17.png" $HOME/2_Wunderground_API/Moon_phase.png
elif [[ $moon_phase == "Waxing Gibbous" ]]; then
cp $HOME/2_Wunderground_API/moonicons/$hemisphere"09.png" $HOME/2_Wunderground_API/Moon_phase.png
elif [[ $moon_phase == "First Quarter" ]]; then
cp $HOME/2_Wunderground_API/moonicons/$hemisphere"07.png" $HOME/2_Wunderground_API/Moon_phase.png
elif [[ $moon_phase == "Last Quarter" ]]; then
cp $HOME/2_Wunderground_API/moonicons/$hemisphere"19.png" $HOME/2_Wunderground_API/Moon_phase.png
elif [[ $moon_phase =~ New.* ]]; then
cp $HOME/2_Wunderground_API/moonicons/$hemisphere"24.png" $HOME/2_Wunderground_API/Moon_phase.png
elif [[ $moon_phase =~ Full.* ]]; then
cp $HOME/2_Wunderground_API/moonicons/$hemisphere"13.png" $HOME/2_Wunderground_API/Moon_phase.png
fi
kill -CONT $(pidof conky)
I can't quite be sure that this key is independent of calls for all users by checking it all by my own.
Any help would be appreciated.
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
So far so good for me. (Am using a modified conkyrc2.) Want me to keep using it for a few days?
Offline
Oh yes please garpu, thank you very much.
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
Thanks for testing for me unklar.
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
So far so good for me this morning. I was using a bit last night, and had one glitch, but I think it may have been an issue with our network.
Offline
Alright, cheers.
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
ANNOUNCEMENT
Update for the 2_Wunderground script. WU have apparently stopped providing api keys. The script has been changed to use what appears to be a master api key. Time will tell if it's gonna be valid forever or not. Other than this and the addition of the -o /dev/null switch to the wget command (no unnecessary log files will be created) the script remains unchanged.
Thanks to garpu and unklar for helping me test the script.
Last edited by TeoBigusGeekus (2018-06-24 07:03:02)
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
Just one question
I use wunderground with my own key, and it still works.
Do you know if WU will deactivate this key or not ?
Offline
I have no idea, just keep using it till you face any trouble.
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 have no idea, just keep using it till you face any trouble.
Ok wait and see...
Offline
There was a thing a while back with ConkyForcast if too many people used the same "key" the weather service would disable that key.
I have a paid for Wunderground key that still works, but I don't share it.
Last edited by Sector11 (2018-06-25 16:46:50)
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
The thing with the master key I've used to update the WU script is that it is actually used in the normal WU web page.
If you go to any place's weather page, say this for example, and read its source page, you can actually see that it draws the forecast from an api page, using that particular key:
So, this has to be an all purpose, use as much as you want key.
But only time will tell if that's the case.
Also, nice to have you back S11!!!!
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
Thanks, don't post often anymore but I read a LOT!
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
In the README of @mrpeachy's wun (2014) :
500 Call's per day and 10 Call's per minute, free
The regulations of WUN (for the FREE) are documented on their website from 2013 and do not say any changes.
I greet you warmly and wish you health, Conkystator!
Offline
Hi unklar ... It has been a long time hasn't it. I will be back, just not sure when but I will do what I can to keep conky v 1.9 on my system. Still do not like 1.10
But As Teo pointed out there have been changed.
However mrpeachys v9000 script still runs fine for me (C v1.9)
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