SEARCH

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

You are not logged in.

#976 2014-05-06 03:20:45

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

Re: Wun Weather Script for Conky (Lua)

Sector11 wrote:

Yea, but they are in my bloodline I think. big_smile

You know that feeling you get when you're leaning back in a chair on two legs...
and you get to that point where you know you're going to fall over backwards...
and there's nothing you can do about it? yikes  yikes  yikes

I feel like that all the time! tongue monkey


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

Be excellent to each other!

#977 2014-05-14 01:02:55

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,788
Website

Re: Wun Weather Script for Conky (Lua)

jst_joe wrote:
Sector11 wrote:

Yea, but they are in my bloodline I think. big_smile

You know that feeling you get when you're leaning back in a chair on two legs...
and you get to that point where you know you're going to fall over backwards...
and there's nothing you can do about it? yikes  yikes  yikes

I feel like that all the time! tongue monkey

??? How did I miss this ...

Is one of the hind legs cracked?  Just askin'  big_smile

I actually put two teeth through my lower lip when the chair went over and I did a flip and a face dive into the base board ... broke two front teeth off and my lower lip looked like a tooth piercing!  So - yea - I know the feeling!   wink


To #! or not to #!?  That is the question! | #! Forum Moderator
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OHCG'er
StartPage -  protect your privacy   |   LinuxBBQ

Online

#978 2014-05-31 20:00:08

oUter
New Member
Registered: 2014-05-31
Posts: 2

Re: Wun Weather Script for Conky (Lua)

hey guys, is this the place to ask questions about this project? Well, I just asked one so I'll keep going.

I have a mostly white background, and I like the default iweather_falldown the most. The problem is that it's completely unreadable with white font color and the transparent background. Is there a "dark" alternative, or an easy way to change the font color?

In any case, the project looks great!

Offline

#979 2014-05-31 20:15:22

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

Re: Wun Weather Script for Conky (Lua)

oUter wrote:

hey guys, is this the place to ask questions about this project? Well, I just asked one so I'll keep going.

I have a mostly white background, and I like the default iweather_falldown the most. The problem is that it's completely unreadable with white font color and the transparent background. Is there a "dark" alternative, or an easy way to change the font color?

In any case, the project looks great!

Welcome oUter!
Go to your /wun/templates/ folder and open iweather_falldown.lua in a text editor in the

--SET DEFAULTS ##########################################################
--set defaults do not localise these defaults if you use a seperate display script
default_font="Mono"--In my template I use Ubuntu font.. just a nice bold text.. :)
default_font_size=12
default_color=0xffffff--white
default_alpha=1--fully opaque
default_image_width=50
default_image_height=50
default_sxo=1
default_syo=1
default_sa=1
default_weather_icons=pathtowun.."additional_files/weathericons/icons_falldown/"

near the top change "default_color=0xffffff--white" to what ever color you like. smile
Also stop by the Introductions and say hello!


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

#980 2014-05-31 21:23:02

oUter
New Member
Registered: 2014-05-31
Posts: 2

Re: Wun Weather Script for Conky (Lua)

I should've reported back that I tried that. The fonts end up looking pretty weird with the dark border... I also realized that on sunny days the gigantic yellow sun doesn't jive well with a light background.. so I opened up gimp and inverted the colors... it looks ok, so I'll run with this for now.

Thanks again!

Offline

#981 2014-05-31 22:56:52

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

Re: Wun Weather Script for Conky (Lua)

oUter wrote:

I should've reported back that I tried that. The fonts end up looking pretty weird with the dark border... I also realized that on sunny days the gigantic yellow sun doesn't jive well with a light background.. so I opened up gimp and inverted the colors... it looks ok, so I'll run with this for now.

Thanks again!

Hi oUter

Another thing to try with adding shadows to the text

you could do a find and replace

find

