Re: weather in conky (LUA scripts)

dlm955 wrote:

Ok xubuntu testing machine back on line in time for new version.....

   installed 1314.lua and conkyrc, having problem with font images it is a path to problem.....

   don't know what or where to change path [ lua or conkyrc what line] get numbers and letters no image..
   no error shows in terminal


                           http://i.imgur.com/Bhhovs.png

Mine looked like this until I reinstalled fonts

Then MrP updated it again.... lol

Congratulations, you've figured out the sound of one hand clapping...

Re: weather in conky (LUA scripts)

yes, that would be a font issue
even if you do install them and refresh the font cache you have to kill and restart conky to get them showing up

@Sector11 those look great!

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:

yes, that would be a font issue
even if you do install them and refresh the font cache you have to kill and restart conky to get them showing up

     I tried to reinstall ConkyWeather.ttf in /.fonts followed with sudo fc-cache -fv, 1314conky shutdown while doing this
     restart conky same thing

Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Re: weather in conky (LUA scripts)

dlm955 wrote:
mrpeachy wrote:

yes, that would be a font issue
even if you do install them and refresh the font cache you have to kill and restart conky to get them showing up

     I tried to reinstall ConkyWeather.ttf in /.fonts followed with sudo fc-cache -fv, 1314conky shutdown while doing this
     restart conky same thing

sorry for the confusion, you need these fonts
moon phases font and conkywindNESW in addition to the conkyweather font
which are here
http://ompldr.org/vYmJ4Zw

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:

sorry for the confusion, you need these fonts
moon phases font and conkywindNESW in addition to the conkyweather font
which are here
http://ompldr.org/vYmJ4Zw

     thanks MrPeachy

Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Re: weather in conky (LUA scripts)

dlm955 wrote:

     thanks MrPeachy

you are quite welcome
when you have everything up and running can you post a screenshot and let me know what cpu you are getting with just that conky running?

Sector11, do you recall what kind of cpu usage you got from conky when you were using conkyforecast for a large weather display?

here is just me playing around
http://s10.postimage.org/3kozgon51/Screenshot.jpg

this uses the same data gathering function as the other scripts, but everything you see is generated in the lua script
http://crunchbanglinux.org/pastebin/1316

in the conkyrc, im just loading the script and calling the functions
lua_load ~/lua/forecast_curve.lua
lua_draw_hook_pre weatherdata#starts the lua weather data gathering function, call once at top of conkyrc
TEXT
${lua weather}${cpu cpu0}

ive been working on the weather script, seeing if i can get the cpu down and working to make sure there are no memory leaks

i havnt been able to test the script for memory over a long period yet
but i plan to

Last edited by mrpeachy (2011-11-19 18:59:30)

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)

Be glad to MrPeachy

   just restarted computer xubuntu seems to not clear all mem after closing a window...
   on conky start up it was  9% cpu and 28% mem I'll close firefox and let conky run for a couple hrs and check again [ it's now 2:10 pm est]

Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Re: weather in conky (LUA scripts)

MrP On a fresh install #! Statler for the laptop (2.0 Ghz with 3 G memory) I was seeing 50% with weather conky and 55-60 with Chrome (becoming bloatware).
I have not installed the 1314 script yet.

I am wondering if I have sensors installed correctly on the desktop now.

Congratulations, you've figured out the sound of one hand clapping...

Re: weather in conky (LUA scripts)

BoredOOMM wrote:

MrP On a fresh install #! Statler for the laptop (2.0 Ghz with 3 G memory) I was seeing 50% with weather conky and 55-60 with Chrome (becoming bloatware).
I have not installed the 1314 script yet.

I am wondering if I have sensors installed correctly on the desktop now.

50% cpu? that does seem a little high when i get 12% on my 1.66 Ghz Atom...
i think i might use the script to put together something more typical in terms of forecast output
i doubt most people wouldn't want to see everything for every day at the same time

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:

Sector11, do you recall what kind of cpu usage you got from conky when you were using conkyforecast for a large weather display?

here is just me playing around

WOW!!!!!!!!!!!!! I like your playing!!!!

conkyForecast drew 0 CPU usage once running, that was the beauty of it, until it did it's update.  Reason: I used templates once those became available, and that meant only 1 execpi call every 30 minutes to get ALL weather from the site.

update_interval 60

TEXT
${execpi 1800 conkyForecast --location=ARBA0009 --template=$HOME/Conky/templates/weather.template}

