SEARCH

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

You are not logged in.

#476 2014-01-28 03:49:28

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

Re: Wun Weather Script for Conky (Lua)

jst_joe wrote:

Very nice Sector11 cool

Thanks Joe

mrpeachy wrote:

Huge THANK YOU!  to Sector11 for his continued support of my work and the conky world in general!
We are lucky to have you  big_smile   big_smile

Well, if people like you didn't write scripts I'd be dead in the water.  As I have said before it's all a team effort.

And lets face it, WUN ... is better than sliced bread!
What comes is obvious but I'm not going there.  lol  lol  lol

Since I'm in a metric world where UVi is more important than snow, I tweaked jst_joe's template as well ...
image.jpg
Very nice of falldown to create the weather icons a little off centre, allows the temps in there very smoothly!
2014_01_27_14_41_05_460x460_Sector11.jpg

Have no idea how to darken the "lua" so I used 'draw-bg.lua' to get it darker:

TEXT
${lua conky_draw_bg 10 2 05 370 410 0x000000 0.4}

But falldown's template, tweaked of course, is now my default weather ... sorry Joe. cool


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

Offline

Help fund CrunchBang, donate to the project!

#477 2014-01-28 07:22:20

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

Re: Wun Weather Script for Conky (Lua)

mrpeachy wrote:
local function day_suf(date)
local dnu=string.len(date)
	if dnu==1 then
	dend=tostring(date)
	elseif dnu==2 then
	dend=tostring(date):sub(2,2)
	end
	if dend==1 then
	return "st"
	elseif dend==2 then
	return "nd"
	elseif dend==3 then
	return "rd"
	else
	return "th"
	end
end--function

the function in the above code is something i just wrote to return the correct date suffix smile

just realized that this isn't going to work for the 11th 12th and 13th :8

Offline

#478 2014-01-28 14:47:03

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

Re: Wun Weather Script for Conky (Lua)

mrpeachy wrote:

just realized that this isn't going to work for the 11th 12th and 13th :8

Change the English language:

10th
11st
12nd
13rd
14th

tongue twisters but we'd get use to them - in two or three generationslol lol

.. if ... then statements maybe?


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

Offline

#479 2014-01-28 15:42:01

jst_joe
#! Junkie
From: Here, There and After
Registered: 2012-07-03
Posts: 297

Re: Wun Weather Script for Conky (Lua)

Sector11 wrote:

But falldown's template, tweaked of course, is now my default weather ... sorry Joe. cool

No need to be sorry, it's my default also. big_smile


A person who has a cat by the tail knows a whole lot more about cats than someone who has just read about them.
Mark Twain

Offline

#480 2014-01-28 18:22:14

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

Re: Wun Weather Script for Conky (Lua)

jst_joe wrote:
Sector11 wrote:

But falldown's template, tweaked of course, is now my default weather ... sorry Joe. cool

No need to be sorry, it's my default also. big_smile

OH MY!  That makes what I said on the new WUN Weather Templates page at CPS even better! wink

Did you get that guys? 

Page two is up at Conky PitStop

Any advice on things missed or other help appreciated.

Last edited by Sector11 (2014-01-28 18:25:03)


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

Offline

#481 2014-01-28 18:30:06

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

Re: Wun Weather Script for Conky (Lua)

very nice job sector11, and i think the instructions written from your perspective will be really helpful
i may be too familiar with the scripts and with lua code that i take knowledge of these things for granted smile

if there is anything you would like to me contribute, then please let me know!  big_smile

Last edited by mrpeachy (2014-01-28 18:36:34)

Offline

#482 2014-01-28 18:43:14

jst_joe
#! Junkie
From: Here, There and After
Registered: 2012-07-03
Posts: 297

Re: Wun Weather Script for Conky (Lua)

Excellent write up sir cool
I have found that commenting out line 5

--username=os.getenv("USERNAME") -- line 5
--defualt path to wun folder
--pathtowun='/home/'..username..'/wun/' -- line 7
--if you want to have your wun folder in a different location
--enter the full path to the folder in quotes, for example:
--#########################################
pathtowun="/home/sector11/wun/" -- line 11

in wun.lua  made no difference on my system.
I did have to change lines 7 & 11 as you mentioned. wink


A person who has a cat by the tail knows a whole lot more about cats than someone who has just read about them.
Mark Twain

Offline

#483 2014-01-28 19:04:09

Habitual
#! Member
From: Youngstown, OH
Registered: 2010-09-10
Posts: 62
Website

Re: Wun Weather Script for Conky (Lua)

Hot chocolate and cookies served at 6!
6 "where" smarty-pants? smile

Has any else noticed that if left running "too long" the background image "frames" in iweather_falldown.lua disappears or goes transparent. Causing me to restart it?

It also cause the program to not respond to any clicks...

Thanks!

Edit: and a Radar Map is definitely a "Cool" new feature.

Last edited by Habitual (2014-01-28 19:08:20)


Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.

Offline

#484 2014-01-28 19:14:33

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

Re: Wun Weather Script for Conky (Lua)

mrpeachy wrote:

very nice job sector11, and i think the instructions written from your perspective will be really helpful
i may be too familiar with the scripts and with lua code that i take knowledge of these things for granted smile

if there is anything you would like to me contribute, then please let me know!  big_smile

Well, I can understand you have a deeper more intimate knowledge of the code so it makes sense that you might miss something and or see an error I may have made.

Took me a long time writing that to get it as error free as I could.

Anything you can contribute?  You wrote the whole code that got it going that quite a contribution right there.  big_smile

I got you though and thank you.


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

Offline

#485 2014-01-28 19:18:49

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

Re: Wun Weather Script for Conky (Lua)

jst_joe wrote:

Excellent write up sir cool
I have found that commenting out line 5

--username=os.getenv("USERNAME") -- line 5
--defualt path to wun folder
--pathtowun='/home/'..username..'/wun/' -- line 7
--if you want to have your wun folder in a different location
--enter the full path to the folder in quotes, for example:
--#########################################
pathtowun="/home/sector11/wun/" -- line 11

in wun.lua  made no difference on my system.
I did have to change lines 7 & 11 as you mentioned. wink

Thank you.
Interesting ... my wun setup (to us not for testing) isn't in ~/ so mine looks like this:

--the next line tries to detect your username
--username=os.getenv("USERNAME")
--defualt path to wun folder
--pathtowun='/home/'..username..'/wun/'
--if you want to have your wun folder in a different location
--enter the full path to the folder in quotes, for example:
--#########################################
pathtowun="/media/5/wun/"
--#########################################

And for the testing ~/wun or mine in /media/5/wun leaving line 5 active produces the error.  Hence I comment them all out and leave just the one pathtowun active.

Works for me.  big_smile


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

Offline

#486 2014-01-28 19:33:32

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

Re: Wun Weather Script for Conky (Lua)

Habitual wrote:

Hot chocolate and cookies served at 6!
6 "where" smarty-pants? smile

Has any else noticed that if left running "too long" the background image "frames" in iweather_falldown.lua disappears or goes transparent. Causing me to restart it?

It also cause the program to not respond to any clicks...

Thanks!

Edit: and a Radar Map is definitely a "Cool" new feature.

Oh ... I didn't tell you ... your kitchen! lol lol lol

Or if that really freaks you out, down the hall in the #! Coffee room.  cool

Mine is working fine, no disappearing at all, no need to restart it .. been running for 7 hours ... no not true, mine was off while testing, been on for an hour or so, will keep an eye on it and let you know.  Have have not seen that problem though in the past though and it's always responds to clicks - I like playing with it and checking things ... a novelty that will wear off in time, I think.

Have not tried the map thing yet, I've been a bit busy for a three finger, 7-8 words a minute, look at the keyboard typist that spends more time spell checking than typing.  big_smile


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

Offline

#487 2014-01-28 19:43:36

Habitual
#! Member
From: Youngstown, OH
Registered: 2010-09-10
Posts: 62
Website

Re: Wun Weather Script for Conky (Lua)

I'll grab some screenshots of the result when it happens again.

I leave mine running for days...until a restart of the wunrci is needed.

No Coffee, no workie#!


Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.

Offline

#488 2014-01-28 20:06:43

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

Re: Wun Weather Script for Conky (Lua)

Habitual wrote:

I'll grab some screenshots of the result when it happens again.

I leave mine running for days...until a restart of the wunrci is needed.

No Coffee, no workie#!

I turn my computer off every night, when I sleep, it sleeps! O:)

Give the man a pot of coffee!  cool


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

Offline

#489 2014-01-28 20:24:50

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

Re: Wun Weather Script for Conky (Lua)

Habitual wrote:

I'll grab some screenshots of the result when it happens again.

I leave mine running for days...until a restart of the wunrci is needed.

No Coffee, no workie#!

the only problem i have had with clicks is sometimes (mint 16 with cinnamon 2) when i minimize a firefox window that isnt maximized (or at least that seems to be the most common cause) something gets confused and either clicks dont work or my conky crashes and i have to restart

i havnt had the interactive conky running for an extended period of time
i cant think right now what would make the images disappear or go transparent...

Offline

#490 2014-01-28 21:06:08

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

Re: Wun Weather Script for Conky (Lua)

@ mrpeachy

Interesting, I usually have at least  3 programs open, iceweasel, claws-mail and medit plus at times screenruler, mirage, GIMP if not active they are minimized and have never had a problem

Either #! OpenBox or Debian SID & OpenBox

