Originally Posted by
os2
At Pinguy it says to use this: .conkyForecast.config
Code:
CACHE_FOLDERPATH = /tmp/
CONNECTION_TIMEOUT = 5
EXPIRY_MINUTES = 5
TIME_FORMAT = %H:%M
DATE_FORMAT = %d-%m-%y
LOCALE = Poole, United Kingdom
XOAP_PARTNER_ID =
XOAP_LICENCE_KEY = UKXX0113
MAXIMUM_DAYS_FORECAST = 7
BASE_XOAP_URL = http://xoap.weather.com/weather/local/<LOCATION>?cc=*&dayf=10&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
locale is not for where you are but a choice of languages that conkyForecast uses.
Typing conkyForecast --help in a terminal will show you:
Code:
-L LOCALE, --locale=LOCALE
override the system locale for language output
(bg=bulgarian, cs=czech, de=german, es=spanish,
en=english, es=spanish, fj=fijian, fr=french,
it=italian, nl=dutch, pl=polish, ro=romanian,
sk=slovak, more to come)
What that conkyForecast.config file is missing is:
Code:
DEFAULT_LOCATION = UKXX0113 ##Poole, United Kingdom
conkyForecast help at Conky PitStop
Mine looks like this:
Code:
#=============================================#
# EXPERT SETTINGS, NOT REQUIRED TO BE ALTERED #
#=============================================#
#BASE_XOAP_URL = http://xoap.weather.com/weather/local/<LOCATION>?cc=*&dayf=5&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
BASE_XOAP_URL = http://xml.weather.com/weather/local/<LOCATION>?cc=*&dayf=10&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
MAXIMUM_DAYS_FORECAST = 9
#===============================================#
# USER SETTINGS, EDIT BASED ON DOCUMENTED SETUP #
#===============================================#
CACHE_FOLDERPATH = /media/5/Conky/cache/
CONNECTION_TIMEOUT = 5
EXPIRY_MINUTES = 30
TIME_FORMAT = %H:%M
DATE_FORMAT = %Y-%m-%d
LOCALE = en
XOAP_PARTNER_ID =
XOAP_LICENCE_KEY =
DEFAULT_LOCATION = ARBA0009 #BsAs Argentina
AUTO_NIGHT = TRUE
PROXY_HOST =
PROXY_PORT = 8080
PROXY_USERNAME =
PROXY_PASSWORD =
Note:
Code:
XOAP_PARTNER_ID =
XOAP_LICENCE_KEY =
are no longer used.
That conky is using 30 exec(i or pi) commands to get the weather:
exec command
Executes a shell command and displays the output in conky. warning: this takes a lot more resources than other variables. I'd recommend coding wanted behaviour in C and posting a patch.
when one single execpi command with a template will get it all:
Code:
WEATHER ${hr 2}
${execpi 1800 conkyForecast --refetch --imperial --location=UKXX0113 --shortweekday --template=/media/5/conky/os2-cF.template}
${hr 2}
os2-cF.template
Code:
${alignc}[--datatype=CC]
${font ConkyWeather:style=Bold:size=40}[--datatype=WF]${goto 150}${font Arial Black:size=26}[--datatype=HT]${font}
${goto 70}[--datatype=DW --startday=1]${goto 125}[--datatype=DW --startday=2]${goto 180}[--datatype=DW --startday=3]${goto 235}[--datatype=DW --startday=4]
${goto 70}${font ConkyWeather:size=28}[--datatype=WF --startday=1 --endday=4 --spaces=2]${font}
${font DejaVu Sans:size=7}${goto 70}[--datatype=HT --startday=1 --hideunits --centeredwidth=3]/[--datatype=LT --startday=1 --hideunits --centeredwidth=3]${goto 125}[--datatype=HT --startday=2 --hideunits --centeredwidth=3]/[--datatype=LT --startday=2 --hideunits --centeredwidth=3]${goto 180}[--datatype=HT --startday=3 --hideunits --centeredwidth=3]/[--datatype=LT --startday=3 --hideunits --centeredwidth=3]${goto 235}[--datatype=HT --startday=4 --hideunits --centeredwidth=3]/[--datatype=LT --startday=4 --hideunits --centeredwidth=3]${font}
Location:${alignr}[--datatype=CN]
Feels Like:${alignr}[--datatype=LT]
Dew Point:${alignr}[--datatype=DP]
Chance of Precip:${alignr}[--startday=0 --datatype=PC]
Humidity:${alignr}[--datatype=HM]
Wind:${alignr}[--datatype=WS] - [--datatype=WD]
Pressure:${alignr}[--datatype=BR]
Visibility:${alignr}[--datatype=VI --imperial]
Sunrise:${alignr}[--datatype=SR]
Sunset:${alignr}[--datatype=SS]
Moon Phase:${alignr 8}[--datatype=MP] ${font MoonPhases:size=8}[--datatype=MF]${font}
Last Updated:${alignr}[--hideunits --datatype=LU]
The bottom weather is the template - using imperial. I don't have the "Weather" font.
Edited out the Current Condition between Dew Point and Chance of Precip
Bookmarks