That was one of my "weather only" conkys, from an old screenshot, CPU usage on the bottom left:
http://thumbnails66.imagebam.com/16021/15af0f160203347.jpg

Last edited by Sector11 (2011-11-19 21:03:52)

Re: weather in conky (LUA scripts)

http://i.imgur.com/796hTs.png
    click pic to inlarge
       4:15 pm est
     Ok after 2hrs run time it increased mem usage to 33% ....3% increase, nothing on cpu
    I believe the increase is due to the screensaver forgot to turn it off

     I'll let it run more and keep an eye on it

Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Re: weather in conky (LUA scripts)

dlm955 wrote:

http://i.imgur.com/796hTs.png
    click pic to inlarge
       4:15 pm est
     Ok after 2hrs run time it increased mem usage to 33% ....3% increase, nothing on cpu
    I believe the increase is due to the screensaver forgot to turn it off

     I'll let it run more and keep an eye on it

Which version is this?

Congratulations, you've figured out the sound of one hand clapping...

Re: weather in conky (LUA scripts)

a minor update
some garbage collecting features (i hope) and a new variable, short day names option=das
http://crunchbanglinux.org/pastebin/1318

used it to make this
http://s7.postimage.org/pdda99waf/Screenshot.jpg

this is the conkyrc that did it

lua_load ~/lua/forecast_testing2.lua
lua_draw_hook_pre weatherdata#starts the lua weather data gathering function, call once at top of conkyrc

TEXT 
 DAY ${goto 50}${lua weather day1.das}${goto 100}${lua weather day2.das}${goto 150}${lua weather day3.das}${goto 200}${lua weather day4.das}${goto 250}${lua weather day5.das}${goto 300}${lua weather day6.das}${goto 350}${lua weather day7.das}${goto 400}${lua weather day8.das}${goto 450}${lua weather day9.das}${goto 500}${lua weather day10.das}

 CON ${lua weather font.day1 50 50 32 0xFFFFFF}${lua weather font.day2 100 50 32 0xFFFFFF}${lua weather font.day3 150 50 32 0xFFFFFF}${lua weather font.day4 200 50 32 0xFFFFFF}${lua weather font.day5 250 50 32 0xFFFFFF}${lua weather font.day6 300 50 32 0xFFFFFF}${lua weather font.day7 350 50 32 0xFFFFFF}${lua weather font.day8 400 50 32 0xFFFFFF}${lua weather font.day9 450 50 32 0xFFFFFF}${lua weather font.day10 500 50 32 0xFFFFFF}

HIGH ${goto 50}${lua weather day1.hih}°F${goto 100}${lua weather day2.hih}°F${goto 150}${lua weather day3.hih}°F${goto 200}${lua weather day4.hih}°F${goto 250}${lua weather day5.hih}°F${goto 300}${lua weather day6.hih}°F${goto 350}${lua weather day7.hih}°F${goto 400}${lua weather day8.hih}°F${goto 450}${lua weather day9.hih}°F${goto 500}${lua weather day10.hih}°F
 LOW ${goto 50}${lua weather day1.low}°F${goto 100}${lua weather day2.low}°F${goto 150}${lua weather day3.low}°F${goto 200}${lua weather day4.low}°F${goto 250}${lua weather day5.low}°F${goto 300}${lua weather day6.low}°F${goto 350}${lua weather day7.low}°F${goto 400}${lua weather day8.low}°F${goto 450}${lua weather day9.low}°F${goto 500}${lua weather day10.low}°F
 HUM ${goto 50}${lua weather day1.hum} %${goto 100}${lua weather day2.hum} %${goto 150}${lua weather day3.hum} %${goto 200}${lua weather day4.hum} %${goto 250}${lua weather day5.hum} %${goto 300}${lua weather day6.hum} %${goto 350}${lua weather day7.hum} %${goto 400}${lua weather day8.hum} %${goto 450}${lua weather day9.hum} %${goto 500}${lua weather day10.hum} %
