SEARCH

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

You are not logged in.

#126 2014-01-10 00:40:06

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

Re: Wun Weather Script for Conky (Lua)

Peachy I'm sure you can come up with a cool counter.. and the update button sounds cool.

Offline

Help fund CrunchBang, donate to the project!

#127 2014-01-10 01:00:04

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

Re: Wun Weather Script for Conky (Lua)

falldown wrote:

Peachy I'm sure you can come up with a cool counter.. and the update button sounds cool.


I like that as well ...

Another thing I've been thinking about - - - poor mrpeachy we come up with ideas he's got to do the work.  Well, he can choose to do it or not!  wink   But here goes...

Weather sites usually update once an hour, but they can't do that on the hour every hour for every city in the world ... so:

Maybe have the script create and keep a log of the last 'X' (24, 48) 'successful' updates that a person can read...

Lets say Buenos Aires in the list updates between the 15 and 20 minute mark.

Now, in one of the files (maybe wun_config.lua) have an option that can be turned on that checks system time (minutes) and a user specified "minute-mark" (ie: 22) and every 22 minutes after the hour the script runs to get an update.

One exception, when you turn your computer on for the day - it goes regardless.
Just a thought from a program challenged user.  big_smile


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

Offline

#128 2014-01-10 02:33:30

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

Re: Wun Weather Script for Conky (Lua)

Wun is back up according to twitter.. and they are sorry for any inconvenience.   smile

Yep.. up and running.

Last edited by falldown (2014-01-10 02:34:27)

Offline

#129 2014-01-10 02:39:05

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

Re: Wun Weather Script for Conky (Lua)

Sector11 wrote:
falldown wrote:

Peachy I'm sure you can come up with a cool counter.. and the update button sounds cool.


I like that as well ...

Another thing I've been thinking about - - - poor mrpeachy we come up with ideas he's got to do the work.  Well, he can choose to do it or not!  wink   But here goes...

Weather sites usually update once an hour, but they can't do that on the hour every hour for every city in the world ... so:

Maybe have the script create and keep a log of the last 'X' (24, 48) 'successful' updates that a person can read...

Lets say Buenos Aires in the list updates between the 15 and 20 minute mark.

Now, in one of the files (maybe wun_config.lua) have an option that can be turned on that checks system time (minutes) and a user specified "minute-mark" (ie: 22) and every 22 minutes after the hour the script runs to get an update.

One exception, when you turn your computer on for the day - it goes regardless.
Just a thought from a program challenged user.  big_smile

getting the updates to run at a specified time past the hour, or on the hour, should be easy enough

and loggin updates is pretty easy using a table in the code... then writing the table contents to a file should also be prett straight forward

I have completed most of the work to compensate for bad connections

one problem is i am using the program ping
it works great for www.wunderground.com
but it doesnt seem to respond the same way when i try and ping www.usno.navy.mil

ill have to look into ping to see how i judge from the response if a site is accessible or not

but other than that it is workin nicely, saving data and using the saved data when the site is unavailable

Last edited by mrpeachy (2014-01-10 02:39:58)

Offline

#130 2014-01-10 02:43:58

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

Re: Wun Weather Script for Conky (Lua)

Yep, up here too. smile
Thanks falldown.


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

#131 2014-01-10 10:08:35

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

Re: Wun Weather Script for Conky (Lua)

@mrpeachy,
Just got a chance to test out the new wunrci scripts and everything is running just Great.
Switching from imperial to metric is just a find and replace away and nooo problems with iweather.lua.
Excellent work! cool


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

#132 2014-01-10 14:14:31

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

Re: Wun Weather Script for Conky (Lua)

I did notice this in wun_template.lua

default_metricont="URW Gothic L"--font must be in quotes
default_metricont_size=12
defaultmetricolor=0xffffff--white

but switching back to

default_font="URW Gothic L"--font must be in quotes
default_font_size=12
default_color=0xffffff--white

and all is good. 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

#133 2014-01-10 14:34:20

jed
#! CrunchBanger
From: Detachment 7
Registered: 2012-08-28
Posts: 200
Website

Re: Wun Weather Script for Conky (Lua)

Hey guys, I been following along with this and have had no issues other than yesterdays anomalies with the WU site.
I have noticed on the clickable button to go from hours to Days/Less/More, a strange thing happens to the hours; say it is 9:00AM, the next 10 hours will list as the following.  10:00AM, 11:00AM, 12:00PM, 1:00PM, 2:00PM, then on the bottom row it will continue with the next 5 hours, however, it goes from 2:00PM, to 3:00AM, 4:00AM, 5:00PM, 6:00PM, 7:00PM.  I've noticed this behavior when switching to the 'hours' button on the bottom.  Not sure when or how long ago this started.  By the way, I have switched to the newest files in Post #1.
Everything else is going great with mine.
This is a really attractive weather script!