out({

replace with

out({shadow=1,

then use shadow defaults to set the shadow as you want

default_sxo=2--shadow x offset
default_syo=2--shadow y offset
defualt_sc=0x000000--shadow color
default_sa=0.8--shadow alpha

Offline

#982 2014-06-19 03:57:51

elganzua124
New Member
From: Argentina, La Plata
Registered: 2014-04-13
Posts: 5

Re: Wun Weather Script for Conky (Lua)

mrpeachy you are a genius! and everyone who contributed are too, of course. Simple yet powerful. When I have time I'll go for my custom config. Sorry for my bad english. neutral

Last edited by elganzua124 (2014-06-20 12:13:21)

Offline

#983 2014-09-22 11:16:25

easysid
#! CrunchBanger
From: India
Registered: 2013-01-25
Posts: 130

Re: Wun Weather Script for Conky (Lua)

Hi,
sorry if this issue has been posted before, but my wun conky fails to update if I reconnect after losing a connection.
This output from the conky will explain better. (lines marked # are my comments)

#... normal operation
Updated @ 15:41
pinging www.wunderground.com
wunderground ping test passed
data url= http://api.wunderground.com/api/my_key/conditions/forecast10day/astronomy/hourly/satellite/alerts/lang:EN/q/India/Ghaziabad.json
processed text data for 20 time periods, padded 0
processed data for 10 days, padded 0
processed data for 36 hours, padded 0
weather data processed
Astronomy turned off in config
done!

#.... connection lost. Update fails
Updated @ 15:56
pinging www.wunderground.com
ping: unknown host www.wunderground.com
wunderground ping test passed
data url= http://api.wunderground.com/api/my_key/conditions/forecast10day/astronomy/hourly/satellite/alerts/lang:EN/q/India/Ghaziabad.json
data url= http://api.wunderground.com/api/my_key/conditions/forecast10day/astronomy/hourly/satellite/alerts/lang:EN/q/India/Ghaziabad.json
data url= http://api.wunderground.com/api/my_key/conditions/forecast10day/astronomy/hourly/satellite/alerts/lang:EN/q/India/Ghaziabad.json
unable to download data
running with last successful data set
processed text data for 20 time periods, padded 0
processed data for 10 days, padded 0
processed data for 36 hours, padded 0
weather data processed
Astronomy turned off in config
done!

#.... connection back. Update still fails
Updated @ 16:11
pinging www.wunderground.com
wunderground ping test passed
unable to download data
running with last successful data set
processed text data for 20 time periods, padded 0
processed data for 10 days, padded 0
processed data for 36 hours, padded 0
weather data processed
Astronomy turned off in config
done!

As you can see, it passes the ping test, but doesn't download the data. Any help appreciated.
Thanks. smile

Offline

#984 2014-09-22 13:14:22

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,788
Website

Re: Wun Weather Script for Conky (Lua)

^ does it work if you kill the conky and then restart it?


To #! or not to #!?  That is the question! | #! Forum Moderator
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OHCG'er
StartPage -  protect your privacy   |   LinuxBBQ

Online

#985 2014-09-22 13:55:44

easysid
#! CrunchBanger
From: India
Registered: 2013-01-25
Posts: 130

Re: Wun Weather Script for Conky (Lua)

^ Yes, works fine after restarting/reloading.

Offline

#986 2014-09-22 15:45:43

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,788
Website

Re: Wun Weather Script for Conky (Lua)

I've gone nuts trying to find some help regarding this to no avail.   sad


To #! or not to #!?  That is the question! | #! Forum Moderator
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OHCG'er
StartPage -  protect your privacy   |   LinuxBBQ

Online

#987 2014-09-22 16:47:18

easysid
#! CrunchBanger
From: India
Registered: 2013-01-25
Posts: 130

Re: Wun Weather Script for Conky (Lua)

^ can you duplicate the issue or is it just one off thing with my config?

Offline

#988 2014-09-22 16:52:34

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

Re: Wun Weather Script for Conky (Lua)

^ I haven't noticed this problem but I'll try to duplicate it when I get home.
If S11 hasn't already beat me to it. 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

#989 2014-09-22 19:19:08

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,788
Website

Re: Wun Weather Script for Conky (Lua)

easysid wrote:

^ can you duplicate the issue or is it just one off thing with my config?

I'm on a cable modem ... I'm on 24/7 if my computer is on.

The 'odd' time I loose connection when they reconnect me I just run my SSC.sh to -restart them all:

#!/bin/bash
# click to start, click to stop

if pidof conky | grep [0-9] > /dev/null
	killall conky &
  then

# Start with low sleep on highest desktop
# Increase sleep as desktop lowers to insure the conky is running before changing desktops.

# on desktop 4 only |  own_window_hints »» has no sticky
	(sleep 0s && wmctrl -s 3 && conky -c /media/5/Conky/time_tm.conky) &
	(sleep 0s && wmctrl -s 3 && conky -c /media/5/Conky/time_L.conky) &
	(sleep 0s && wmctrl -s 3 && conky -c /media/5/Conky/time_R.conky) &

# on desktop 3 only | own_window_hints »» has no sticky
	(sleep 4s && wmctrl -s 2 && conky -c /media/5/conky/7_months_h.conky) &

# on desktop 2 only |  own_window_hints »» has no sticky
	(sleep 8s && wmctrl -s 1 && conky -c /media/5/Conky/S11_Rem_Cal.conky) &
	(sleep 8s && wmctrl -s 1 && conky -c /media/5/Conky/S11_Dates.conky) &

# on desktop 1 only | own_window_hints »» has no sticky
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_thin_l_wx.conky) &
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_thin_r_side.conky) &
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_VRX.conky) &
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_OJO.conky) &
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_Dollar_Calc.conky) &
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_VNSTAT_2.conky) &

