SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#426 2012-02-19 00:08:54

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: weather in conky (LUA scripts) updated 12/26/13!

mrpeachy wrote:

very nice smile
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.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Help fund CrunchBang, donate to the project!

#427 2012-02-19 00:11:12

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: weather in conky (LUA scripts) updated 12/26/13!

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)

Offline

#428 2012-02-19 00:14:09

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,727

Re: weather in conky (LUA scripts) updated 12/26/13!

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.

Offline

#429 2012-02-19 01:13:40

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: weather in conky (LUA scripts) updated 12/26/13!

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?


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#430 2012-02-19 01:15:46

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: weather in conky (LUA scripts) updated 12/26/13!

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


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#431 2012-02-19 01:25:39

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,727

Re: weather in conky (LUA scripts) updated 12/26/13!

Sector11 wrote:

Well this sounds good....

mrpeachy does the code
falldown does the imagery
I do layouts

That's cool!

lol works for me!!

Offline

#432 2012-02-19 01:39:49

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: weather in conky (LUA scripts) updated 12/26/13!

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}


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#433 2012-02-19 01:45:35

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: weather in conky (LUA scripts) updated 12/26/13!

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

Offline

#434 2012-02-19 01:53:59

sbjaved
New Member
From: Gujranwala
Registered: 2012-02-19
Posts: 8

Re: weather in conky (LUA scripts) updated 12/26/13!

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

Offline

#435 2012-02-19 02:00:24

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: weather in conky (LUA scripts) updated 12/26/13!

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

Offline

#436 2012-02-19 02:04:21

sbjaved
New Member
From: Gujranwala
Registered: 2012-02-19
Posts: 8

Re: weather in conky (LUA scripts) updated 12/26/13!

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

Offline

#437 2012-02-19 02:46:15

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: weather in conky (LUA scripts) updated 12/26/13!

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!

Offline

#438 2012-02-19 04:11:46

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,727

Re: weather in conky (LUA scripts) updated 12/26/13!

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

Offline

#439 2012-02-19 19:33:22

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: weather in conky (LUA scripts) updated 12/26/13!

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


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#440 2012-02-20 03:02:14

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: weather in conky (LUA scripts) updated 12/26/13!

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

Offline

#441 2012-02-20 03:12:03

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: weather in conky (LUA scripts) updated 12/26/13!

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)

Offline

#442 2012-02-20 03:39:46

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: weather in conky (LUA scripts) updated 12/26/13!

Stand up and take a bow mrpeachy!

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


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#443 2012-02-20 12:04:31

ackernan
#! Junkie
Registered: 2011-01-10
Posts: 403

Re: weather in conky (LUA scripts) updated 12/26/13!

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

Offline

#444 2012-02-20 14:23:07

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: weather in conky (LUA scripts) updated 12/26/13!

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


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#445 2012-02-20 14:42:15

sbjaved
New Member
From: Gujranwala
Registered: 2012-02-19
Posts: 8

Re: weather in conky (LUA scripts) updated 12/26/13!

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 )

Offline

#446 2012-02-20 14:48:10

sbjaved
New Member
From: Gujranwala
Registered: 2012-02-19
Posts: 8

Re: weather in conky (LUA scripts) updated 12/26/13!

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

Offline

#447 2012-02-20 16:21:11

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: weather in conky (LUA scripts) updated 12/26/13!

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

Offline

#448 2012-02-20 16:29:29

sbjaved
New Member
From: Gujranwala
Registered: 2012-02-19
Posts: 8

Re: weather in conky (LUA scripts) updated 12/26/13!

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

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

Offline

#449 2012-02-21 17:09:59

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,727

Re: weather in conky (LUA scripts) updated 12/26/13!

@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

Offline

Be excellent to each other!

#450 2012-02-21 17:45:59

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: weather in conky (LUA scripts) updated 12/26/13!

@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


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo