SEARCH

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

You are not logged in.

#501 2014-01-29 14:45:38

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

Re: Wun Weather Script for Conky (Lua)

mrpeachy wrote:

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

No idea, it's an anomaly!

mrpeachy wrote:

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

Can and will.

Stand by for an update...

Last edited by Habitual (2014-01-29 18:12:40)


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

Offline

Be excellent to each other!

#502 2014-01-29 16:06:20

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Wun Weather Script for Conky (Lua)

what about day[1].moon_phase_user smile

don't you want to translate the moon phases?

Offline

#503 2014-01-29 19:38:03

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

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

No idea, it's an anomaly!

mrpeachy wrote:

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

Can and will.

Stand by for an update...

WOW!  That's really strange ... weather images are still there, but the background two imagesare gone ... there is no way they should fade out.  {Twilight Zone theme music in the background}

Mine runs ±14 hours a day ... I'll leave my computer on for a few days to see if it happens here as well.


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

Offline

#504 2014-01-29 19:56:52

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

Re: Wun Weather Script for Conky (Lua)

lionhead wrote:

what about day[1].moon_phase_user smile

don't you want to translate the moon phases?

yes, i have been thinking about that, should be quite easy to implement  smile

Offline

#505 2014-01-29 19:57:47

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

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.

I've had mine running since yesterday at this time when I read your post.
No strange behavior here.
If there's a problem with the script mrpeachy will figure it out.
The man is like a lua machine. 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

#506 2014-01-29 20:03:43

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

Re: Wun Weather Script for Conky (Lua)

fixed an issue where setting indicator to 0 did not turn off the update indicator
main archive updated

Offline

#507 2014-01-29 20:12:54

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

Re: Wun Weather Script for Conky (Lua)

jst_joe wrote:

No strange behavior here.
If there's a problem with the script mrpeachy will figure it out.
The man is like a lua machine. smile

Thanks for that.
Good thing, I don't want to start busting on conky code, I'm retired.

to paraphrase a popular song waaaaaay back in "the day"...
"I'm justa LUA Machine, and I don't work for nobody but you."

I just dated myself as a Dinosaur.

Last edited by Habitual (2014-01-29 20:13:44)


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

Offline

#508 2014-01-29 20:24:49

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

Re: Wun Weather Script for Conky (Lua)

Habitual wrote:

"I'm justa LUA Machine, and I don't work for nobody but you."

lol  lol  lol
Wait!
What am I laughing about? I remember when that came out too.

Last edited by jst_joe (2014-01-29 20:28:09)


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

#509 2014-01-29 20:29:33

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

Re: Wun Weather Script for Conky (Lua)

Old(er) Guys Rule


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

Offline

#510 2014-01-29 20:32:40

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

Re: Wun Weather Script for Conky (Lua)

for moon phase translations, until i get around to putting it into wun.lua you can do it in the template quite easily

function translate(input)
local input=string.lower(input)
local mp={
--do not edit this side		--edit this side to what you want to show
["new"]				="t_New",
["full"]			="t_Full",
["first quarter"]		="t_First Quarter",
["last quarter"]		="t_Last Quarter",
["waning gibbous"]		="t_Waning Gibbous",
["waning crescent"]		="t_Waning Crescent",
["waxing crescent"]		="t_Waxing Crescent",
["waxing gibbous"]		="t_Waxing Gibbous"}
--########################################################################
	for k,v in pairs(mp) do
		if input==k then
		input= v
            	end
        end--for k v
return input
end--of translate

--DISPLAY FUNCTION--DISPLAY FUNCTION--DISPLAY FUNCTION--DISPLAY FUNCTION-
_G.weather_script = function(update,time,now,text_forecast,day,hour)--#### DO NOT EDIT THIS LINE ##############
--#######################################################################
--these tables hold the coordinates for each repeat do not edit #########
top_left_xcoordinate={}--################################################
top_left_ycoordinate={}--################################################
--#######################################################################
--SET DEFAULTS ##########################################################
--set defaults do not localise these defaults if you use a seperate display script
default_font="mono"--font must be in quotes
default_font_size=12
default_face="normal"
default_color=0xffffff
default_alpha=1--fully opaque
default_image_width=50
default_image_height=50
--END OF DEFAULTS #######################################################
out({x=100,y=100,txt=translate(day[1].moon_phase)})
--########################################################################################
--END OF WEATHER CODE ----END OF WEATHER CODE ----END OF WEATHER CODE ---
--########################################################################################]]
end--of weather_display function do not edit this line ##################
--#######################################################################

