You are not logged in.
Offline
Sector11 wrote:Terminal, baby ... it's in a terminal ... credits are in the script.
Excellent work!
![]()
I have to see where the Sun Rise and Moon Rise times hide...![]()
tput cup 4 35;tput setaf 9
echo "Sun Rise"
tput cup 4 44;tput setaf 3
echo `sed -n '23p' ~/1_accuweather/curr_cond` <<<--- Sunrise
tput cup 4 50;tput setaf 9
echo "Moon Rise "
tput cup 4 60;tput setaf 6
echo `sed -n '25p' ~/1_accuweather/curr_cond` <<<--- Moonrise
tput cup 5 40;tput setaf 9
echo "Set"
tput cup 5 44;tput setaf 3
echo `sed -n '24p' ~/1_accuweather/curr_cond` <<<--- Sunset
tput cup 5 56;tput setaf 9
echo "Set"
tput cup 5 60;tput setaf 6
echo `sed -n '26p' ~/1_accuweather/curr_cond` <<<--- Moonset
Run the companion conky:
conky -c ~/1_accuweather/accu_cfl_companion.conky
OH! OOPS! you're running a modified script
Last edited by Sector11 (2017-07-11 21:43:52)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^ I had already found this in the curr_cond.
You're back like a mother to me without breast.
For the German console freaks:
#!/bin/bash
# --- original ---
# 4 Day Weather forecast script for Boardman, OH
# Written by: Habitual (JJ)
# 11.01.2010 12:10:07
# For conkyForecast by: Kaivalagi
# --- Edited by Sector11 ---
# 7 Day Forecast
# 13 Jan 2013 14:08 UTC
# For conkyForecast by: Kaivalagi
# Re-edited:
# Mon 09 Jan 2017
# updated 2017-07-10
# For TeoBigusGeekus' 1_Accuweather Weather script
# https://forums.bunsenlabs.org/viewtopic.php?id=189
### Run Teos script to refresh the databases
## Change the "wget" commands to "wget -q" in 1_accuweather
~/1_accuweather_Deutsch/1_accuweather_Deutsch 2>&1 >/dev/null
/home/unklar/4_Moon/moon_MoonGiant 2>&1 >/dev/null
# Clear the screen
tput clear
#tput bold ### for bold text
#tput dim ### for dim text
#tput sgr0 ### remove formatting
# Current (1st Group LEFT)
tput cup 1 1;tput setaf 9
echo "- Lichtenstein, Germany -"
tput cup 1 35;tput setaf 9
echo "- Accuweather -"
tput cup 2 1;tput setaf 9
echo "Currently"
tput cup 2 11;tput setaf 3
echo `sed -n '2p' ~/1_accuweather_Deutsch/curr_cond`"°"
tput cup 2 15;tput setaf 9
echo " for ±"
tput cup 2 21;tput setaf 3
echo `sed -n '3p' ~/1_accuweather_Deutsch/curr_cond`"°"
tput cup 3 1;tput setaf 2
echo `sed -n '4p' ~/1_accuweather_Deutsch/curr_cond`
tput cup 4 1;tput setaf 3
echo "Bar"
tput cup 4 5;tput setaf 9
echo `sed -n '8p' ~/1_accuweather_Deutsch/curr_cond`
tput cup 4 16;tput setaf 3
echo "Hum"
tput cup 4 20;tput setaf 9
echo `sed -n '7p' ~/1_accuweather_Deutsch/curr_cond`
tput cup 4 25;tput setaf 3
echo "UVI"
tput cup 4 29;tput setaf 9
echo `sed -n '9p' ~/1_accuweather_Deutsch/curr_cond`
tput cup 5 1;tput setaf 3
echo "Wnd"
tput cup 5 5;tput setaf 9
echo `sed -n '5p' ~/1_accuweather_Deutsch/curr_cond`" @ "`sed -n '6p' ~/1_accuweather_Deutsch/curr_cond`
tput cup 5 21;tput setaf 3
echo "Vis"
tput cup 5 25;tput setaf 9
echo `sed -n '13p' ~/1_accuweather_Deutsch/curr_cond`
tput cup 6 1;tput setaf 3
echo "Ceil"
tput cup 6 6;tput setaf 9
echo `sed -n '11p' ~/1_accuweather_Deutsch/curr_cond`
tput cup 6 14;tput setaf 3
echo "Dew"
tput cup 6 18;tput setaf 9
echo `sed -n '12p' ~/1_accuweather_Deutsch/curr_cond`"°"
tput cup 6 22;tput setaf 3
echo "CC"
tput cup 6 25;tput setaf 9
echo `sed -n '10p' ~/1_accuweather_Deutsch/curr_cond`
# Today Day 0 (1st Group RIGHT) Mon
tput cup 2 35;tput setaf 9
echo "$(date --date="0 day" | awk '{print $1" "$2" "$3" "$6}')"
tput cup 2 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 2 53;tput setaf 9
echo `sed -n '3p' ~/1_accuweather_Deutsch/first_days`"°"
tput cup 2 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 2 60;tput setaf 9
echo `sed -n '4p' ~/1_accuweather_Deutsch/first_days`"°"
tput cup 3 35;tput setaf 2
echo `sed -n '5p' ~/1_accuweather_Deutsch/first_days`
tput cup 4 35;tput setaf 9
echo "Sun Rise"
tput cup 4 44;tput setaf 3
echo `sed -n '14p' ~/1_accuweather_Deutsch/curr_cond`
tput cup 4 50;tput setaf 9
echo "Moon Rise "
tput cup 4 60;tput setaf 6
echo `sed -n '18p' ~/1_accuweather_Deutsch/curr_cond`
tput cup 5 40;tput setaf 9
echo "Set"
tput cup 5 44;tput setaf 3
echo `sed -n '15p' ~/1_accuweather_Deutsch/curr_cond`
tput cup 5 56;tput setaf 9
echo "Set"
tput cup 5 60;tput setaf 6
echo `sed -n '19p' ~/1_accuweather_Deutsch/curr_cond`
tput cup 6 35;tput setaf 9
echo "Duration"
tput cup 6 44;tput setaf 3
echo `sed -n '16p' ~/1_accuweather_Deutsch/curr_cond`
tput cup 6 57;tput setaf 6
echo `sed -n '20p' ~/1_accuweather_Deutsch/curr_cond`
# Day 1 (2nd Group LEFT) Tue
tput cup 7 1;tput setaf 9
echo "----------------------------------"
tput cup 8 1;tput setaf 9
echo "$(date --date="1 day" | awk '{print $1" "$2" "$3" "$6}')"
tput cup 8 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 8 19;tput setaf 9
echo `sed -n '8p' ~/1_accuweather_Deutsch/first_days`"°"
tput cup 8 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 8 27;tput setaf 9
echo `sed -n '9p' ~/1_accuweather_Deutsch/first_days`"°"
tput cup 9 1;tput setaf 2
echo `sed -n '10p' ~/1_accuweather_Deutsch/first_days`
# Day 2 (2nd Group RIGHT) Wed
tput cup 7 35;tput setaf 9
echo "-------------------------------"
tput cup 8 35;tput setaf 9
echo "$(date --date="2 day" | awk '{print $1" "$2" "$3" "$6}')"
tput cup 8 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 8 53;tput setaf 9
echo `sed -n '13p' ~/1_accuweather_Deutsch/first_days`"°"
tput cup 8 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 8 60;tput setaf 9
echo `sed -n '14p' ~/1_accuweather_Deutsch/first_days`"°"
tput cup 9 35;tput setaf 2
echo `sed -n '5p' ~/1_accuweather_Deutsch/first_days`
# Day 3 (3rd Group LEFT) Thu
tput cup 10 1;tput setaf 9
echo "-------------------------------"
tput cup 11 1;tput setaf 9
echo "$(date --date="3 day" | awk '{print $1" "$2" "$3" "$6}')"
tput cup 11 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 11 19;tput setaf 9
echo `sed -n '18p' ~/1_accuweather_Deutsch/first_days`"°"
tput cup 11 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 11 27;tput setaf 9
echo `sed -n '19p' ~/1_accuweather_Deutsch/first_days`"°"
tput cup 12 1;tput setaf 2
echo `sed -n '10p' ~/1_accuweather_Deutsch/first_days`
# Day 4 (3rd Group RIGHT) Fri
tput cup 10 35;tput setaf 9
echo "-------------------------------"
tput cup 11 35;tput setaf 9
echo "$(date --date="4 day" | awk '{print $1" "$2" "$3" "$6}')"
tput cup 11 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 11 53;tput setaf 9
echo `sed -n '23p' ~/1_accuweather_Deutsch/first_days`"°"
tput cup 11 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 11 60;tput setaf 9
echo `sed -n '24p' ~/1_accuweather_Deutsch/first_days`"°"
tput cup 12 35;tput setaf 2
echo `sed -n '5p' ~/1_accuweather_Deutsch/first_days`
# Day 5 (4th Group LEFT) Sat
tput cup 13 1;tput setaf 9
echo "-------------------------------"
tput cup 14 1;tput setaf 9
echo "$(date --date="5 day" | awk '{print $1" "$2" "$3" "$6}')"
tput cup 14 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 14 19;tput setaf 9
echo `sed -n '3p' ~/1_accuweather_Deutsch/last_days`"°"
tput cup 14 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 14 27
echo `sed -n '4p' ~/1_accuweather_Deutsch/last_days`"°"
tput cup 15 1;tput setaf 2
echo `sed -n '5p' ~/1_accuweather_Deutsch/last_days`
# Day 6 (4th Group RIGHT) Sun
tput cup 13 35;tput setaf 9
echo "-------------------------------"
tput cup 14 35;tput setaf 9
echo "$(date --date="6 day" | awk '{print $1" "$2" "$3" "$6}')"
tput cup 14 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 14 53;tput setaf 9
echo `sed -n '8p' ~/1_accuweather_Deutsch/last_days`"°"
tput cup 14 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 14 60
echo `sed -n '9p' ~/1_accuweather_Deutsch/last_days`"°"
tput cup 15 35;tput setaf 2
echo `sed -n '10p' ~/1_accuweather_Deutsch/last_days`
# Day 7 (5th Group LEFT) Mon
tput cup 16 1;tput setaf 9
echo "-------------------------------"
tput cup 17 1;tput setaf 9
echo "$(date --date="7 day" | awk '{print $1" "$2" "$3" "$6}')"
tput cup 17 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 17 19
echo `sed -n '13p' ~/1_accuweather_Deutsch/last_days`"°"
tput cup 17 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 17 27;tput setaf 9
echo `sed -n '14p' ~/1_accuweather_Deutsch/last_days`"°"
tput cup 18 1;tput setaf 2
echo `sed -n '15p' ~/1_accuweather_Deutsch/last_days`
tput cup 19 1;tput setaf 9
echo "-------------------------------"
# Day 8 (5th Group RIGHT) Tue
tput cup 16 35;tput setaf 9
echo "-------------------------------"
tput cup 17 35;tput setaf 9
echo "$(date --date="8 day" | awk '{print $1" "$2" "$3" "$6}')"
tput cup 17 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 17 53;tput setaf 9
echo `sed -n '18p' ~/1_accuweather_Deutsch/last_days`"°"
tput cup 17 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 17 60;tput setaf 9
echo `sed -n '19p' ~/1_accuweather_Deutsch/last_days`"°"
tput cup 18 35;tput setaf 2
echo `sed -n '20p' ~/1_accuweather_Deutsch/last_days`
tput cup 19 32;tput setaf 9
echo "----------------------------------"
tput cup 20 5;tput setaf 6
echo "Moon"
tput cup 20 10;tput setaf 3
echo "Sun"
tput cup 20 14;tput setaf 9
echo "Information Northern Hemisphere"
tput cup 21 1;tput setaf 6
echo "Phase"
tput cup 21 8;tput setaf 9
echo `sed -n '7p' /home/unklar/4_Moon/raw` @ `sed -n '1p' /home/unklar/4_Moon/raw`
tput cup 21 35;tput setaf 6
echo "Distance"
tput cup 21 44;tput setaf 9
echo `sed -n '4p' /home/unklar/4_Moon/raw` "km"
tput cup 22 1;tput setaf 6
echo "Age"
tput cup 22 8;tput setaf 9
echo `sed -n '5p' /home/unklar/4_Moon/raw` "Day(s)"
tput cup 22 35;tput setaf 6
echo "Angle"
tput cup 22 44;tput setaf 9
echo `sed -n '6p' /home/unklar/4_Moon/raw`"°"
tput cup 23 1;tput setaf 3
echo "Angle"
tput cup 23 8;tput setaf 9
echo `sed -n '2p' /home/unklar/4_Moon/raw`"°"
tput cup 23 35;tput setaf 3
echo "Distance"
tput cup 23 44;tput setaf 9
echo `sed -n '3p' /home/unklar/4_Moon/raw` "km"
tput sgr0
$SHELL
Offline
{looking down - flat hairy chest} Thank God! O:)
Glad you have it working.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
You're right ragamatrix, it is -1 for me as well.
I've visited the http://api.wunderground.com/...etc address for my location and the UV Index is indeed -1, so it's not the script's fault.
Could others report their value of the UV Index in Wunderground's api page?
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
Interesting, I'm thinking, at 21:04 on a winter's night it should be 0 .... RIGHT!
Hmmm, -1 - not the script!
... It's Trump's fault, he says there is no global warming!
No global warming, no ozone problem -- no ozone problem no UVI problem. ]:D
EDIT: OK, that's not nice ... link instead.
Edit 2: Accuweather on the other hand is dead on:
Last edited by Sector11 (2017-07-20 00:10:50)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
I'm getting 10 right now for the UV value (14:30 in the afternoon), which seems like a reasonable value.
We'll see...
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
Today it works, got 9 teo wins
Last edited by ragamatrix (2017-07-20 14:57:16)
Offline
My Wground says -1 but Accuweather says 3
BTW, ragamatrix the lower the number the better it is. I win!
Now I need to check my wunderground location, maybe the location I am using doesn't report UVI.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Offline
Where I come from double 1's is a "Licence to Conky"!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
ANNOUNCEMENT
Tiny hiccup on the 1_Accuweather script. It must have been a small change in Accuweather's layout, cause suddenly there was an extra line in the current conditions file, which caused in its turn a screw up of conky's layout.
Script rebundled.
For the lazy:
Just change|"wind"|
in line 271 to
|"wind"><strong>|
Thank you Teo. I was just getting ready to report this.
Offline
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
My Wground says -1 but Accuweather says 3
BTW, ragamatrix the lower the number the better it is. I win!
Now I need to check my wunderground location, maybe the location I am using doesn't report UVI.
I put this and uv works again!
Try it if it works for you too!
UVI: ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}/11\
${alignr}${execi 300 sed -n '10p' ~/1_accuweather/curr_cond}:Bar
regards!
[url=https://i.imgur.com/o2u7xdB.png]
[/url]
Last edited by ector1935 (2017-07-21 08:14:55)
Offline
I put this and uv works again!
Try it if it works for you too!UVI: ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}/11\ ${alignr}${execi 300 sed -n '10p' ~/1_accuweather/curr_cond}:Bar
regards!
It is the "wunderground " script that had a -1. My accuweather works just fine.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Offline
Offline
Ladies, if there are any present, and Gentlemen.
The thing to remember about Wunderground is it really is an 'Underground' weather service, nothing "Official".
For example there are 19 stations in Buenos Aires:
Nearby Weather Stations
Buenos Aires (IDFCONGR2) 19.1°
San Nicol s (IBUENOSA291) 16.8°
Recoleta (IBUENOSA274) 15.3°
Avenida San Juan (IBUENOSA418) 14.8°
Jos Andr s Pacheco de Melo (IBUENOSA411) 17.9°
Recoleta (IBUENOSA263) 14.7°
Ecuador (IBUENOSA347) 13.8°
Sevilla (IBUENOSA407) 17.8°
Almagro (IBUENOSA314) 16.8°
Boedo (ICIUDADA37) 17.6°
Avenida del Libertador (IBUENOSA397) 19.3°
Uriarte (IBUENOSA351) 14.3°
Parque Chacabuco (ICIUDADA20) 17.9°
Avenida Avellaneda (IBUENOSA450) 15°
3 de Febrero (IBUENOSA359) 15.2°
Olleros (IBUENOSA405) 15.4°
Comuna 13 (IDFCOLEG2) 15.3°
Belgrano (IBUENOSA454) 13.9°
Artilleros (IBUENOSA364) 16.4°
The 'official' Argentina weather site is not there. SMN and missing are the two airports as well. So it's these homegrown sites that supply information to Wunderground. My guess is that the -1 represents a station that does not broadcast UVI values.
Now there is a link for: Ezeiza - the international Airport just outside of the city, but I see no UVI readings there either.
I know that the wunderground conky I use changes stations (within BsAs area) if the one I asked for isn't 'brodcasting' at the time of updating. Something to consider.
May I suggest doing what I do:
Since my wife likes the colourful icons:
1. I created her little "today's weather", see a few posts above, using Wunderground, a long time ago, and
2. since I like the 2017 accuweather icon images, and
3. I also like and use the moon script, and
4. since my wife's script is the first weather conky to load - I cheated: the first three lines in her conky are:
TEXT
${execi 900 bash $HOME/1_accuweather/1_accuweather -f2015 -f2016 -h2015 -h2016}\
${execi 900 bash /media/5/Conky/2b_Wunderground_API/2b}\
${execi 900 bash /media/5/Conky/4_Moon/moon}\
Which means any other weather conky I make I do not need to go online to get the data, I just use the existing data. That has been working for me for a LONG time now.
SO: No UVI working in your Wunderground Script: use Accuweathers: (quoted from ector1935's post a couple of posts up)
UVI: ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}/11
mix and match the three scripts to get it all.
Two Examples I know about:
UVI - explained above
Moon script gives rough rise|set times - Use Accuweather's more accurate sun|moon rise|set times for your location
Think I'll change my wife's conky to Accuweather 1016 icons - she may not even notice, then I can drop Wunderground altogether ... and to think I was the one that asked Teo to get wunderground going.
{dodging the rotten eggs incoming from Greece! Damn, Teo, you have a really good arm, or is that a catapult?}
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline