You are not logged in.

#1161 2016-09-21 20:37:31

Doruletz
Member
Registered: 2016-09-21
Posts: 21

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

Thanks, Teo. Prompt as usual.
But I took matters into my own hands...
Good thing I'm still a quick study, even at 49 years of age!
After almost 2 packs of Pall Mall cigarettes, and a few hours later, I can claim that I got the basic understanding of sed, egrep, etc.

Here's a snapshot of the end result:

Latest Weather.com based HTC Style Clock Weather Conky

What I did is I started again from scratch.

1) Created a whole new script that gets the weather data from Weather.com and extracts only what I need from it, NO 16 hours into the past or the future, just current weather data and a minimalistic 6 day forecast (Hi-Low temps and a Condition image/picture).
I named the new script WeatherCom-Script-CT-EN and is located inside the weather_cache folder, where all the temp text and image files are also stored.
The condition images are fetched from the /images directory, which contains 2 separate folders, /images/moonicons and /images/weathericons

Here is the script:

#!/bin/bash

#!/bin/sh

kill -STOP $(pidof conky)
killall wget

	rm $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/raw_weather*
	rm $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_*.png
	rm $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond*
	rm $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond*
	rm $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/last_update*

sleep 1

#put your Weather.com address here
#Knoxville, TN, USA:
#address="http://wxdata.weather.com/wxdata/weather/local/USTN0268?cc=*&dayf=10&unit=m"
#Constanța, România:
address="http://wxdata.weather.com/wxdata/weather/local/ROXX0034?cc=*&dayf=10&unit=m"
#Curtea de Argeș, România:
#address="http://wxdata.weather.com/wxdata/weather/local/ROXX2183?cc=*&dayf=10&unit=m"
#București, România:
#address="http://wxdata.weather.com/wxdata/weather/local/ROXX0003?cc=*&dayf=10&unit=m"
#Kitchener, Ontario, Canada:
#address="http://wxdata.weather.com/wxdata/weather/local/CAXX0227?cc=*&dayf=10&unit=m"
#Nădlac, Județul Arad, România:
#address="http://wxdata.weather.com/wxdata/weather/local/ROXX0856?cc=*&dayf=10&unit=m"
#Bistrița, Județul Bistrița-Năsăud, România:
#address="http://wxdata.weather.com/wxdata/weather/local/ROXX4063?cc=*&dayf=10&unit=m"
#Tulcea, România:
#address="http://wxdata.weather.com/wxdata/weather/local/ROXX0401?cc=*&dayf=10&unit=m"
#Brașov, România:
#address="http://wxdata.weather.com/wxdata/weather/local/ROXX0002?cc=*&dayf=10&unit=m"

	wget -O $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/raw_weather "$address"

################################################################################
	#	Current Conditions File

	if [[ -s $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/raw_weather ]]; then
		sed -i '/ver/,/weather>/!d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/raw_weather
		egrep -i '<sunr>|<suns>|<tmp>|<flik>|<t>|<icon>|<r>|<s>|<t>|<hmid>|<vis>|<i>|<t>|<icon>|<t>|<hi>|<low>|<ppcp>' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/raw_weather > $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond
		sed -i '20,23 d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond
		sed -i '21,$ d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond
		sed -i -e 's/^.*<sunr>//g' -e 's/^.*<suns>//g' -e 's/^.*<tmp>//g' -e 's/^.*<flik>//g' -e 's/^.*<t>//g' -e 's/^.*<icon>//g' -e 's/^.*<r>//g' -e 's/^.*<s>//g' -e 's/^.*<t>//g' -e  's/^.*<hmid>//g' -e  's/^.*<vis>//g' -e  's/^.*<i>//g' -e  's/^.*<t>//g' -e  's/^.*<icon>//g' -e  's/^.*<t>//g' -e  's/^.*<hi>//g' -e  's/^.*<low>//g' -e  's/^.*<ppcp>//g' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond
		sed -i -e 's/<\/sunr>.*$//g' -e 's/<\/suns>.*$//g' -e 's/<\/tmp>.*$//g' -e 's/<\/flik>.*$//g' -e 's/<\/t>.*$//g' -e 's/<\/icon>.*$//g' -e 's/<\/r>.*$//g' -e 's/<\/s>.*$//g' -e 's/<\/hmid>.*$//g' -e 's/<\/vis>.*$//g' -e 's/<\/i>.*$//g' -e 's/<\/hi>.*$//g' -e 's/<\/low>.*$//g' -e 's/<\/ppcp>.*$//g' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond
		cp $HOME/.Conky/02-WC-CONSTANTA-EN/images/weathericons/$(sed -n 6p $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond).png $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cc.png
		cp $HOME/.Conky/02-WC-CONSTANTA-EN/images/moonicons/$(sed -n 14p $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond).png $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_moon.png

################################################################################

	#	Next 6 Days Forecast File

		sed -i '/ver/,/weather>/!d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/raw_weather
		egrep -i '<day d=|<hi>|<low>|<icon>|<t>' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/raw_weather > $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond
		sed -i '1,6 d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond
		sed -i '4,9 d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond
		sed -i '9,12 d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond
		sed -i '14,17 d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond
		sed -i '19,22 d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond
		sed -i '24,27 d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond
		sed -i '29,32 d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond
		sed -i '34,$ d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond
		sed -i -e 's/^.*<day d="*//g' -e 's/^.*" t="//g' -e 's/^.*<hi>//g' -e 's/^.*<low>//g' -e 's/^.*<\/day><day d="1" t="//g' -e 's/^.*<icon>//g' -e 's/^.*<t>//g' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond
		sed -i -e 's/<\/hi>.*$//g' -e 's/<\/low>.*$//g' -e 's/<\/icon>.*$//g' -e 's/<\/t>.*$//g' -e 's/" dt=".*$//g' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond
		sed -i -e 's/Monday/Mon/' -e 's/Tuesday/Tue/' -e 's/Wednesday/Wed/' -e 's/Thursday/Thu/' -e 's/Friday/Fri/' -e 's/Saturday/Sat/' -e 's/Sunday/Sun/' -e 's/\r//g' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond
		cp $HOME/.Conky/02-WC-CONSTANTA-EN/images/weathericons/$(sed -n 7p $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond).png $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_day1.png
		cp $HOME/.Conky/02-WC-CONSTANTA-EN/images/weathericons/$(sed -n 12p $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond).png $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_day2.png
		cp $HOME/.Conky/02-WC-CONSTANTA-EN/images/weathericons/$(sed -n 17p $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond).png $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_day3.png
		cp $HOME/.Conky/02-WC-CONSTANTA-EN/images/weathericons/$(sed -n 22p $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond).png $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_day4.png
		cp $HOME/.Conky/02-WC-CONSTANTA-EN/images/weathericons/$(sed -n 27p $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond).png $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_day5.png
		cp $HOME/.Conky/02-WC-CONSTANTA-EN/images/weathericons/$(sed -n 32p $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond).png $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_day6.png

################################################################################

	#	Last Update File

		sed -i '/ver/,/weather>/!d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/raw_weather
		egrep -i '<lsup>' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/raw_weather > $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/last_update
		sed -i '2,$ d' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/last_update
		sed -i -e 's/^.*<lsup>//g' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/last_update
		sed -i -e 's/<\/lsup>.*$//g' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/last_update

	kill -CONT $(pidof conky)

fi

2) Created the .conkyrc, in the main directory of the Conky, here it is:

#########################################################################################################
# Worldwide HTC style weather & clock conky configuration
# Created and edited by DORULEȚ <Doruletz@aim.com>
# Designed for Linux Mint (also works with almost any other Linux distro)
#		###	My many thanks to:	###
#	Kaivalagi (the pioneer), who created ConkyForecast, the one that started it all...
#	hfcf from Brazil, who first had the ideea of an HTC phone lookalike Conky
#	TeoBigusGeekus the Greek Weather Guru and Sector11, the Wizard from Argentina,
#	as well many others who contributed to the development of Weather Conkyies.
#	Last, but not least, my thanks to quakeguy44, whose Conky Weatherbox script 
#	was a starting point to create this Conky version, namely he gave me the ideea
#	on how to fetch the data from WEATHER.COM without using ConkyForecast, since 
#	for quite some time ConkyForecast only works for USA locations...
#########################################################################################################
# This Conky was designed to fit my desktop, on my 27 inch full HD 1080p display (1920 x 1080 resolution)
# For different displays (lower resolutions) you may need to make adjustements accordingly,
# to make it fit your display and also look nice
# My default location city for this particular Conky is CONSTANȚA, ROMÂNIA, a city by the Black Sea,
# at the eastern edge of the European Union		(Weather.com location code ROXX0034)
# You will need to replace --location=ROXX0034 with your city location!
# Get your city location code by going to http://www.weather.com/ and doing a search by city name
# To display the correct time and date for any location on a different time zone, you will require the use of
# "tztime" (the official time for that specific time zone),
# Since I live in the US, I'm using "tztime Europe/Bucharest", which you would need to adjust accordingly
# to fit your particular location
# Also, to be able to display the correct spelling of the City Name using the
# Romanian diacritics (ș, ț, ă, î, â), I opted for freeform text input for my
# city name instead of the script generated city name, thus you will also need
# to replace (type in) your city name in the "# LOCATION (CITY NAME)" field bellow
#########################################################################################################
# SETUP

background no
# set to yes if you want Conky to be forked in the background

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=12
# this font will allow for display on both EN/US and Romanian
#Linux installations, also on other languages

# Text alpha when using Xft
xftalpha 0.8

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 360 0
maximum_width 360

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

# Stippled borders?
stippled_borders 8

# border margins
border_inner_margin 4

# border width
border_width 1

# own window options
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# 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
# same thing as passing -x at command line
gap_x 370    ### left &right
gap_y 100    ### up & down

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
#locale=ro

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer right

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white
# Custom colors
color1 778899 # Light Slate Grey
color2 6892C6 # Light Blue
color3 FC8820 # Orange
color4 78BF39 # Green
color5 FFDEAD # Navajo White
color6 EBE651 # Deep Yellow
color7 697AFF # Ice Blue
color8 29CC29 # Pale Dark Green
color9 6ECBF5 # Ubuntu Studio Color

text_buffer_size 2048 # larger templates require this number to be increased.
#########################################################################################################

# all the stuff after 'TEXT' will be formatted on screen (except for commented stuff - has "#" in front)

#########################################################################################################
#########################################################################################################
#########################################################################################################
	TEXT
#########################################################################################################
${execi 500 bash $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/WeatherCom-Script-CT-EN}
#########################################################################################################
	# BACKGROUND IMAGES
${image $HOME/.Conky/02-WC-CONSTANTA-EN/Background/Base.png -p 5,20 -s 350x810}${image $HOME/.Conky/02-WC-CONSTANTA-EN/Background/Clock-Flip.png -p 80,10 -s 100x110}${image $HOME/.Conky/02-WC-CONSTANTA-EN/Background/Clock-Flip.png -p 180,10 -s 100x110}
#########################################################################################################
	# (RO) TIME
${voffset -5}${font Helvetica LT Std :style=Condensed:size=60}${color 000000}${goto 98}${tztime Europe/Bucharest %H}${goto 198}${tztime Europe/Bucharest %M}${font}${color}
## Pentru secunde: copiază rândul de mai jos, fără "#" din față, și adaugă după minute, pe același rând 129 ##
## Deasemeni modifică la LOCATION - CITY, linia 135, fă "${voffset 5}" ##
#${voffset -25}${goto 285}${font Helvetica LT Std :style=Condensed:size=40}${color0}${tztime Europe/Bucharest %S}
#########################################################################################################
	# LOCATION (CITY)
${voffset 20}${goto 30}${font Liberation Sans:style=Bold:size=24:locale=ro}Constanța, România${font}${color}
#########################################################################################################
	# DATE
${voffset 10}${color yellow}${font Bitstream Vera Sans Mono:style=bold:size=14}${alignr 27}${tztime Europe/Bucharest %A} ${tztime Europe/Bucharest %B} ${tztime Europe/Bucharest %e}, ${tztime Europe/Bucharest %G}${font}${color}
${goto 28}${cpubar cpu9 1,315}
#########################################################################################################
	# CURRENT CONDITIONS (# NAME) #
${font Bitstream Vera Sans Mono:style=Bold:size=18}${color9}${goto 35}${execpi 600 sed -n '5p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond}${font}${color}
#########################################################################################################
	# CURRENT CONDITIONS (# IMAGE) #
${image $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cc.png -p 30,210 -s 150x150}
#########################################################################################################
	# CURRENT TEMPERATURE #
${voffset -10}${goto 200}${font Weather:size=38}${color9}y${font}${voffset -30}${font Bitstream Vera Sans Mono:style=Bold:size=34}${execpi 600 sed -n '3p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond}°C${font}${color}
#########################################################################################################
	# HIGHS AND LOWS FOR TODAY #
${goto 210}${font Bitstream Vera Sans Mono:style=Bold:size=14}${color3}H: ${color4}${execpi 600 sed -n '16p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond}°C${voffset 22}${goto 210}${color3}L: ${color5}${execpi 600 sed -n '17p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond}°C${font}${color}
#########################################################################################################
	# Feels Like #
${voffset 5}${goto 150}${font Bitstream Vera Sans Mono:style=Bold:size=14}${color3}Feels like:${goto 280}${color red}${execpi 600 sed -n '4p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond}°C${font}${color}
${goto 28}${cpubar cpu9 1,315}
#########################################################################################################
	# SUNRISE AND SUNSET #
${voffset 2}${goto 40}${color3}Sunrise:${goto 160}${color5}${execpi 600 sed -n '1p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond}
${voffset 2}${goto 40}${color3}Sunset:${goto 160}${color5}${execpi 600 sed -n '2p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond}${font}${color}
#########################################################################################################
	# HUMIDITY #
${voffset 2}${goto 40}${color3}Humidity:${goto 160}${color5}${execpi 600 sed -n '10p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond}%${font}${color}
#########################################################################################################
	# CHANCE OF RAIN #
${voffset 2}${goto 40}${color3}Chance of rain: ${color5}${execpi 600 sed -n '20p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond}%${font}${color}
#########################################################################################################
	# PRESSURE #
#${voffset 2}${goto 40}${color3}Pressure:${goto 160}${color5}${execpi 600 sed -n '7p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond} mbar${font}${color}
#########################################################################################################
	# VISIBILITY #
#${voffset 2}${goto 40}${color3}Visibility:${goto 160}${color5}${execpi 600 sed -n '11p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond} km${font}${color}
#########################################################################################################
	# MOON PHASE (#NAME) #
${voffset 2}${goto 40}${color3}Moon Phase:
${goto 50}${color5}${execpi 600 sed -n '15p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond}${font}${color}
#########################################################################################################
	# MOON PHASE (#IMAGE) #
${image $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_moon.png -p 245,370 -s 90x90}
#########################################################################################################
	# WIND DIRECTION AND SPEED #
${voffset -18}${goto 40}${color3}Wind:${goto 120}${color5}${execpi 600 sed -n '8p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond} km/h from the ${execpi 600 sed -n '9p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/curr_cond}${font}${color}
#########################################################################################################
${goto 28}${color white}${cpubar cpu9 1,315}${font}${color}
#########################################################################################################
#########################################################################################################
	# 6 DAY EXTENDED FORECAST
#########################################################################################################
	# EXTENDED FORECAST #TEXT #
${voffset 2}${goto 40}${font Bitstream Vera Sans Mono:style=bold:size=16}${color red}Extended Forecast:${font}${color}
#########################################################################################################
	# EXTENDED FORECAST IMAGES FIRST 3 DAYS #
${image $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_day1.png -p 40,545 -s 80x80}${image $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_day2.png -p 140,545 -s 80x80}${image $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_day3.png -p 245,545 -s 80x80}
#########################################################################################################
	# EXTENDED FORECAST FIRST 3 DAYS HIGHS AND LOWS #
${voffset 45}${goto 50}${font Bitstream Vera Sans Mono:size=14}${color4}${execpi 600 sed -n '5p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}°${color white}/${color5}${execpi 600 sed -n '6p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}°${goto 150}${color4}${execpi 600 sed -n '10p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}°${color white}/${color5}${execpi 600 sed -n '11p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}°${goto 250}${color4}${execpi 600 sed -n '15p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}°${color white}/${color5}${execpi 600 sed -n '16p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}°${font}${color}
#########################################################################################################
	# EXTENDED FORECAST FIRST 3 DAYS WEEKDAYS #
${font Bitstream Vera Sans Mono:style=bold:size=14}${color9}${voffset 2}${goto 60}${execpi 600 sed -n '4p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}${goto 165}${execpi 600 sed -n '9p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}${goto 265}${execpi 600 sed -n '14p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}${font}${color}
#########################################################################################################
	# EXTENDED FORECAST IMAGES LAST 3 DAYS #
${image $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_day4.png -p 40,655 -s 80x80}${image $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_day5.png -p 140,655 -s 80x80}${image $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_day6.png -p 245,655 -s 80x80}
#########################################################################################################
	# EXTENDED FORECAST LAST 3 DAYS HIGHS AND LOWS #
${voffset 45}${goto 50}${font Bitstream Vera Sans Mono:size=14}${color4}${execpi 600 sed -n '20p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}°${color white}/${color5}${execpi 600 sed -n '21p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}°${goto 150}${color4}${execpi 600 sed -n '25p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}°${color white}/${color5}${execpi 600 sed -n '26p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}°${goto 250}${color4}${execpi 600 sed -n '30p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}°${color white}/${color5}${execpi 600 sed -n '31p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}°${font}${color}
#########################################################################################################
	# EXTENDED FORECAST LAST 3 DAYS WEEKDAYS #
${font Bitstream Vera Sans Mono:style=bold:size=14}${color9}${voffset 2}${goto 60}${execpi 600 sed -n '19p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}${goto 165}${execpi 600 sed -n '24p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}${goto 265}${execpi 600 sed -n '29p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/forecast_cond}${font}${color}
#########################################################################################################
${goto 28}${color white}${cpubar cpu9 1,315}${font}${color}
#########################################################################################################
	# LAST UPDATED #
${color4}${font Bitstream Vera Sans Mono:style=Bold:style=bold:size=11}${alignr 25}Last Updated: ${execpi 600 sed -n '1p' $HOME/.Conky/02-WC-CONSTANTA-EN/weather_cache/last_update}${font}${color}
#########################################################################################################
#${voffset 75}
#########################################################################################################
	# THE END #
#########################################################################################################

So, there you have it.
I will upload the whole thing to "gnome-look.org" and to Deviant Art, like I did with my previous versions of this HTC Clock Weather Conky.
Teo, Sector 11 and anybody else here, please feel free to use any part of my Conky, anyway you like it.

EDIT: I forgot to mention the "background" folder, in which the background images for the whole conky and the flip HTC type clock are stored...

***************************************************************************************************

TeoBigusGeekus wrote:

@Doruletz
Best I could do

#!/bin/sh

kill -STOP $(pidof conky)
killall wget

curl -s 'http://wxdata.weather.com/wxdata/weather/local/ROXX0034?cc=*&dayf=10&unit=m' -o ~/Desktop/Constanta-RO-weather.xml
sed -i '/^\s*$/d' ~/Desktop/Constanta-RO-weather.xml
sed -i 's/^\s*//g' ~/Desktop/Constanta-RO-weather.xml
sed -i 's/<tmp>\|<\/tmp>\|<flik>\|<\/flik>\|<t>\|<\/t>\|<icon>\|<\/icon>\|<r>\|<\/r>\|<gust>\|<\/gust>\|<s>\|<\/s>\|<d>\|<\/d>\|<hmid>\|<\/hmid>\|<vis>\|<\/vis>\|<i>\|<\/i>\|<hi>\|<\/hi>\|<low>\|<\/low>\|<sunr>\|<\/sunr>\|<suns>\|<\/suns>\|<bt>\|<\/bt>\|<ppcp>\|<\/ppcp>\|<dewp>\|<\/dewp>\|<lsup>\|<\/lsup>\|<locale>\|<\/locale>\|<form>\|<\/form>\|<ut>\|<\/ut>\|<ud>\|<\/ud>\|<us>\|<\/us>\|<up>\|<\/up>\|<ur>\|<\/ur>\|<zone>\|<\/zone>\|<obst>\|<\/obst>\|<dnam>\|<\/dnam>\|<tm>\|<\/tm>\|<lat>\|<\/lat>\|<lon>\|<\/lon>\|">//g' ~/Desktop/Constanta-RO-weather.xml
sed -i -e 's/^.* t="//g' -e 's/" dt="/ /g' ~/Desktop/Constanta-RO-weather.xml
sed -i '/<wind>\|<\/wind>\|<bar>\|<\/bar>\|<moon>\|<\/moon>\|<uv>\|<\/uv>\|<cc>\|<\/cc>\|part p=\|<\/part>\|<\/day>\|<\/dayf>\|<\/weather>\|<head>\|<\/head>\|<loc>\|<\/loc>\|weather ver\|loc id/d' ~/Desktop/Constanta-RO-weather.xml

Last edited by Doruletz (2016-09-21 21:03:42)

Offline

#1162 2016-09-21 21:08:38

Doruletz
Member
Registered: 2016-09-21
Posts: 21

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

@Teo
Can you suggest a piece of code to replace the "CALM" in the wind speed and direction with 0 (zero) for speed in Km/h and a dash "-" for direction in my script.
This "CALM" crap is about the only thing I hate at Weather.com....
Thanks.

Offline

#1163 2016-09-21 21:34:52

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

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

Very good job Doruletz, whatever suits you.

As for the CALM thingie, try with

sed -i 's/CALM/0 km\/h -/' /path/to/inputfile

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

#1164 2016-09-21 21:46:01

Doruletz
Member
Registered: 2016-09-21
Posts: 21

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

TeoBigusGeekus wrote:

Very good job Doruletz, whatever suits you.

As for the CALM thingie, try with

sed -i 's/CALM/0 km\/h -/' /path/to/inputfile

See, that's the problem, CALM appears twice, as in 2 separate entries, one for wind speed and the other for wind direction, see my snapshot of the conky....
Need to transform the current display that reads
"calm km/h from the CALM" into "0 km/h from the -"
I was thing of something along the line of..

IF wind speed=calm and wind direction=CALM, THEN
sed, egrep .... (whatever works in this case) wind speed=0 and wind direction=- (a dash, or minus sign)

can the code be made case sensitive, in order to be able to differentiate between calm and CALM????

Last edited by Doruletz (2016-09-21 21:58:53)

Offline

#1165 2016-09-21 21:47:10

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

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

Can you give me the output file?


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

#1166 2016-09-21 22:01:26

Doruletz
Member
Registered: 2016-09-21
Posts: 21

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

TeoBigusGeekus wrote:

Can you give me the output file?

Look at my snapshot...
And of course I can post the curr_cond output file as well.

6:53 AM
7:03 PM
11
11
Fair
33
1014.56
calm
CALM
82
9.7
0
Low
20
Waning Gibbous
11
9
6:53 AM
7:03 PM
0

and the raw_weather file too...

<weather ver="2.0">
        <head>
      <locale>en_US</locale>
      <form>MEDIUM</form>
      <ut>C</ut>
      <ud>km</ud>
      <us>km/h</us>
      <up>mb</up>
      <ur>mm</ur>
    </head>
        <loc id="ROXX0034">
      <dnam>Constanta, CT, Romania</dnam>
      <tm>12:56 AM</tm>
      <lat>44.18</lat>
      <lon>28.63</lon>
      <sunr>6:53 AM</sunr>
      <suns>7:03 PM</suns>
      <zone>3</zone>
    </loc>
        
        
        <cc>
        <lsup>9/22/16 12:30 AM EEST</lsup>
        <obst>Constanta, CT, RO</obst>
        <tmp>11</tmp>
        <flik>11</flik>
        <t>Fair</t>
        <icon>33</icon>
        
        <bar>
          <r>1014.56</r>
          <d></d>
        </bar>
        <wind>
      <s>calm</s>
      <gust>N/A</gust>
      <d>0</d>
      <t>CALM</t>
    </wind>
        <hmid>82</hmid>
        <vis>9.7</vis>
        <uv>
          <i>0</i>
          <t>Low</t>
        </uv>
        <dewp>7</dewp>
        <moon>
          <icon>20</icon>
          <t>Waning Gibbous</t>
        </moon>
      </cc>
        <dayf>
        <lsup>9/21/16 7:00 AM EEST</lsup>
        <day d="0" t="Thursday" dt="Sep 21">
        <hi>11</hi>
        <low>9</low>
        <sunr>6:53 AM</sunr>
        <suns>7:03 PM</suns>
        
        <part p="d">
          <icon></icon>
          <t></t>
          <wind>
      <s>calm</s>
      <gust>N/A</gust>
      <d>0</d>
      <t>CALM</t>
    </wind>
          <bt></bt>
          <ppcp>0</ppcp>
          <hmid>0</hmid>
        </part>
        <part p="n">
          <icon>11</icon>
          <t>Showers</t>
          <wind>
      <s>calm</s>
      <gust>N/A</gust>
      <d>0</d>
      <t>CALM</t>
    </wind>
          <bt>Showers</bt>
          <ppcp>30</ppcp>
          <hmid>84</hmid>
        </part>
      </day><day d="1" t="Friday" dt="Sep 22">
        <hi>20</hi>
        <low>8</low>
        <sunr>6:53 AM</sunr>
        <suns>7:03 PM</suns>
        
        <part p="d">
          <icon>34</icon>
          <t>Mostly Sunny</t>
          <wind>
      <s>12</s>
      <gust>N/A</gust>
      <d>327</d>
      <t>NNW</t>
    </wind>
          <bt>M Sunny</bt>
          <ppcp>0</ppcp>
          <hmid>51</hmid>
        </part>
        <part p="n">
          <icon>29</icon>
          <t>Partly Cloudy</t>
          <wind>
      <s>12</s>
      <gust>N/A</gust>
      <d>327</d>
      <t>NNW</t>
    </wind>
          <bt>P Cloudy</bt>
          <ppcp>10</ppcp>
          <hmid>65</hmid>
        </part>
      </day><day d="2" t="Saturday" dt="Sep 23">
        <hi>20</hi>
        <low>8</low>
        <sunr>6:53 AM</sunr>
        <suns>7:03 PM</suns>
        
        <part p="d">
          <icon>34</icon>
          <t>Mostly Sunny</t>
          <wind>
      <s>22</s>
      <gust>N/A</gust>
      <d>324</d>
      <t>NW</t>
    </wind>
          <bt>M Sunny</bt>
          <ppcp>10</ppcp>
          <hmid>50</hmid>
        </part>
        <part p="n">
          <icon>33</icon>
          <t>Mostly Clear</t>
          <wind>
      <s>22</s>
      <gust>N/A</gust>
      <d>324</d>
      <t>NW</t>
    </wind>
          <bt>M Clear</bt>
          <ppcp>0</ppcp>
          <hmid>66</hmid>
        </part>
      </day><day d="3" t="Sunday" dt="Sep 24">
        <hi>22</hi>
        <low>11</low>
        <sunr>6:53 AM</sunr>
        <suns>7:03 PM</suns>
        
        <part p="d">
          <icon>34</icon>
          <t>Mostly Sunny</t>
          <wind>
      <s>8</s>
      <gust>N/A</gust>
      <d>304</d>
      <t>NW</t>
    </wind>
          <bt>M Sunny</bt>
          <ppcp>0</ppcp>
          <hmid>47</hmid>
        </part>
        <part p="n">
          <icon>29</icon>
          <t>Partly Cloudy</t>
          <wind>
      <s>8</s>
      <gust>N/A</gust>
      <d>304</d>
      <t>NW</t>
    </wind>
          <bt>P Cloudy</bt>
          <ppcp>10</ppcp>
          <hmid>68</hmid>
        </part>
      </day><day d="4" t="Monday" dt="Sep 25">
        <hi>21</hi>
        <low>11</low>
        <sunr>6:53 AM</sunr>
        <suns>7:03 PM</suns>
        
        <part p="d">
          <icon>30</icon>
          <t>Partly Cloudy</t>
          <wind>
      <s>9</s>
      <gust>N/A</gust>
      <d>118</d>
      <t>ESE</t>
    </wind>
          <bt>P Cloudy</bt>
          <ppcp>10</ppcp>
          <hmid>52</hmid>
        </part>
        <part p="n">
          <icon>29</icon>
          <t>Partly Cloudy</t>
          <wind>
      <s>9</s>
      <gust>N/A</gust>
      <d>118</d>
      <t>ESE</t>
    </wind>
          <bt>P Cloudy</bt>
          <ppcp>20</ppcp>
          <hmid>73</hmid>
        </part>
      </day><day d="5" t="Tuesday" dt="Sep 26">
        <hi>21</hi>
        <low>10</low>
        <sunr>6:53 AM</sunr>
        <suns>7:03 PM</suns>
        
        <part p="d">
          <icon>39</icon>
          <t>PM Showers</t>
          <wind>
      <s>14</s>
      <gust>N/A</gust>
      <d>1</d>
      <t>N</t>
    </wind>
          <bt>PM Showers</bt>
          <ppcp>50</ppcp>
          <hmid>58</hmid>
        </part>
        <part p="n">
          <icon>29</icon>
          <t>Partly Cloudy</t>
          <wind>
      <s>14</s>
      <gust>N/A</gust>
      <d>1</d>
      <t>N</t>
    </wind>
          <bt>P Cloudy</bt>
          <ppcp>10</ppcp>
          <hmid>81</hmid>
        </part>
      </day><day d="6" t="Wednesday" dt="Sep 27">
        <hi>21</hi>
        <low>11</low>
        <sunr>6:53 AM</sunr>
        <suns>7:03 PM</suns>
        
        <part p="d">
          <icon>34</icon>
          <t>Mostly Sunny</t>
          <wind>
      <s>16</s>
      <gust>N/A</gust>
      <d>314</d>
      <t>NW</t>
    </wind>
          <bt>M Sunny</bt>
          <ppcp>0</ppcp>
          <hmid>52</hmid>
        </part>
        <part p="n">
          <icon>29</icon>
          <t>Partly Cloudy</t>
          <wind>
      <s>16</s>
      <gust>N/A</gust>
      <d>314</d>
      <t>NW</t>
    </wind>
          <bt>P Cloudy</bt>
          <ppcp>10</ppcp>
          <hmid>66</hmid>
        </part>
      </day><day d="7" t="Thursday" dt="Sep 28">
        <hi>22</hi>
        <low>12</low>
        <sunr>6:53 AM</sunr>
        <suns>7:03 PM</suns>
        
        <part p="d">
          <icon>30</icon>
          <t>Partly Cloudy</t>
          <wind>
      <s>14</s>
      <gust>N/A</gust>
      <d>261</d>
      <t>W</t>
    </wind>
          <bt>P Cloudy</bt>
          <ppcp>10</ppcp>
          <hmid>50</hmid>
        </part>
        <part p="n">
          <icon>29</icon>
          <t>Clouds Early / Clearing Late</t>
          <wind>
      <s>14</s>
      <gust>N/A</gust>
      <d>261</d>
      <t>W</t>
    </wind>
          <bt>Clear Late</bt>
          <ppcp>10</ppcp>
          <hmid>69</hmid>
        </part>
      </day><day d="8" t="Friday" dt="Sep 29">
        <hi>23</hi>
        <low>12</low>
        <sunr>6:53 AM</sunr>
        <suns>7:03 PM</suns>
        
        <part p="d">
          <icon>34</icon>
          <t>Mostly Sunny</t>
          <wind>
      <s>20</s>
      <gust>N/A</gust>
      <d>261</d>
      <t>W</t>
    </wind>
          <bt>M Sunny</bt>
          <ppcp>10</ppcp>
          <hmid>52</hmid>
        </part>
        <part p="n">
          <icon>29</icon>
          <t>Partly Cloudy</t>
          <wind>
      <s>20</s>
      <gust>N/A</gust>
      <d>261</d>
      <t>W</t>
    </wind>
          <bt>P Cloudy</bt>
          <ppcp>10</ppcp>
          <hmid>68</hmid>
        </part>
      </day><day d="9" t="Saturday" dt="Sep 30">
        <hi>23</hi>
        <low>13</low>
        <sunr>6:53 AM</sunr>
        <suns>7:03 PM</suns>
        
        <part p="d">
          <icon>30</icon>
          <t>Partly Cloudy</t>
          <wind>
      <s>14</s>
      <gust>N/A</gust>
      <d>263</d>
      <t>W</t>
    </wind>
          <bt>P Cloudy</bt>
          <ppcp>20</ppcp>
          <hmid>58</hmid>
        </part>
        <part p="n">
          <icon>29</icon>
          <t>Partly Cloudy</t>
          <wind>
      <s>14</s>
      <gust>N/A</gust>
      <d>263</d>
      <t>W</t>
    </wind>
          <bt>P Cloudy</bt>
          <ppcp>20</ppcp>
          <hmid>74</hmid>
        </part>
      </day>
      </dayf>
        
        
        
        
        
        
        
      </weather>

Last edited by Doruletz (2016-09-21 22:02:43)

Offline

#1167 2016-09-21 22:49:26

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

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

Linux is case sensitive, so

sed -i -e 's/calm/0 km\/h/' -e 's/CALM/-/' inputfile

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

#1168 2016-09-22 08:36:47

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

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

hello

Théo i try the new script & i have 4 new line like this in curr_cond

007:19
007:29
23:28
003:01

but that must be this no

07:19
19:29
23:28
15:01

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

#1169 2016-09-22 08:38:28

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

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

Remind me, what's the address you're using?

EDIT: If you're using this, then you shouldn't have the times in 24h format
http://www.accuweather.com/en/fr/sarreg … her/135050

Last edited by TeoBigusGeekus (2016-09-22 08:50: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

#1170 2016-09-22 08:51:14

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

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


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

#1171 2016-09-22 08:54:25

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

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

Oh crap, yes, you're absolutely right!!!
The script first adds a trailing 0 to the am/pm times and then converts these times to 24h format, whereas it should be the opposite.
Wait a couple of minutes.


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

#1172 2016-09-22 08:56:08

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

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

Ok, I edited my post above, it should work now.
Can you please test it? I'm at work at the moment.


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

#1173 2016-09-22 09:01:50

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

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

Re

Théo with your adress that don't work here konsole

Conky: desktop window (220028f) is subwindow of root window (34c)
Conky: window type - normal
Conky: drawing to created window (0x3400003)
Conky: drawing to double buffer
--2016-09-22 11:00:28--  http://www.accuweather.com/en/fr/sarreguemines/135050/current-weather/135050current-weather/135050
Résolution de www.accuweather.com (www.accuweather.com)… 92.123.182.49, 92.123.182.88
Connexion à www.accuweather.com (www.accuweather.com)|92.123.182.49|:80… connecté.
requête HTTP transmise, en attente de la réponse… 404 Not Found
2016-09-22 11:00:28 erreur 404 : Not Found.

--2016-09-22 11:00:28--  http://www.accuweather.com/en/fr/sarreguemines/135050/current-weather/135050daily-weather-forecast/135050
Résolution de www.accuweather.com (www.accuweather.com)… 92.123.182.88, 92.123.182.49
Connexion à www.accuweather.com (www.accuweather.com)|92.123.182.88|:80… connecté.
requête HTTP transmise, en attente de la réponse… 404 Not Found
2016-09-22 11:00:29 erreur 404 : Not Found.

--2016-09-22 11:00:29--  http://www.accuweather.com/en/fr/sarreguemines/135050/current-weather/135050daily-weather-forecast/135050?day=6
Résolution de www.accuweather.com (www.accuweather.com)… 92.123.182.49, 92.123.182.88
Connexion à www.accuweather.com (www.accuweather.com)|92.123.182.49|:80… connecté.
requête HTTP transmise, en attente de la réponse… 404 Not Found
2016-09-22 11:00:29 erreur 404 : Not Found.

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

#1174 2016-09-22 09:03:13

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

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

Read my previous posts please.

Last edited by TeoBigusGeekus (2016-09-22 09:03:26)


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

#1175 2016-09-22 09:10:22

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

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

I use your edited script & i have now this in curr_cond

07:19
07:29   here must be 19:29
23:28
03:01   here must be 15:01

Last edited by loutch (2016-09-22 09:11:39)


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

#1176 2016-09-22 09:17:29

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

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

Give me a moment.


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

#1177 2016-09-22 09:19:06

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

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

It is not urgent if you have something else to make, makes it at first.


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

#1178 2016-09-22 09:49:45

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 corrected the convert_time function, it should work now.
Please test it and report back loutch, TIA.


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

#1179 2016-09-22 10:47:36

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

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

Théo

smilies%20(224).gifThat work perfectly


GREAT JOB


@+


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

#1180 2016-09-22 10:59:04

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

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

Thanks a lot for the sharp eye loutch.

Keep testing.

EDIT: I did a couple of refinements to the if structure as well.
It should be perfect now.

Last edited by TeoBigusGeekus (2016-09-22 11:03:53)


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