You are not logged in.
Looking forward to seeing it S11
If you start turning blue - breathe! It's not going to be soon!
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
@sector11
apart form adding astronomy to the list at the top of the templates everything else has remained the same
so any tweaking to date should still be valid
Offline
@mrpeachy, the updated scripts worked like a charm with wun_template.lua.
Thanks, now this is what I get with iweather.lua.
I also noticed the time 4:01 PM stays the same all other visible data updates every 5 min.
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
iweather.lua with wun seems to be working for me
the top right time is a bug that i keep forgetting to fix!
the 01 is actually the month
in the code line 71
out({a=1,fs=16,x=280,y=25,txt=os.date("%I:%m %p")})
the %m is showing month, it should be %M :8
when you load the weather using iweather.lua do you get any messages in the terminal?
EDIT
another oops on line 210, the [i ] should be [i+5 ]
had to add spaces to get the above line to show up
Last edited by mrpeachy (2014-01-07 23:31:49)
Offline
@sector11
apart form adding astronomy to the list at the top of the templates everything else has remained the same
so any tweaking to date should still be valid
Ahhhhhhhh - OK thanks.
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
@mrpeachy, %M fixed the time.
Line 210 was already [i+5 ] here's my output when I killall conky and run in terminal.
joe@crunchbang:~$ conky -c ~/wun/wunrc
Conky: desktop window (155) is root window
Conky: window type - normal
Conky: drawing to created window (0x1a00001)
Conky: drawing to double buffer
gathering weather data 1/3
http://api.wunderground.com/api/key/conditions/forecast10day/astronomy/hourly/lang:EN/q/38343.json
weather data processed
getting astronomy data
gathered day 1
gathered day 2
gathered day 3
gathered day 4
gathered day 5
gathered day 6
gathered day 7
gathered day 8
gathered day 9
gathered day 10
astronomy data processed
EDIT
It just goes into a loop from there and I noticed the wind direction showed up no data below that.
Last edited by jst_joe (2014-01-08 01:17:20)
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
Anyone else having a problem with wun_template.lua going blank when it updates?
This is the new wun from the top of this thread, it restarts manually without errors but blanks on the next update.
I had the interval set to 300 (5 min.) that's only 288 times per 24 hr and even tried 600, scratching head.
I get blanked kind of often.
I have no idea what my interval is set to, I only edited like 4 items, none of which were time-related.
http://www.zimagez.com/zimage/screensho … 5622pm.php
Last edited by Habitual (2014-01-08 00:12:56)
Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.
Offline
^
I resemble that remark!
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
@mrpeachy, %M fixed the time.
![]()
Line 210 was already [i+5 ] here's my output when I killall conky and run in terminal.joe@crunchbang:~$ conky -c ~/wun/wunrc Conky: desktop window (155) is root window Conky: window type - normal Conky: drawing to created window (0x1a00001) Conky: drawing to double buffer gathering weather data 1/3 http://api.wunderground.com/api/key/conditions/forecast10day/astronomy/hourly/lang:EN/q/38343.json weather data processed getting astronomy data gathered day 1 gathered day 2 gathered day 3 gathered day 4 gathered day 5 gathered day 6 gathered day 7 gathered day 8 gathered day 9 gathered day 10 astronomy data processed
EDIT
It just goes into a loop from there and I noticed the wind direction showed up no data below that.
what does the loop say?
Last edited by mrpeachy (2014-01-08 01:05:37)
Offline
Give me a few minutes and I'll post the lines of about 3 repeats.
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
also go to your earlier post and edit out your wunderground key just in case
Offline
^ Thanks!
I went to do that and it was already done.
Mods I guess and if so thanks to whomever. :8
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
it is still there here http://crunchbang.org/forums/viewtopic. … 79#p355179
i edited it out in the quote i posted above
Offline
Here's the output of 4 repeats.
joe@crunchbang:~$ killall conky
joe@crunchbang:~$ conky -c ~/wun/wunrc
Conky: desktop window (155) is root window
Conky: window type - normal
Conky: drawing to created window (0x1a00001)
Conky: drawing to double buffer
gathering weather data 1/3
http://api.wunderground.com/api/key/conditions/forecast10day/astronomy/hourly/lang:EN/q/38343.json
weather data processed
getting astronomy data
gathered day 1
gathered day 2
gathered day 3
gathered day 4
gathered day 5
gathered day 6
gathered day 7
gathered day 8
gathered day 9
gathered day 10
astronomy data processed
gathering weather data 1/3
http://api.wunderground.com/api/key/conditions/forecast10day/astronomy/hourly/lang:EN/q/38343.json
weather data processed
getting astronomy data
gathered day 1
gathered day 2
gathered day 3
gathered day 4
gathered day 5
gathered day 6
gathered day 7
gathered day 8
gathered day 9
gathered day 10
astronomy data processed
gathering weather data 1/3
http://api.wunderground.com/api/key/conditions/forecast10day/astronomy/hourly/lang:EN/q/38343.json
weather data processed
getting astronomy data
gathered day 1
gathered day 2
gathered day 3
gathered day 4
gathered day 5
gathered day 6
gathered day 7
gathered day 8
gathered day 9
gathered day 10
astronomy data processed
gathering weather data 1/3
http://api.wunderground.com/api/key/conditions/forecast10day/astronomy/hourly/lang:EN/q/38343.json
weather data processed
getting astronomy data
gathered day 1
gathered day 2
gathered day 3
gathered day 4
gathered day 5
gathered day 6
gathered day 7
gathered day 8
gathered day 9
gathered day 10
astronomy data processed
Just keeps repeating from there.
EDIT
Damn, I've been sober for over four years I swear!
Last edited by jst_joe (2014-01-08 01:20:06)
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
That is strange...
have you edited anything in the wun.lua script?
is this from the latest archive? see update in first post of this thread
delete your old wun folder and replace it with the new one
Offline
Only this.
local username = "joe"
EDIT
Yes I got it when I saw your post about it going blank after updates.
Last edited by jst_joe (2014-01-08 01:36:15)
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
killall conky
delete your wun folder and try again is all i can think of...
Offline
Thanks mrpeachy I'll try that and please don't get me wrong the new wun_template.lua is working great even the astronomy section.
Perhaps interactive lua is just not in my cards.
Thanks for all your help and the fantastic lua's.
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
@jst_joe - no problem!
I only have my computer and my setup to test with so its good to have people trying it out with different setups
oh... i forgot about the interactive part
have you had other interactive scripts running?
do you have xdotool installed?
post the wunrc you are launching please
Offline
@jst_joe - no problem!
I only have my computer and my setup to test with so its good to have people trying it out with different setups
oh... i forgot about the interactive part
have you had other interactive scripts running?do you have xdotool installed?
post the wunrc you are launching please
Yes I believe it was the earlier iwaether.lua's before you went to the wunderground.com scripts.
Unfortunately I deleted them when I got the wun_template.lua working the way I wanted.
I have xdotool version 2.20110530.1.
Here's my wunrc, the only thing I've changed is [alignment top_left].
##############################################
# Settings
##############################################
max_specials 10000
max_user_text 1500000
background no
use_xft yes
#xftfont Sans:size=12
#xftalpha 1
font Mono:size=8
total_run_times 0
own_window yes
##own_window_argb_visual yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 450 900
maximum_width 450
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color white
alignment top_left
gap_x 10
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
color1 86acad #darker blue
color2 b1c9c9 #lighter blue
text_buffer_size 100000
top_name_width 10
update_interval 1
own_window_title interactiveconkyrc
lua_load ~/wun/wun.lua
lua_draw_hook_post weather
lua_load ~/wun/wun_template.lua
#lua_load ~/wun/wun.lua
#lua_draw_hook_post weather
#lua_load ~/wun/iweather.lua
####################################################
## Set the path to button_script.lua here ##########
####################################################
#lua_load ~/wun/button_script.lua
####################################################
## activate mouse click logging ####################
####################################################
#lua_draw_hook_pre get_mouse {"interactiveconkyrc","/tmp/xdo"}
## after function call, table containing window title and path to click log file
## before running script create a blank log file first. In the example above "/tmp/xdo" credate a blank file called xdo in your /tmp directory
####################################################
## restart click logging on conkyrc save/startup ###
####################################################
#lua_startup_hook start_xdo /tmp/xdo
## send click file location following function call if not set up in lua script
####################################################
## kill xdotool process on conkyrc save/shutdown ###
####################################################
#lua_shutdown_hook stop_xdo
####################################################
TEXT
Hope it helps.
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
have you edited your wun_config.lua?
is your update interval very quick which would explain the multiple looping text in the terminal but no errors
Offline
have you edited your wun_config.lua?
is your update interval very quick which would explain the multiple looping text in the terminal but no errors
I've got my update interval set at 300 or every 5 min.
Is that too quick?
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
no, that sounds fine.
hmmmm... i am stumped as to why you are getting the behavior you describe
is it the same behavior with any template?
Offline
no, that sounds fine.
hmmmm... i am stumped as to why you are getting the behavior you describeis it the same behavior with any template?
No just iweather.lua this is the new wun_template.lua on the left that I modified.
On the right is a five day wun_forecast.lua that I made from the wun_template.lua.
I run the five day forecast with wunforecastrc that I made from wunrc.
They both run great and are made from today's updated wun.tar.gz that I got earlier after you added the astronomy section.
EDIT
I just noticed you updated the download on the first post, I'll give it a try tomorrow and let you know how it goes.
Thanks for all the help!
Joe
Last edited by jst_joe (2014-01-08 06:01:35)
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
that looks great Joe!
i havn't run the interactive script for a little while, ill fire it up and see if i get anything unusual!
Offline
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