RAIN ${goto 50}${lua weather day1.ppt} %${goto 100}${lua weather day2.ppt} %${goto 150}${lua weather day3.ppt} %${goto 200}${lua weather day4.ppt} %${goto 250}${lua weather day5.ppt} %${goto 300}${lua weather day6.ppt} %${goto 350}${lua weather day7.ppt} %${goto 400}${lua weather day8.ppt} %${goto 450}${lua weather day9.ppt} %${goto 500}${lua weather day10.ppt} %
SNOW ${goto 50}${lua weather day1.snw} %${goto 100}${lua weather day2.snw} %${goto 150}${lua weather day3.snw} %${goto 200}${lua weather day4.snw} %${goto 250}${lua weather day5.snw} %${goto 300}${lua weather day6.snw} %${goto 350}${lua weather day7.snw} %${goto 400}${lua weather day8.snw} %${goto 450}${lua weather day9.snw} %${goto 500}${lua weather day10.snw} %
WIND ${goto 50}${lua weather day1.wmh} mph${goto 100}${lua weather day2.wmh} mph${goto 150}${lua weather day3.wmh} mph${goto 200}${lua weather day4.wmh} mph${goto 250}${lua weather day5.wmh} mph${goto 300}${lua weather day6.wmh} mph${goto 350}${lua weather day7.wmh} mph${goto 400}${lua weather day8.wmh} mph${goto 450}${lua weather day9.wmh} mph${goto 500}${lua weather day10.wmh} mph

     ${lua weather windfont.day1 50 175 42 0xFFFFFF}${lua weather windfont.day2 100 175 42 0xFFFFFF}${lua weather windfont.day3 150 175 42 0xFFFFFF}${lua weather windfont.day4 200 175 42 0xFFFFFF}${lua weather windfont.day5 250 175 42 0xFFFFFF}${lua weather windfont.day6 300 175 42 0xFFFFFF}${lua weather windfont.day7 350 175 42 0xFFFFFF}${lua weather windfont.day8 400 175 42 0xFFFFFF}${lua weather windfont.day9 450 175 42 0xFFFFFF}${lua weather windfont.day10 500 175 42 0xFFFFFF}

Last edited by mrpeachy (2011-11-19 22:30:38)

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:

a minor update
some garbage collecting features (i hope) and a new variable, short day names option=das

Neat and clean and I like it.   LOL, 28% chance of snow predicted for Tuesday?!?  Maybe in the mountains.

Last edited by BoredOOMM (2011-11-19 22:46:08)

Congratulations, you've figured out the sound of one hand clapping...

Re: weather in conky (LUA scripts)

BoredOOMM wrote:
mrpeachy wrote:

a minor update
some garbage collecting features (i hope) and a new variable, short day names option=das

Neat and clean and I like it.   LOL, 28% chance of snow predicted for Tuesday?!?  Maybe in the mountains.

thanks smile
i saw that you had deleted the snow chance from your conky earlier

i'm happy with the versatility and ease of use of my script
would be happier if it was a little les cpu intensive

i just dont like having conky eat up too many cpu cycles
although i suppose with a more powerful computer, the cost would be much less

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:
BoredOOMM wrote:
mrpeachy wrote:

a minor update
some garbage collecting features (i hope) and a new variable, short day names option=das

Neat and clean and I like it.   LOL, 28% chance of snow predicted for Tuesday?!?  Maybe in the mountains.

thanks smile
i saw that you had deleted the snow chance from your conky earlier

i'm happy with the versatility and ease of use of my script
would be happier if it was a little les cpu intensive

i just dont like having conky eat up too many cpu cycles
although i suppose with a more powerful computer, the cost would be much less

I remember the day in Florissant in Jan 1982 when it was -27

I am baffled at the CPU use here and am working to migrate desktop to #! soon.

Congratulations, you've figured out the sound of one hand clapping...

Re: weather in conky (LUA scripts)

BoredOOMM wrote:


Which version is this?


Xubuntu 11.10 kernel 3.0.0-12-generic x86_64 this is a computer I keep around for distro hopping I keep #! on my main computer


    MrPeachy ran the test again without screensaver it held steady 28% mem, CPU jumped around between 6 and 9% 

Last edited by dlm955 (2011-11-19 23:41:40)

Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Re: weather in conky (LUA scripts)

dlm955 wrote:
BoredOOMM wrote:


Which version is this?


Xubuntu 11.10 kernel 3.0.0-12-generic x86_64 this is a computer I keep around for distro hopping I keep #! on my main computer


    MrPeachy ran the test again without screensaver it held steady 28% mem, CPU jumped around between 6 and 9% 

Thanks dlm955

good that there doesn't appear to be any memory issues with the script
i think its the graphical scripts that tend to have the leaks

and 6 to 9 % isnt too high either

