Let us get back to you on that. I think Neon612 just found something the rest of us didn't notice before (Or were oblivious when it was brought up/solved the first time) and I'm working on it. This may change my answer to you.
Indeed, I think I found it too. But I have to check to verify. I'm making a preliminary test file to see if I can do it. Hold on.
Well I'll be frazzled... Indeed you can have multi-day forecasts... Here's what you want to do:
Edit the file ~/.conkyForecast.config in the following ways. (The ~ means /home/yourusername if you're looking for it in your favourite file manager.)
And also change these two lines:Code:MAXIMUM_DAYS_FORECAST=5 (Or, really, 7 works too.)
So that the hash (#) is on the other URL line, like this:Code: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
This will let you code 5 days forecast, though I would imagine up to 10 days will work, as long as you tell the MAXIMUM_DAYS_FORECAST to use 10.Code:#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
From here, you can now just continue on and add the 5 days of variables the same way as you did with your others. Nothing changed, just change the start day to 5 and you will get the 5th day's forecast.
@Neon612, Thanks for the head's up! I missed where he fixed that.
Last edited by 42dorian; May 6th, 2011 at 11:07 PM.
Thanks to both 42dorian and Neon612 and also rusty_jones for your question.
lol, I put my location, id, and key into the xml link and paste it in the browser. It gives me all the forecasts informations. Nice thing
And just to show what the result is, I whipped up one of my experiments to show off. I won't be keeping it all the time, but it's nice to know I can do it.
.conkyrc.weathertest
.conkyForecast.configCode:#-----Conky Settings background yes no_buffers yes out_to_console no top_cpu_separate no cpu_avg_samples 2 net_avg_samples 3 total_run_times 0 update_interval 1 #-----Text Settings uppercase no override_utf8_locale yes short_units no pad_percents 0 text_buffer_size 4096 max_user_text 32768 use_xft yes xftalpha 0.0 xftfont DiamondFantasy:size=16 #-----Window Settings own_window yes own_window_colour ffffff own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager own_window_type normal #-----Graphics Settings double_buffer yes draw_borders no draw_graph_borders yes draw_shades no draw_outline no max_specials 2048 imlib_cache_size 0 #-----Layout Settings alignment bottom_middle gap_x 0 gap_y 80 maximum_width 700 minimum_size 400 300 use_spacer right #-----Colors default_color 808080 #Grey Default default_outline_color ffffff #White Outlines default_shade_color c0c0c0 #Silver Shade color0 ff0000 #Red color1 ffff00 #Yellow color2 ffffff #White color3 808080 #Grey color4 00ff00 #Green color5 c0c0c0 #Silver color6 ffd700 #Gold color7 00ffff #Pale? color8 0000FF #Blue color9 404040 #DarkGrey TEXT ${color2}WEATHER: ${execi 3600 conkyForecast -d CN}${color0}${hr 1}${color2} Now${goto 75}${execi 3600 conkyForecast -d DW -w -s 1}${goto 135}${execi 3600 conkyForecast -d DW -w -s 2}${goto 195}${execi 3600 conkyForecast -d DW -w -s 3}${goto 255}${execi 3600 conkyForecast -d DW -w -s 4}${goto 315}${execi 3600 conkyForecast -d DW -w -s 5}${goto 375}${execi 3600 conkyForecast -d DW -w -s 6} #-----High Temp: H:${font TransponderAOE:bold}${execi 3600 conkyForecast -d HT -u -x}°C${goto 75}${execi 3600 conkyForecast -d HT -u -x -s 2}°C${goto 135}${execi 3600 conkyForecast -d HT -u -x -s 4}°C${goto 195}${execi 3600 conkyForecast -d HT -u -x -s 4}°C${goto 255}${execi 3600 conkyForecast -d HT -u -x -s 5}°C${goto 315}${execi 3600 conkyForecast -d HT -u -x -s 6}°C${goto 375}${execi 3600 conkyForecast -d HT -u -x -s 7}°C${font} #-----Low Temp: L:${font TransponderAOE:bold}${execi 3600 conkyForecast -d LT -u -x}°C${goto 75}${execi 3600 conkyForecast -d LT -u -x -s 2}°C${goto 135}${execi 3600 conkyForecast -d LT -u -x -s 4}°C${goto 195}${execi 3600 conkyForecast -d LT -u -x -s 4}°C${goto 255}${execi 3600 conkyForecast -d LT -u -x -s 5}°C${goto 315}${execi 3600 conkyForecast -d LT -u -x -s 6}°C${goto 375}${execi 3600 conkyForecast -d LT -u -x -s 7}°C${font} #-----Weather Conditions: ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -d WF}${goto 75}${execi 3600 conkyForecast -d WF -s 2}${goto 135}${execi 3600 conkyForecast -d WF -s 3}${goto 195}${execi 3600 conkyForecast -d WF -s 4}${goto 255}${execi 3600 conkyForecast -d WF -s 5}${goto 315}${execi 3600 conkyForecast -d WF -s 6}${goto 375}${execi 3600 conkyForecast -d WF -s 7}${color2}${font} ${goto 100}Night Values:#-----Night Values:High Temp ${voffset 25}${goto 5}H:${font TransponderAOE:bold}${execi 3600 conkyForecast -d HT -u -x -n}°C${goto 75}${execi 3600 conkyForecast -d HT -u -x -s 2 -n}°C${goto 135}${execi 3600 conkyForecast -d HT -u -x -s 3 -n}°C${goto 195}${execi 3600 conkyForecast -d HT -u -x -s 4 -n}°C${goto 255}${execi 3600 conkyForecast -d HT -u -x -s 5 -n}°C${goto 315}${execi 3600 conkyForecast -d HT -u -x -s 6 -n}°C${goto 375}${execi 3600 conkyForecast -d HT -u -x -s 7 -n}°C${font} #-----Low Temp:Night L:${font TransponderAOE:bold}${execi 3600 conkyForecast -d LT -u -x -n}°C${goto 75}${execi 3600 conkyForecast -d LT -u -x -s 2 -n}°C${goto 135}${execi 3600 conkyForecast -d LT -u -x -s 3 -n}°C${goto 195}${execi 3600 conkyForecast -d LT -u -x -s 4 -n}°C${goto 255}${execi 3600 conkyForecast -d LT -u -x -s 5 -n}°C${goto 315}${execi 3600 conkyForecast -d LT -u -x -s 6 -n}°C${goto 375}${execi 3600 conkyForecast -d LT -u -x -s 7 -n}°C #-----Weather Conditions:Night ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -d WF -n}${goto 75}${execi 3600 conkyForecast -d WF -s 2 -n}${goto 135}${execi 3600 conkyForecast -d WF -s 3 -n}${goto 195}${execi 3600 conkyForecast -d WF -s 4 -n}${goto 255}${execi 3600 conkyForecast -d WF -s 5 -n}${goto 315}${execi 3600 conkyForecast -d WF -s 6 -n}${goto 375}${execi 3600 conkyForecast -d WF -s 7 -n}${color2}${font} #-----Wind Direction ${font ConkyWindNESW:size=40}${execi 3600 conkyForecast -d BF}${goto 75}${execi 3600 conkyForecast -d BF -s 2}${goto 135}${execi 3600 conkyForecast -d BF -s 3}${goto 195}${execi 3600 conkyForecast -d BF -s 4}${goto 255}${execi 3600 conkyForecast -d BF -s 5}${goto 315}${execi 3600 conkyForecast -d BF -s 6}${goto 375}${execi 3600 conkyForecast -d BF -s 7}${font} #-----Wind Speed(With spacing edit by VinDSL) ${font TransponderAOE:bold}${execi 3600 conkyForecast -d WS | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 75}${execi 3600 conkyForecast -d WS -s 2 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 135}${execi 3600 conkyForecast -d WS -s 3 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 195}${execi 3600 conkyForecast -d WS -s 4 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 255}${execi 3600 conkyForecast -d WS -s 5 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 315}${execi 3600 conkyForecast -d WS -s 6 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 375}${execi 3600 conkyForecast -d WS -s 7 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${font}
And a screenshot of it in action. Showing it works.Code:# config settings for conkyForecast.py DEFAULT_LOCATION = <Censored> CACHE_FOLDERPATH = /tmp/ CONNECTION_TIMEOUT = 10 EXPIRY_MINUTES = 30 TIME_FORMAT = %I:%M %p DATE_FORMAT = %d-%m-%Y LOCALE = XOAP_PARTNER_ID = <Censored> XOAP_LICENCE_KEY = <Censored> MAXIMUM_DAYS_FORECAST = 7 AUTO_NIGHT = False #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 PROXY_HOST = PROXY_PORT = 8080 PROXY_USERNAME = PROXY_PASSWORD =
Yes Yes. We've established already that I simply missed it the first time. I'm not on the CrunchBang forums, nor am I a member of Conky-Pitstop. Now that I know, and I know how to convert from standard 4 day to 5-10 day mode, I won't say it's not possible anymore. It's been a very long time since this was an issue. I'm not perfect okay?
*EDIT* P.S. I'm colourblind. I won't see any sort of coloured anything in an example you show me. Just for future reference. Okay, I'll see it, just not in colour. I do understand shapes and locations, but you say a colour and my brain turns right off. The only reason I use Blue and Red on the forums is because I can use the word in the tag to get the effect. It's by memory, I don't actually see it.
Last edited by 42dorian; May 7th, 2011 at 12:14 AM.
thanks to everyone who helped with the problem. You all are the bomb!!!
Rusty
Bookmarks