Last edited by jed (2014-01-10 14:51:03)


Proud user of VSDIO: Jedi!  You can download it from here...  I'm on  the web at NixNut.com!

Offline

#134 2014-01-10 15:16:38

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

Re: Wun Weather Script for Conky (Lua)

Just noticed that too jed and in the MORE button section it goes from 12AM on the top row to 1PM, 2PM, 3PM, 4PM, 5AM on the bottom row.


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

#135 2014-01-10 16:34:02

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

Re: Wun Weather Script for Conky (Lua)

ill take a look at iweather.lua and see whats up

and ill make sure to fix

default_metricont="URW Gothic L"--font must be in quotes
default_metricont_size=12
defaultmetricolor=0xffffff--white

a product of not being careful with my find/replaces!

Offline

#136 2014-01-10 16:46:47

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

Re: Wun Weather Script for Conky (Lua)

^ Believe me no complaints here, just thought you'd like to be aware of it. 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

#137 2014-01-10 17:16:32

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

Re: Wun Weather Script for Conky (Lua)

Just got back home, popped in the latest and greatest and I must say:

KUDOS mrpeachy!

Now this is a weather conky I can get my teeth into.  I still have some tweaking I want to do ...
I put it in a window because it's so big and I can call it when I want and close it [x]
2014_01_10_13_58_42_1920x1080_Sector11.jpg
Weather on the left is v9000 - still running

Once I get this 'just right' I'll tackle the interactive one ...

* Is there a way to "stop it" from going online and using a local file while developing it?


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

Offline

#138 2014-01-10 17:18:32

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

Re: Wun Weather Script for Conky (Lua)

jed wrote:

Hey guys, I been following along with this and have had no issues other than yesterdays anomalies with the WU site.
I have noticed on the clickable button to go from hours to Days/Less/More, a strange thing happens to the hours; say it is 9:00AM, the next 10 hours will list as the following.  10:00AM, 11:00AM, 12:00PM, 1:00PM, 2:00PM, then on the bottom row it will continue with the next 5 hours, however, it goes from 2:00PM, to 3:00AM, 4:00AM, 5:00PM, 6:00PM, 7:00PM.  I've noticed this behavior when switching to the 'hours' button on the bottom.  Not sure when or how long ago this started.  By the way, I have switched to the newest files in Post #1.
Everything else is going great with mine.
This is a really attractive weather script!

found the problem, a typo
line 209 (or there abouts is missing a +5)
should be this:

out({a=1,fs=11,x=tlx-4,y=tly,txt=hour[i+5].hour_12..hour[i+5].ampm.." "..hour[i+5].month_pad.."/"..hour[i+5].day_pad})

it was missing in the square brackets before .ampm smile

Offline

#139 2014-01-10 17:22:39

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:

getting the updates to run at a specified time past the hour, or on the hour, should be easy enough

and loggin updates is pretty easy using a table in the code... then writing the table contents to a file should also be pretty straight forward

I have completed most of the work to compensate for bad connections

one problem is i am using the program ping
it works great for www.wunderground.com
but it doesnt seem to respond the same way when i try and ping www.usno.navy.mil

ill have to look into ping to see how i judge from the response if a site is accessible or not

but other than that it is workin nicely, saving data and using the saved data when the site is unavailable

Oops! ... just saw this was well ... is any of this implemented in the "mini update 01/09/14 @13:00" or just in the development lab?


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

Offline

#140 2014-01-10 17:25:19

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

Re: Wun Weather Script for Conky (Lua)

Sector11 wrote:

Just got back home, popped in the latest and greatest and I must say:

KUDOS mrpeachy!

Now this is a weather conky I can get my teeth into.  I still have some tweaking I want to do ...
I put it in a window because it's so big and I can call it when I want and close it [x]
http://s20.postimg.org/i16r2rwjt/2014_01_10_13_58_42_1920x1080_Sector11.jpg
Weather on the left is v9000 - still running

Once I get this 'just right' I'll tackle the interactive one ...

* Is there a way to "stop it" from going online and using a local file while developing it?

yes there is in the update im about to post!
in fact that gives me an idea for a development setting which forces the use of saved data!