Can not remember a conky ever crashing.  But then my forgetter is getting better! smile

Habitual ... Images  ... iweather_falldown.lua

OH!!!! ... I made a mistake at CPS ...  it uses images for the background ... I 'had' it as 100% lua ... fixed.


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

Offline

#491 2014-01-28 22:41:12

Habitual
#! Member
From: Youngstown, OH
Registered: 2010-09-10
Posts: 62
Website

Re: Wun Weather Script for Conky (Lua)

Sector11 wrote:

Habitual ... Images  ... iweather_falldown.lua

...it uses images for the background ...

Ermm....
These are "image" calls in the iweather_falldown.lua
I see this dire warning in wunrci:

#additional settings to be set in wun.config.lua
#do not uncomment these lines here in the conky config
####################################################
#FOR iweather_falldown
#--icon path settings
#extended_weather_icons	="/home/jj/wun/additional_files/weathericons/extended_falldown/",
#--indicator settings

(says "Paws Off" to me.) I have NOT explicitly used nor chosen anything that is not in the native code supplied.

But I did now just find this nugget: Line 68 of templates/iweather.lua

image({x=0,y=15,w=376,h=265*(620/421),file="/home/mcdowall/wun/additional_files/backgrounds/bg.png"})

which I have changed and bounced my conky_start.sh script. We'll see.

Peace!


Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.

Offline

#492 2014-01-28 23:32:09

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

Re: Wun Weather Script for Conky (Lua)

Habitual wrote:

But I did now just find this nugget: Line 68 of templates/iweather.lua

image({x=0,y=15,w=376,h=265*(620/421),file="/home/mcdowall/wun/additional_files/backgrounds/bg.png"})

which I have changed and bounced my conky_start.sh script. We'll see.

i must have forgotten that one
need to change the "/home/mcdowall/wun/" to "pathtowun"

then it should find the file successfully

Offline

#493 2014-01-28 23:35:46

Habitual
#! Member
From: Youngstown, OH
Registered: 2010-09-10
Posts: 62
Website

Re: Wun Weather Script for Conky (Lua)

mrpeachy wrote:

i must have forgotten that one
need to change the "/home/mcdowall/wun/" to "pathtowun"

then it should find the file successfully

"pathtowun" with quotes, or hard code it to /home/jj/wun  can be utilized also?

Thanks!


Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.

Offline

#494 2014-01-28 23:51:16

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

Re: Wun Weather Script for Conky (Lua)

you can just write your own path to the file in there or

image({x=0,y=15,w=376,h=265*(620/421),file=pathtowun.."additional_files/backgrounds/bg.png"})

i need to go update the archive with that, will do it in a bit

Offline

#495 2014-01-28 23:53:11

Habitual
#! Member
From: Youngstown, OH
Registered: 2010-09-10
Posts: 62
Website

Re: Wun Weather Script for Conky (Lua)

no worries!


Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.

Offline

#496 2014-01-29 00:07:32

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

Re: Wun Weather Script for Conky (Lua)

mrpeachy wrote:

i need to go update the archive with that, will do it in a bit

Just updated mine ... will make a note on CPS  big_smile


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

Offline

#497 2014-01-29 00:17:51

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

Re: Wun Weather Script for Conky (Lua)

Sector11 wrote:
mrpeachy wrote:

i need to go update the archive with that, will do it in a bit

Just updated mine ... will make a note on CPS  big_smile

its updated in the main archive also
only iweather.lua needed it in 1 location

all the paths in iweather_falldown are set, and iweather_joe doesn’t use images

Offline

#498 2014-01-29 01:48:19

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

Re: Wun Weather Script for Conky (Lua)

And CPS is updated  big_smile


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

Offline

#499 2014-01-29 11:42:34

Habitual
#! Member
From: Youngstown, OH
Registered: 2010-09-10
Posts: 62
Website

Re: Wun Weather Script for Conky (Lua)

Here's the screenie of the background going transparent/opaque.
and it's still happening...

I didn't want to get into the code, but if I have to I will! tongue

smokeandmirrors_zps67f13dab.png

Maybe I should just set a cron for reset?
Anyone else leave theirs up for extended periods?

Last edited by Habitual (2014-01-29 11:43:48)


Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.

Offline

Be excellent to each other!

#500 2014-01-29 14:40:59

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

Re: Wun Weather Script for Conky (Lua)

Habitual wrote:

Here's the screenie of the background going transparent/opaque.
and it's still happening...

I didn't want to get into the code, but if I have to I will! tongue

http://i771.photobucket.com/albums/xx36 … f13dab.png

Maybe I should just set a cron for reset?
Anyone else leave theirs up for extended periods?

very strange!
how long does it take to do that?

could you launch the conky through a terminal and keep the terminal open to watch for error messages?

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