the latest version is probably as good as i can get it smile
if anyone has any ideas for additional functionality i would be happy to implement them if possible

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:
dlm955 wrote:
BoredOOMM wrote:


Which version is this?


Xubuntu 11.10 kernel 3.0.0-12-generic x86_64 this is a computer I keep around for distro hopping I keep #! on my main computer


    MrPeachy ran the test again without screensaver it held steady 28% mem, CPU jumped around between 6 and 9% 

Thanks dlm955

good that there doesn't appear to be any memory issues with the script
i think its the graphical scripts that tend to have the leaks

and 6 to 9 % isnt too high either

the latest version is probably as good as i can get it smile
if anyone has any ideas for additional functionality i would be happy to implement them if possible

Current temp and (BOOMM Time hack) at the bottom is all I need.

1318 on laptop shows 4% cpu even with Chrome 3 tabs

Last edited by BoredOOMM (2011-11-20 00:24:37)

Congratulations, you've figured out the sound of one hand clapping...

Re: weather in conky (LUA scripts)

MrPeachy
Glad to help,after all you did the hard part...
   And 1318 looks great fits right in with something I'am working on for my #! computer
   need to try somethings but I think that would look great if I put them together

               http://i.imgur.com/Pw35ks.jpg

Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Re: weather in conky (LUA scripts)

dlm955 wrote:

MrPeachy
Glad to help,after all you did the hard part...
   And 1318 looks great fits right in with something I'am working on for my #! computer
   need to try somethings but I think that would look great if I put them together

               http://i.imgur.com/Pw35ks.jpg

Can you add text at the bottom like I did for time? Add one graph at a time for testing.

http://s11.postimage.org/omo53cjlb/1318running.jpg

Congratulations, you've figured out the sound of one hand clapping...

Re: weather in conky (LUA scripts)

Just added cpu and mem usage to bottom of 1318 and ran it by itself
      mem usage same, cpu is cut in half....from the other I tested

Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Re: weather in conky (LUA scripts)

mrpeachy, I just upgraded to v7 of your script, thanks to Sector11. It is running in two columns.

I just widened the window & doubled the size of the font to 20.

Which has caused the columns to overlap some & I've lost sight of almost 4 days. (sounds like a bender doesn't it!)

@Sector11: I've got the weathericons displaying now, all over the place but displaying. smile

Last edited by handy (2011-12-31 03:53:33)

Re: weather in conky (LUA scripts)

from conky thread

handy wrote:

Hi there everyone, & hello to mrpeachy.

I've just rejoined here, (was a member some years ago in the early days of #!, not sure if I don't remember my login details correctly or my account has been deleted through lack of use? Either way there is no problem.)

mrpeachy I am who Sector11 mentioned a few posts up, who was wondering if it was possible to scroll your wondrous weather lua script in conky.

My eyes aren't great, & for a variety of reasons it suits me to sit with my eyes about 5ft back from a 24" screen.

Due to the eyes/distance, I enlarge all my fonts & it works pretty well with only rare times when I have to get my head close & pear over the top of my spectacles to attempt to read something. Thankfully. smile

So, (I'm getting to it) I have a Sector11 setup/modified conky using your forecast lua that is showing 10 days running top to bottom of the screen. If I use the default font sizes & conky size I really can't decipher much of it at all.

So I enlarged the font & widened the conky display to 450 which makes it easy to read, but I don't get more than 2 days in advance forecast before I run out of screen.

So the scrolling I'm talking about would allow me to bring up those hidden days into view.

Phew.

Beyond all that, I must thank you for your huge contribution to the conky/lua community. Your blog shows your humility & generosity.

I wish everyone a happy healthy, safe, secure & stimulating new year. big_smile Lets make this year better than the last one.

first, welcome to #! thanks for your kind words

second, down to business... as it is currently written and how it currently functions it would be difficult to implement a scroll function as you have suggested
BUT
perhaps with some tweaking and some re-writeing this could be possible (anything is possible when your writing your own code big_smile )
i have some ideas, but im wondering how to implement it

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)

handy wrote:

mrpeachy, I just upgraded to v7 of your script, thanks to Sector11. It is running in two columns.

I just widened the window & doubled the size of the font to 20.

Which has caused the columns to overlap some & I've lost sight of almost 4 days. (sounds like a bender doesn't it!)

Also the weathericons aren't displaying, though I believe I have the path correct?

can you post your conky rc
and the setup portion of the lua script and ill see if i can track down the problem

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.