when its up ill edit this post

EDIT -  the update is posted, i will implement developer mode later but for now to stop wun.lua from downloading new data and forcing it to use saved data open the new wun.lua and go to line 1061

	local mst1=tonumber("0"..response:gsub(".*time (%d+)ms.*","%1"))

then directly underneath add a new line that hard codes the value of mst1 so that it is greater than the check value

	local mst1=tonumber("0"..response:gsub(".*time (%d+)ms.*","%1"))
--faking a high mst1 value so the ping test fails
	local mst1=5000

you can do the same thing lower down (what was 1087)

	local mst2=tonumber("0"..response:gsub(".*time (%d+)ms.*","%1"))

to

	local mst2=tonumber("0"..response:gsub(".*time (%d+)ms.*","%1"))
--faking a high mst2 value so the ping test fails
	local mst2=5000

Last edited by mrpeachy (2014-01-10 17:46:04)

Offline

#141 2014-01-10 19:35:23

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

Re: Wun Weather Script for Conky (Lua)

Thank you mrpeachy. smile
Everything seems to be working like a charm, don't know about the ping part yet (and hopfuly won't find out).
rain_tmb.jpg
Now it's time to play. 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

#142 2014-01-10 21:02:20

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

Re: Wun Weather Script for Conky (Lua)

well I think wun.lua has reached the point where any further updates will only be bug fixes

I think i have implemented all the features i wanted

I have the sun moon azimuth altitude section to work on but I will only update with that addition once it is fully complete

All the data option names should not change any more
The config should not change any more

I will work on iweather.lua a bit more, i dont like the placement of the hour/day more/less buttons
when i click hours, it nearly always registers a click to more!

Offline

#143 2014-01-10 21:10:20

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

Re: Wun Weather Script for Conky (Lua)

Peachy once you figure out your days, hour, less and more button placement I will adjust the bg image as needed.  smile

I am still working on this text template and I am very glad that all issues have been sorted out  big_smile

Offline

#144 2014-01-10 21:21:44

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

Re: Wun Weather Script for Conky (Lua)

falldown wrote:

Peachy once you figure out your days, hour, less and more button placement I will adjust the bg image as needed.  smile

I am still working on this text template and I am very glad that all issues have been sorted out  big_smile

Thanks!

the HOURS/DAYS button needs to stay where it is when you click it

any thoughts about where the MORE/LESS button should appear?

Offline

#145 2014-01-10 21:36:42

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

Re: Wun Weather Script for Conky (Lua)

I would say that the hours/day button goes on the bottom left and stay stationary.. whereas the more/less button appears just right of it.

Offline

#146 2014-01-10 21:47:14

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

Re: Wun Weather Script for Conky (Lua)

that is a good idea, i will make it so

make-it-so-captain.jpeg?resize=600%2C423

Last edited by mrpeachy (2014-01-10 21:47:48)

Offline

#147 2014-01-10 21:50:45

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

Re: Wun Weather Script for Conky (Lua)

Oh no... I feel another LCARS brain storm coming on..  tongue

Offline

#148 2014-01-10 22:23:23

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

Re: Wun Weather Script for Conky (Lua)

falldown wrote:

I would say that the hours/day button goes on the bottom left and stay stationary.. whereas the more/less button appears just right of it.

I more/less agree ... lol lol lol

runnin' for the hills....


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

Offline

#149 2014-01-10 22:31:32

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

Re: Wun Weather Script for Conky (Lua)

OK ... just finished my tweaking time ... I think ... maybe ... almost ...

Here's the conky under re-development:
2014_01_10_18_50_41_1920x1080_Sector11.jpg

  • Note the ñ as a place holder for outputs that could be longer than they are,

  • I also dropped the metric ending for temperatures in favour of a simple ° as I know my conky uses °C

  • Oh ... and I removed the snow stuff - only three times since 1919 - I'm not worried!

And here it is all cleaned up and back in it's "box"
2014_01_10_18_54_36_1920x1080_Sector11.jpg

mrpeachy - very impressive script ...

Now to tackle the interactive ... or maybe I'll wait until the more|less issue is settled.  big_smile

Last edited by Sector11 (2014-01-10 22:38:11)


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

Offline

Be excellent to each other!

#150 2014-01-10 23:47:17

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

Re: Wun Weather Script for Conky (Lua)

^ Love the wall Sector11.
Reminds me of the roads I grew up around in California, or Deals Gap here in E. TN aka: Tail of the Dragon.
Great for cars like the one in your scrot or a bike.


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

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