Re: weather in conky (LUA scripts)

mrpeachy wrote:

very nice smile
http://en.zimagez.com/miniature/screenshot-1348.png

ill put them in the archive and make a note in the howto

OH NICE!!!!!!!!!!!  I really like those!

Excellent work falldown.

Re: weather in conky (LUA scripts)

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*)&deg;")
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)

It's hard to find something if you don't know what you're looking for.
I have a blog, it's mostly about conky and lua stuff... go here.

Re: weather in conky (LUA scripts)

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.

I'm pretty sure that zombies really do exist...
MrPeachy's v9000      Sector11's Conky PitStop      My Gallery

Re: weather in conky (LUA scripts)

falldown wrote:
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?

Re: weather in conky (LUA scripts)

mrpeachy wrote:

@ sector11, well its 99% your code just changed this part

No no no, post the whole thing, someone else may want it.  big_smile

Re: weather in conky (LUA scripts)

Sector11 wrote:

Well this sounds good....

mrpeachy does the code
falldown does the imagery
I do layouts

That's cool!

lol works for me!!

I'm pretty sure that zombies really do exist...
MrPeachy's v9000      Sector11's Conky PitStop      My Gallery

Re: weather in conky (LUA scripts)

mrpeachy wrote:

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*)&deg;")
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  big_smile

I'll search for

--get wind direction #######

Oops that doesn't exist in mine. {sigh}

Re: weather in conky (LUA scripts)

Sector11 wrote:
mrpeachy wrote:

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*)&deg;")
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  big_smile

I'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*)&deg;")

to get you in the right place
http://crunchbanglinux.org/forums/post/191097/#p191097

It's hard to find something if you don't know what you're looking for.
I have a blog, it's mostly about conky and lua stuff... go here.

Re: weather in conky (LUA scripts)

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

Re: weather in conky (LUA scripts)

sbjaved wrote:

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_weather

not entirely sure why

try it and see if that works for you too

It's hard to find something if you don't know what you're looking for.
I have a blog, it's mostly about conky and lua stuff... go here.

Re: weather in conky (LUA scripts)

yup full path works smile thanks... love the script

Re: weather in conky (LUA scripts)

sbjaved wrote:

yup full path works smile 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!

It's hard to find something if you don't know what you're looking for.
I have a blog, it's mostly about conky and lua stuff... go here.

Re: weather in conky (LUA scripts)

mrpeachy wrote:

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 smile

I'm pretty sure that zombies really do exist...
MrPeachy's v9000      Sector11's Conky PitStop      My Gallery

Re: weather in conky (LUA scripts)

mrpeachy wrote:
sbjaved wrote:

yup full path works smile 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!  big_smile  hehehehehe

Re: weather in conky (LUA scripts)

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
http://en.zimagez.com/miniature/2012-02-19-2059331440x900scrot.png
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)

It's hard to find something if you don't know what you're looking for.
I have a blog, it's mostly about conky and lua stuff... go here.

Re: weather in conky (LUA scripts)

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)

It's hard to find something if you don't know what you're looking for.
I have a blog, it's mostly about conky and lua stuff... go here.

Re: weather in conky (LUA scripts)

Stand up and take a bow mrpeachy!

Tomorrow I play ...
Off to bed...

Re: weather in conky (LUA scripts)

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 v9000

Haha, heard that before!! lol

Re: weather in conky (LUA scripts)

ackernan wrote:
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 v9000

Haha, heard that before!! lol

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.  big_smile

Re: weather in conky (LUA scripts)

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 smile )

Re: weather in conky (LUA scripts)

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???

Re: weather in conky (LUA scripts)

sbjaved wrote:

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

It's hard to find something if you don't know what you're looking for.
I have a blog, it's mostly about conky and lua stuff... go here.

Re: weather in conky (LUA scripts)

Thats strange. intellicast is reporting pressure (currently 29.85") hmmm...

Last edited by sbjaved (2012-02-20 16:30:48)

Re: weather in conky (LUA scripts)

@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

I'm pretty sure that zombies really do exist...
MrPeachy's v9000      Sector11's Conky PitStop      My Gallery

Re: weather in conky (LUA scripts)

@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