Re: weather in conky (LUA scripts)
OH NICE!!!!!!!!!!! I really like those!
Excellent work falldown.
CrunchBang Linux Forums » Tips, Tricks & Scripts » weather in conky (LUA scripts)
OH NICE!!!!!!!!!!! I really like those!
Excellent work falldown.
re the fix posted above... it needed more fixing
so i updated it
and updated the main link in the first post
lines 711 to 720 should be this
--get wind direction #######################################################
local s,f,twd=string.find(nowweather,">Direction: </a></td>%s*<td style=[%p%a]*>([%d&;%s%(%a%)]*)</td>%s*</tr>")
--check for NA
local a,b,t=string.find(twd,"(%a*)")
local tnesw=t
if tnesw~="NA" then
local a,b,t=string.find(twd,"(%d*)°")
now["wind_deg"]=t..wind_degrees_unit
local a,b,tnesw=string.find(twd,"%((%a*)%)")
if tmph>0 and tmph<19 then@ sector11, well its 99% your code just changed this part
starting line 98
--start or weather forecast table section
--set start forecast day
start_day=1
--set total forecast days you want to display
number_of_days=5
topy=15
topyy=135 -- topy+(topyy*1)
topx=285
topxx=137.5
--set coordinates for top lef corners for each repeat
top_left_x_coordinate[1],top_left_y_coordinate[1] =topx ,topy
top_left_x_coordinate[2],top_left_y_coordinate[2] =topx ,150
top_left_x_coordinate[3],top_left_y_coordinate[3] =10 ,290
top_left_x_coordinate[4],top_left_y_coordinate[4] =10+(topxx*1) ,290
top_left_x_coordinate[5],top_left_y_coordinate[5] =10+(topxx*2) ,290
--########################################################################################Last edited by mrpeachy (2012-02-19 00:14:26)
OH NICE!!!!!!!!!!! I really like those!
Excellent work falldown.
Thank you both.. I'm not much of a coder.. so I try to contribute where I can.
Sector11 wrote:OH NICE!!!!!!!!!!! I really like those!
Excellent work falldown.
Thank you both.. I'm not much of a coder.. so I try to contribute where I can.
Well this sounds good....
mrpeachy does the code
falldown does the imagery
I do layouts
That's cool!
@ mrpeachy did you not get the email concerning the translation I sent you?
@ sector11, well its 99% your code just changed this part
No no no, post the whole thing, someone else may want it. ![]()
Well this sounds good....
mrpeachy does the code
falldown does the imagery
I do layoutsThat's cool!
works for me!!
re the fix posted above... it needed more fixing
so i updated itand updated the main link in the first post
lines 711 to 720 should be this
--get wind direction ####################################################### local s,f,twd=string.find(nowweather,">Direction: </a></td>%s*<td style=[%p%a]*>([%d&;%s%(%a%)]*)</td>%s*</tr>") --check for NA local a,b,t=string.find(twd,"(%a*)") local tnesw=t if tnesw~="NA" then local a,b,t=string.find(twd,"(%d*)°") now["wind_deg"]=t..wind_degrees_unit local a,b,tnesw=string.find(twd,"%((%a*)%)") if tmph>0 and tmph<19 then
Problem is I have two scripts and two config files:
~/v9000/v9000.lua
~/.v9000.config.lua
~/v9000/v9000-nocpu.lua
~/.v9000.nocpu.config.lua
I really like the "nocpu" script but it means the line numbers are not correct.
You should include both in the archive ![]()
I'll search for
--get wind direction #######Oops that doesn't exist in mine. {sigh}
mrpeachy wrote:re the fix posted above... it needed more fixing
so i updated itand updated the main link in the first post
lines 711 to 720 should be this
--get wind direction ####################################################### local s,f,twd=string.find(nowweather,">Direction: </a></td>%s*<td style=[%p%a]*>([%d&;%s%(%a%)]*)</td>%s*</tr>") --check for NA local a,b,t=string.find(twd,"(%a*)") local tnesw=t if tnesw~="NA" then local a,b,t=string.find(twd,"(%d*)°") now["wind_deg"]=t..wind_degrees_unit local a,b,tnesw=string.find(twd,"%((%a*)%)") if tmph>0 and tmph<19 thenProblem is I have two scripts and two config files:
~/v9000/v9000.lua
~/.v9000.config.lua~/v9000/v9000-nocpu.lua
~/.v9000.nocpu.config.luaI really like the "nocpu" script but it means the line numbers are not correct.
You should include both in the archiveI'll search for
--get wind direction #######Oops that doesn't exist in mine. {sigh}
try this post, the poswt you quoted was the second fix to apply after the first fix
search for
local a,b,t=string.find(twd,"(%d*)°") to get you in the right place
http://crunchbanglinux.org/forums/post/191097/#p191097
mrpeachy i have a weird problem with the weather script. it runs fine from the commandline but it won't show when i try to run it from alt+f2...????? conky -c ~/v9000/conky_weather works in terminal only
mrpeachy i have a weird problem with the weather script. it runs fine from the commandline but it won't show when i try to run it from alt+f2...????? conky -c ~/v9000/conky_weather works in terminal only
i just tried it from alt+f2
i had to type the full path
conky -c /home/username/v9000/conky_weathernot entirely sure why
try it and see if that works for you too
yup full path works
thanks... love the script
yup full path works
thanks... love the script
thanks sbjaved
just to note that i put s11template.lua in the archive earlier but just remembered to put the fonts it requires in there too!
just to note that i put s11template.lua in the archive earlier but just remembered to put the fonts it requires in there too!
I'm gonna snatch that up ![]()
sbjaved wrote:yup full path works
thanks... love the script
thanks sbjaved
just to note that i put s11template.lua in the archive earlier but just remembered to put the fonts it requires in there too!
Fonts? I don't need no fonts!
hehehehehe
v9000 is going through some labour pains before it is sent off into the big wide world on its own
http://dl.dropbox.com/u/19008369/new%20 000.tar.gz
this hasnt been updated on the main link yet
changes
the translation setup section has been taken out of v9000.lua and into .v9000_config.lua
in the archive itself, .v9000_config.lua is inside the v9000 folder and needs to be moved to the home directory
/home/username/.v9000_config.lua
this is the last change to be made to the config file
and (although ive said it before) barring bugs, should be the last version of v9000
as set up you will get a display (weather_testing.lua) that looks like this
which i believe is every data option that can be output by the script (first 2 columns are current weather, then forecast weather for day 1)
the options in blue are the ones that can be affected by the translation mechanisms of the script all setup in the config
Last edited by mrpeachy (2012-02-20 03:23:31)
Intellicast weather conditions
this is an attempt to gather together all of the possible outputs for weather conditions that intellicast has
in alphabetical order
AM Clouds/PM Sun
AM Drizzle
AM Fog/PM Sun
AM Rain/Snow Showers
AM Showers
AM Snow Showers/Wind
AM Thunderstorms
Broken Clouds
Clear
Clear/Wind
Cloudy
Drizzle
Few Clouds
Few Snow Showers
Fog Late
Freezing Drizzle
Haze
Isolated Thunderstorms
Light Rain/Wind
Light Snow
Moderate Fog
Mostly Cloudy
Mostly Cloudy/Wind
Mostly Sunny
Overcast
Partly Cloudy
Partly Cloudy/Wind
PM Showers
Rain/Snow Showers
Scattered Clouds
Scattered Showers
Scattered Thunderstorms
Showers
Showers Early
Snow Showers
Snow Showers Late
Sprinkles
Sunny
Sunny/Wind
Thunderstorms
Thunderstorms/Wind
if you find new ones, copy these add the new ones and make a post, then i can update here
Last edited by mrpeachy (2012-03-11 16:40:40)
Stand up and take a bow mrpeachy!
Tomorrow I play ...
Off to bed...
this is the last change to be made to the config file
and (although ive said it before) barring bugs, should be the last version of v9000
Haha, heard that before!! ![]()
mrpeachy wrote:this is the last change to be made to the config file
and (although ive said it before) barring bugs, should be the last version of v9000Haha, heard that before!!
Shhhhhhhhhhhhhhhhhh
You'll encourage him... and once he's on a roll there's no stopping him!
On second thought ...
Not only have I heard that before, I've said the same thing.
Lets hope it doesn't need anything else though. it's running smooth now, and mrpeachy needs a holiday. ![]()
Today I started my pc and weather wouldn't load. Running in terminal gives this:
Conky: llua_do_call: function conky_weather execution failed: /home/saad/v9000/v9000.lua:743: attempt to perform arithmetic on a nil value
??? (I do have a bad luck streak going
)
Okay in the v9000.lua commenting out this line 743 fixes the issue:
--now["pressure_mb"]=round(tonumber(t)*33.86)
Maybe pressure is not being reported for my area???
Okay in the v9000.lua commenting out this line 743 fixes the issue:
--now["pressure_mb"]=round(tonumber(t)*33.86)
Maybe pressure is not being reported for my area???
yes, there are 2 potential sources for errors here...
is it a problem with the code? or is intellicast doing something odd?
can you go to the intellicast site and take a look at what they are showing for pressure?
or post your intellicast web address and i can look
Thats strange. intellicast is reporting pressure (currently 29.85") hmmm...
Last edited by sbjaved (2012-02-20 16:30:48)
@MrPeachy Had a weather condition for Haze this morning.
AM Clouds/PM Sun
AM Rain/Snow Showers
AM Showers
AM Snow Showers/Wind
Clear
Cloudy
Few Clouds
Few Snow Showers
Haze
Isolated Thunderstorms
Light Rain/Wind
Moderate Fog
Mostly Cloudy
Mostly Sunny
Overcast
Partly Cloudy
Rain/Snow Showers
Scattered Clouds
Scattered Showers
Showers
Snow Showers
Snow Showers Late
Sunny
@MrPeachy Had a weather condition for Broken Clouds this morning.
How the heck does one break clouds?
AM Clouds/PM Sun
AM Rain/Snow Showers
AM Showers
AM Snow Showers/Wind
Broken Clouds
Clear
Cloudy
Few Clouds
Few Snow Showers
Haze
Isolated Thunderstorms
Light Rain/Wind
Moderate Fog
Mostly Cloudy
Mostly Sunny
Overcast
Partly Cloudy
Rain/Snow Showers
Scattered Clouds
Scattered Showers
Showers
Snow Showers
Snow Showers Late
Sunny
Posts [ 426 to 450 of 733 ]
CrunchBang Linux Forums » Tips, Tricks & Scripts » weather in conky (LUA scripts)
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.