SEARCH

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

You are not logged in.

#176 2012-06-05 21:48:46

DrakarNoir
#! CrunchBanger
From: just beyond the sign post
Registered: 2011-09-02
Posts: 124
Website

Re: interactive weather

Sector11 wrote:

Yea ... and looks GREAT!!!!!!!!!!!!

DrakarNoir, falldown, mrpeachy you guys ROCK!!!  What a team!

Ummmmmmmmmmmmmmm what do I grab?
DrakarNoir's twmplate with the lines, or
falldown's with the alerts .....

decisions decisions ...

The alerts are still present in my template. smile


"The nine most terrifying words in the English language are, 'I'm from the government and I'm here to help.'.”  ~Ronald Reagan

Offline

Be excellent to each other!

#177 2012-06-05 22:41:23

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

Re: interactive weather

DrakarNoir wrote:
Sector11 wrote:

Yea ... and looks GREAT!!!!!!!!!!!!

DrakarNoir, falldown, mrpeachy you guys ROCK!!!  What a team!

Ummmmmmmmmmmmmmm what do I grab?
DrakarNoir's twmplate with the lines, or
falldown's with the alerts .....

decisions decisions ...

The alerts are still present in my template. smile

I would go with Drakars's.
I didn't spend very much time lining stuff up.
I just threw Peachy's Clicky function in there. big_smile

P.S. It feels good to be working with the interactive conky again!! big_smile

Last edited by falldown (2012-06-05 22:42:37)

Offline

#178 2012-06-05 23:04:06

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,473
Website

Re: interactive weather

falldown wrote:

P.S. It feels good to be working with the interactive conky again!! big_smile

mrpeachy is coming up with a new one for you - clickable vnstats!!!!!!!!!!

note to self:  DN's template.

Offline

#179 2012-06-07 03:15:22

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

Re: interactive weather

I got bored today and thought that I would tweak this template... big_smile
aaowLr87.jpg aaz416lA.jpg

and...aanQbaEb.jpg
It's a bit more compact.

Offline

#180 2012-06-07 03:16:35

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

Re: interactive weather

Sector11 wrote:

mrpeachy is coming up with a new one for you - clickable vnstats!!!!!!!!!!

note to self:  DN's template.

I took a quick look earlier.. looks interesting. big_smile

Offline

#181 2012-06-14 18:36:52

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

Re: interactive weather

Working on a new template..
aayeVvn6.jpg
The "weatherbutton" shows current temp and current condition (icon).

Clicking the weather-icon opens a little more info on current weather..
aaq0I1Kd.jpg
and opens a More button.

Clicking the More button gives a more detailed look..
aay3X5NT.jpg

I still have to do the..
Next 3 Hours
Extended Forecast
and
Alerts

Offline

#182 2012-06-14 20:23:28

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,473
Website

Re: interactive weather

falldown wrote:

Working on a new template..
aayeVvn6.jpg
The "weatherbutton" shows current temp and current condition (icon).

AWESOME!!!  I love how you used the "beginning" button for an actual part of the final 'conky', for lack of a better word, since it's all conky.

Last edited by Sector11 (2012-06-14 20:24:31)

Offline

#183 2012-06-14 22:01:18

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

Re: interactive weather

S11 wrote:

AWESOME!!!  I love how you used the "beginning" button for an actual part of the final 'conky', for lack of a better word, since it's all conky.

I was just thinking that the ONLY way that one could improve on Peachy's amazing interactive v9000
would be to have buttons that not only activated the script-chunk, but also serve a purpose when not active.

Peachy used it for his system-info lua.. so I just used his ideal here. big_smile and hopefully I'm not stepping on any toes.

Offline

#184 2012-06-14 22:05:20

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

Re: interactive weather

falldown wrote:

Peachy used it for his system-info lua.. so I just used his ideal here. big_smile and hopefully I'm not stepping on any toes.

the peachy licence: (appears in micro print at the bottom of every script)

do whatever you want with it!

big_smile

Offline

#185 2012-06-14 22:13:01

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,473
Website

Re: interactive weather

falldown wrote:

Peachy used it for his system-info lua.. so I just used his ideal here. big_smile and hopefully I'm not stepping on any toes.

No, my toes are fine ....

mrpeachy wrote:

the peachy licence: (appears in micro print at the bottom of every script)

do whatever you want with it!

big_smile

PRICELESS!

Offline

#186 2012-06-19 22:53:53

DrakarNoir
#! CrunchBanger
From: just beyond the sign post
Registered: 2011-09-02
Posts: 124
Website

Re: interactive weather

falldown wrote:

Working on a new template..
aayeVvn6.jpg
The "weatherbutton" shows current temp and current condition (icon).

I like this! Cannot wait to grab this. Perhaps I will be able to figure how to make it work in my template. smile


"The nine most terrifying words in the English language are, 'I'm from the government and I'm here to help.'.”  ~Ronald Reagan

Offline

#187 2012-06-20 17:18:15

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

Re: interactive weather

DrakarNoir wrote:

I like this! Cannot wait to grab this. Perhaps I will be able to figure how to make it work in my template. smile

Glad you like Drakar.
Make a backup of your interactive_weather.lua first.
Then lets remove this bit of script.. (around line 29)

local weatherbuttononc={0.6,0.2,0,1}
local weatherbuttonoffc={0,0.6,0.7,1}
if localx>=weatherbuttonx and localx<=weatherbuttonx+weatherbuttonw and localy>=weatherbuttony and localy<=weatherbuttony+weatherbuttonh and weatherbutton~=1 then weatherbutton=1 elseif localx>=weatherbuttonx and localx<=weatherbuttonx+weatherbuttonw and localy>=weatherbuttony and localy<=weatherbuttony+weatherbuttonh and weatherbutton==1 then weatherbutton=0 end
if weatherbutton==1 then cairo_set_source_rgba (cr,weatherbuttononc[1],weatherbuttononc[2],weatherbuttononc[3],weatherbuttononc[4]) else cairo_set_source_rgba (cr,weatherbuttonoffc[1],weatherbuttonoffc[2],weatherbuttonoffc[3],weatherbuttonoffc[4]) end;cairo_set_line_width (cr,1);cairo_rectangle (cr,weatherbuttonx,weatherbuttony,weatherbuttonw,weatherbuttonh);cairo_stroke (cr)
out ({c=0x48D1CC,f="DroidSansBold",fs=14,x=weatherbuttonx+2,y=weatherbuttony+weatherbuttonh-3,txt="Current"})font="DroidSansBold"

and lets replace it with this bit...

--calculate if click was inside box
if localx>=weatherbuttonx and localx<=weatherbuttonx+weatherbuttonw and localy>=weatherbuttony and localy<=weatherbuttony+weatherbuttonh and weatherbutton~=1 then 
weatherbutton=1 
elseif localx>=weatherbuttonx and localx<=weatherbuttonx+weatherbuttonw and localy>=weatherbuttony and localy<=weatherbuttony+weatherbuttonh and weatherbutton==1 then 
weatherbutton=0
end
if weatherbutton==0 then
--image({x=weatherbuttonx-10,y=weatherbuttony-5,w=105,h=45,file="/home/falldown/v9000dt/additional_files/gr_65.png"})
out({c=0x000000,a=1,f="DroidSansBold",fs=14,x=weatherbuttonx+45,y=weatherbuttony+15,txt=now["time_num"]})
out ({c=0xFFFFFF,f="DroidSansBold",fs=14,x=weatherbuttonx+50,y=weatherbuttony+33,txt=now["temp"].."°"})font="DroidSansBold"
image({x=weatherbuttonx,y=weatherbuttony,h=40,w=40,file=now["weather_icon"]})
end

The image line that I have commented out is used for the background image for the button.. which you can use one of the images that S11 provided. smile

Also you will need to add

weatherbutton=0

under

click_start=1

at the top of Peachy's script.

Last edited by falldown (2012-06-21 22:58:51)

Offline

#188 2012-06-21 21:19:03

DrakarNoir
#! CrunchBanger
From: just beyond the sign post
Registered: 2011-09-02
Posts: 124
Website

Re: interactive weather

falldown wrote:
DrakarNoir wrote:

I like this! Cannot wait to grab this. Perhaps I will be able to figure how to make it work in my template. smile

Glad you like Drakar.
Make a backup of your interactive_weather.lua first.
Then lets remove this bit of script.. (around line 29)