# on all desktops | own_window_hints »» has sticky
	(sleep 12s && conky -c /media/5/Conky/S11_Email_01.conky) &
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_MD_Cal-br_2.conky) &

else

### Part II ====================================================================

# on desktop 4 only |  own_window_hints »» has no sticky
	(sleep 0s && wmctrl -s 3 && conky -c /media/5/Conky/time_tm.conky) &
	(sleep 0s && wmctrl -s 3 && conky -c /media/5/Conky/time_L.conky) &
	(sleep 0s && wmctrl -s 3 && conky -c /media/5/Conky/time_R.conky) &

# on desktop 3 only | own_window_hints »» has no sticky
	(sleep 4s && wmctrl -s 2 && conky -c /media/5/conky/7_months_h.conky) &

# on desktop 2 only |  own_window_hints »» has no sticky
	(sleep 8s && wmctrl -s 1 && conky -c /media/5/Conky/S11_Rem_Cal.conky) &
	(sleep 8s && wmctrl -s 1 && conky -c /media/5/Conky/S11_Dates.conky) &

# on desktop 1 only | own_window_hints »» has no sticky
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_thin_l_wx.conky) &
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_thin_r_side.conky) &
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_VRX.conky) &
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_OJO.conky) &
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_Dollar_Calc.conky) &
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_VNSTAT_2.conky) &

# on all desktops | own_window_hints »» has sticky
	(sleep 12s && conky -c /media/5/Conky/S11_Email_01.conky) &
	(sleep 12s && wmctrl -s 0 && conky -c /media/5/Conky/S11_MD_Cal-br_2.conky) &

exit
fi

... so I'm not much help.

Still looking though.


To #! or not to #!?  That is the question! | #! Forum Moderator
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OHCG'er
StartPage -  protect your privacy   |   LinuxBBQ

Online

#990 2014-09-22 23:57:44

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

Re: Wun Weather Script for Conky (Lua)

Sector11 wrote:

I'm on a cable modem ... I'm on 24/7 if my computer is on.

Same here!
So I unplugged  the cable from my router to my PC for 10 min (I've got my lua set to refresh every 5) with no problems.
Maybe mrpeachy will chime in soon with some troubleshooting advice.


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

#991 2014-09-24 15:58:00

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

Re: Wun Weather Script for Conky (Lua)

i have a problem with my wun.lua

Conky: llua_do_call: function conky_weather execution failed: /home/alexander/wun/wun.lua:1826: attempt to perform arithmetic on a nil value

can anyone confirm this error? do you have a fix for this?

Offline

#992 2014-09-24 16:27:10

easysid
#! CrunchBanger
From: India
Registered: 2013-01-25
Posts: 130

Re: Wun Weather Script for Conky (Lua)

^ was it working before? Can you post the line? Recheck the config and the key.

Offline

#993 2014-09-24 16:38:13

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

Re: Wun Weather Script for Conky (Lua)

it was working before. i rechecked the config.

this is the line:

local d2o=d1o+tonumber(lup)

Offline

#994 2014-09-24 16:46:45

easysid
#! CrunchBanger
From: India
Registered: 2013-01-25
Posts: 130

Re: Wun Weather Script for Conky (Lua)

Working before what? Did you perform some update? See if downloading the archive again and new setup solves this.

Offline

#995 2014-09-24 16:59:51

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

Re: Wun Weather Script for Conky (Lua)

it worked until this error! i did not change anything?!

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