you could put anything you wanted into the mp table
but ive set it up for moon phases

Last edited by mrpeachy (2014-01-29 20:34:29)

Offline

#511 2014-01-29 20:59:53

stylintile
New Member
From: Loganville, Georgia
Registered: 2014-01-29
Posts: 5

Re: Wun Weather Script for Conky (Lua)

Hey mrpeachy,
     Awesome scripts!!  Hope you remember me from the Ubuntu forum.  I joined here specifically to ask you a question.  I was just wondering if the current pollen count could be added.  I see it under current conditions on their web page, but I don't know if it's on the API.  I am just getting Wun set up (although v9000 is still working good.  I had to add a couple of "if whatever==nil, for when the info wasn't there, but other than that it's still good).  I just want something a little closer to home, as the Wunderground reporting station here is about a mile and a half from my house.  I'm still learning lua, and using your tutorial a lot, just been really busy for awhile.  Just getting around to playing some more. smile   Thank You for everything you do for this semi-noobie.

Offline

#512 2014-01-29 21:07:30

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

Re: Wun Weather Script for Conky (Lua)

stylintile wrote:

I was just wondering if the current pollen count could be added.

Well, I was going to ask this as well, AND Length of Daylight in h:m, if it exists in the API?

Thanks.


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

Offline

#513 2014-01-29 21:12:47

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

Re: Wun Weather Script for Conky (Lua)

@ stylintile - Welcome to the #! forums.

We'll make it as painless as possible.
{OK, who's got the dentist drill this week?}   lol  lol  lol


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

Offline

#514 2014-01-29 21:18:23

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:
stylintile wrote:

I was just wondering if the current pollen count could be added.

Well, I was going to ask this as well, AND Length of Daylight in h:m, if it exists in the API?

Thanks.

I believe length of day is there: Sun Transit

Of course I may be wrong. ... YUP!  local noon! ... boy do I feel silly!


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

Offline

#515 2014-01-29 21:24:36

stylintile
New Member
From: Loganville, Georgia
Registered: 2014-01-29
Posts: 5

Re: Wun Weather Script for Conky (Lua)

Sector11 wrote:

@ stylintile - Welcome to the #! forums.

We'll make it as painless as possible.
{OK, who's got the dentist drill this week?}   lol  lol  lol

Thanks!  I think? yikes

Offline

#516 2014-01-29 22:07:10

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

Re: Wun Weather Script for Conky (Lua)

stylintile wrote:

Thanks!  I think? yikes

{psssst - it's from a fisher price kids set, you're safe!}

Coffee and cookies in the room at the end of the hall.  cool

Last edited by Sector11 (2014-01-29 22:07:32)


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

Offline

#517 2014-01-29 22:13:33

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

Re: Wun Weather Script for Conky (Lua)

i could write a quick function to calculate length of day based on sunset and sunrise times

as far as i know, pollen is not in the api, it would have to be fetched from somewhere else
there are other things available like tides, not sure what the interest in that would be

Hi stylintile smile

Offline

#518 2014-01-29 22:17:21

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

Re: Wun Weather Script for Conky (Lua)

Sector11 wrote:
stylintile wrote:

Thanks!  I think? yikes

{psssst - it's from a fisher price kids set, you're safe!}

Coffee and cookies in the room at the end of the hall.  cool

@stylintile
We really don't let Sector11 play with sharp objects. ]:D
{psssst - don't tell him though, he thinks the fisher price stuff is real} lol lol lol


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

#519 2014-01-29 22:19:40

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

Re: Wun Weather Script for Conky (Lua)

From my old conky.fu days:

echo "Pollen: $(curl --silent -q -d "affiliateid=6176&zip=44512" http://www.pollen.com/forecast.asp | cut -d'|' -f5 ) of 12"

44512 is NOT your ZIP Code, but if it is, we're practically neighbors.
Seems to only accept "ZIP Codes" at that page. I don't know who's or where that affiliateid came from, hell it could even be mine, but the OldGuy doesn't remember signing up there for that.

Last edited by Habitual (2014-01-29 22:21:14)


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

Offline

#520 2014-01-29 22:31:09

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

Re: Wun Weather Script for Conky (Lua)

mrpeachy wrote:

watch for error messages?

Survey Says:

Conky: llua_do_call: function conky_get_mouse execution failed: ...me/jj/wun/additional_files/scripts/button_script.lua:98: attempt to index local 'f' (a nil value)
Conky: llua_do_call: function conky_get_mouse execution failed: ...me/jj/wun/additional_files/scripts/button_script.lua:98: attempt to index local 'f' (a nil value)
Conky: llua_do_call: function conky_get_mouse execution failed: ...me/jj/wun/additional_files/scripts/button_script.lua:98: attempt to index local 'f' (a nil value)
Conky: llua_do_call: function conky_get_mouse execution failed: ...me/jj/wun/additional_files/scripts/button_script.lua:98: attempt to index local 'f' (a nil value)

Pretty sure I ran over the window 4 times.

Thanks!


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

Offline

#521 2014-01-29 23:49:48

stylintile
New Member
From: Loganville, Georgia
Registered: 2014-01-29
Posts: 5

Re: Wun Weather Script for Conky (Lua)

jst_joe wrote:
Sector11 wrote:
stylintile wrote:

Thanks!  I think? yikes

{psssst - it's from a fisher price kids set, you're safe!}

Coffee and cookies in the room at the end of the hall.  cool

@stylintile
We really don't let Sector11 play with sharp objects. ]:D
{psssst - don't tell him though, he thinks the fisher price stuff is real} lol lol lol

If that's the case, shouldn't it be MILK and cookies?  wink

Offline

#522 2014-01-29 23:53:57

stylintile
New Member
From: Loganville, Georgia
Registered: 2014-01-29
Posts: 5

Re: Wun Weather Script for Conky (Lua)

mrpeachy wrote:

as far as i know, pollen is not in the api

Hi stylintile smile

Hi back.  It's not a problem, I'll just keep doing it the way I am now.  Using wget to download the source, and using grep to get what I want from it.  Maybe someday I'll find a tutorial like yours on sed and awk, but for now grep works.

Offline

#523 2014-01-30 00:26:39

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

Re: Wun Weather Script for Conky (Lua)

stylintile wrote:

If that's the case, shouldn't it be MILK and cookies?  wink

You mess with my coffee and you'll find out just where I can put this 'toy' drill!   lol  lol  lol

]:D <--- he made me say that!   O:)


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

Offline

#524 2014-01-30 00:35:33

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

Re: Wun Weather Script for Conky (Lua)

stylintile wrote:

If that's the case, shouldn't it be MILK and cookies?  wink

Nooo! yikes
@Sector11
You still have that (Milkaholic) wall that you posted on the VSIDO forum.
That was funny as hell! lol


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

Help fund CrunchBang, donate to the project!

#525 2014-01-30 00:44:24

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

Re: Wun Weather Script for Conky (Lua)

Habitual wrote:
mrpeachy wrote:

watch for error messages?

Survey Says:

Conky: llua_do_call: function conky_get_mouse execution failed: ...me/jj/wun/additional_files/scripts/button_script.lua:98: attempt to index local 'f' (a nil value)
Conky: llua_do_call: function conky_get_mouse execution failed: ...me/jj/wun/additional_files/scripts/button_script.lua:98: attempt to index local 'f' (a nil value)
Conky: llua_do_call: function conky_get_mouse execution failed: ...me/jj/wun/additional_files/scripts/button_script.lua:98: attempt to index local 'f' (a nil value)
Conky: llua_do_call: function conky_get_mouse execution failed: ...me/jj/wun/additional_files/scripts/button_script.lua:98: attempt to index local 'f' (a nil value)

Pretty sure I ran over the window 4 times.

Thanks!

hmmm... this is just a guess but maybe your tmp folder gets cleaned out every once in a while?
since the default setting in wunrci is to save click info in tmp

in the button code line 97,98 and 99 is this

	local f = io.open(xwin[5])
        click = f:read()
        f:close()

and xwin[5] is a call to the xdo log file

in wunrci there is this line:

## activate mouse click logging ####################
####################################################
lua_draw_hook_pre get_mouse {"interactiveconkyrc","/tmp/xdo"} 

try changing the path to point to wun in your home folder, or somewhere else other than tmp
then see if the problem persists

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