local weatherbuttononc={0.6,0.2,0,1}
local weatherbuttonoffc={0,0.6,0.7,1}
if localx>=weatherbuttonx and localx<=weatherbuttonx+weatherbuttonw and localy>=weatherbuttony and localy<=weatherbuttony+weatherbuttonh and weatherbutton~=1 then weatherbutton=1 elseif localx>=weatherbuttonx and localx<=weatherbuttonx+weatherbuttonw and localy>=weatherbuttony and localy<=weatherbuttony+weatherbuttonh and weatherbutton==1 then weatherbutton=0 end
if weatherbutton==1 then cairo_set_source_rgba (cr,weatherbuttononc[1],weatherbuttononc[2],weatherbuttononc[3],weatherbuttononc[4]) else cairo_set_source_rgba (cr,weatherbuttonoffc[1],weatherbuttonoffc[2],weatherbuttonoffc[3],weatherbuttonoffc[4]) end;cairo_set_line_width (cr,1);cairo_rectangle (cr,weatherbuttonx,weatherbuttony,weatherbuttonw,weatherbuttonh);cairo_stroke (cr)
out ({c=0x48D1CC,f="DroidSansBold",fs=14,x=weatherbuttonx+2,y=weatherbuttony+weatherbuttonh-3,txt="Current"})font="DroidSansBold"

and lets replace it with this bit...

--calculate if click was inside box
if localx>=weatherbuttonx and localx<=weatherbuttonx+weatherbuttonw and localy>=weatherbuttony and localy<=weatherbuttony+weatherbuttonh and weatherbutton~=1 then 
weatherbutton=1 
elseif localx>=weatherbuttonx and localx<=weatherbuttonx+weatherbuttonw and localy>=weatherbuttony and localy<=weatherbuttony+weatherbuttonh and weatherbutton==1 then 
weatherbutton=0
end
if weatherbutton==0 then
--image({x=weatherbuttonx-10,y=weatherbuttony-5,w=105,h=45,file="/home/falldown/v9000dt/additional_files/gr_65.png"})
out({c=0x000000,a=1,f="DroidSansBold",fs=14,x=weatherbuttonx+45,y=weatherbuttony+15,txt=now["time_num"]})
out ({c=0xFFFFFF,f="DroidSansBold",fs=14,x=weatherbuttonx+50,y=weatherbuttony+33,txt=now["temp"].."°"})font="DroidSansBold"
image({x=weatherbuttonx,y=weatherbuttony,h=40,w=40,file=now["weather_icon"]})
end

The image line that I have commented out is used for the background image for the button.. which you can use one of the images that S11 provided. smile

Also you will need to add

weatherbutton==0

under

click_start=1

at the top of Peachy's script.

@falldown

This is exactly what I was looking for! Thank you. However, I have something amiss. When the conky forst starts my screen shows nothing. I have to "poke" around the area until I click the correct spot, the weather expands, etc.THEN when I click to contract the display the weather icon and temp are there.


"The nine most terrifying words in the English language are, 'I'm from the government and I'm here to help.'.”  ~Ronald Reagan

Offline

#189 2012-06-21 22:52:44

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

Re: interactive weather

Drakar wrote:

@falldown

This is exactly what I was looking for! Thank you. However, I have something amiss. When the conky forst starts my screen shows nothing. I have to "poke" around the area until I click the correct spot, the weather expands, etc.THEN when I click to contract the display the weather icon and temp are there.

Glad it didn't cause too many problems!! smile
Did you add the

weatherbutton=0

after the

click_start=1

??

Sorry my friend!!
I made a typo.. it's only one = sign.. not two. big_smile

Last edited by falldown (2012-06-21 22:58:28)

Offline

#190 2012-06-21 23:05:13

DrakarNoir
#! CrunchBanger
From: just beyond the sign post
Registered: 2011-09-02
Posts: 124
Website

Re: interactive weather

falldown wrote:

Did you add the

weatherbutton=0

after the

click_start=1

??

Sorry my friend!!
I made a typo.. it's only one = sign.. not two. big_smile

I did...but for some strange reason it didn't stick sad

Just added the line (with the correct number of "=" smile  All is well now. Thank you again

Can't wait to see what is next!


"The nine most terrifying words in the English language are, 'I'm from the government and I'm here to help.'.”  ~Ronald Reagan

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.

Debian Logo