You are not logged in.

#661 2016-03-10 17:52:23

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Which script are you trying to use?
I don't see any weather in your conky configuration.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#662 2016-03-10 22:54:41

d4rksenl4bs
Member
From: israel
Registered: 2016-03-06
Posts: 33

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

# required by producing your own API key from [url]http://www.wunderground.com/weather/api/[/url]
w = Wunderground.new secrets['wunderground']['api_key']

file ={"message":"accurate","cod":"200","count":3,"list":[{"id":2641549,"name":"Newtonhill","coord":{"lon":-2.15,"lat":57.033329},"main":{"temp":276.15,"pressure":1015,"humidity":93,"temp_min":276.15,"temp_max":276.15},"dt":1457569200,"wind":{"speed":4.6,"deg":310},"sys":{"country":""},"clouds":{"all":76},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}]},{"id":2636814,"name":"Stonehaven","coord":{"lon":-2.21177,"lat":56.96365},"main":{"temp":278.511,"temp_min":278.511,"temp_max":278.511,"pressure":1026.42,"sea_level":1028.01,"grnd_level":1026.42,"humidity":100},"dt":1457569155,"wind":{"speed":5.8,"deg":3.00238},"sys":{"country":""},"clouds":{"all":32},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03n"}]},{"id":2640030,"name":"Portlethen","coord":{"lon":-2.13066,"lat":57.054741},"main":{"temp":276.15,"pressure":1015,"humidity":93,"temp_min":276.15,"temp_max":276.15},"dt":1457569200,"wind":{"speed":4.6,"deg":310},"sys":{"country":""},"clouds":{"all":76},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}]}]}
 '/tmp/weather.txt'
humidity   = json['relative_humidity']
feelslike  = json["feelslike_#{degree}"]
visibility = json["visibility_#{distance_unit}"]
weather    = json['weather']

some ruby bs

=== mod edit === code blocks added
Please use

[code]
 code in code blocks
[/code]

Last edited by Sector11 (2016-03-15 13:06:15)

Offline

#663 2016-03-10 22:56:23

d4rksenl4bs
Member
From: israel
Registered: 2016-03-06
Posts: 33

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

i dont ggeet it sometimes what if one conky haave 6 conkyrc files what uave to combine them to one or just load one by one

so easy with conky manager.. but takes all the fun out... plus u learn way more one ure oww

Last edited by d4rksenl4bs (2016-03-10 22:58:08)

Offline

#664 2016-03-11 17:54:56

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

If  what you're trying to do is use the wunderground script, have you read the accompanying pdf?
Everything you need to kmow is there.
Which part do you not understand?

Last edited by TeoBigusGeekus (2016-03-11 17:55:21)


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#665 2016-03-13 20:20:23

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

ANNOUNCEMENT

Script 1c updated. It now has the option to show the weather of up to 8 hours in the past as well as the next 8 hours' forecast. It can always of course show the next 16hours' forecast. The conkyrcs are in the conky 1.10 lua syntax.

Here is the old, conky 1.9 syntax.

.conkyrc_1c_16

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 1030 300
maximum_width 1030

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb

own_window_colour brown

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 30

imlib_cache_size 0
text_buffer_size 4096

# stuff after 'TEXT' will be formatted on screen
TEXT
${font Arial:size=11}${color ffe595}HOURLY WEATHER ${font}${hr 2}${texeci 600 bash $HOME/1c_accuweather_images_hourly/1c}

${execpi 600 sed -n '1,26p' $HOME/1c_accuweather_images_hourly/altogether16}

.conkyrc_1c_8+8

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 500 300
maximum_width 1030

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb

own_window_colour brown

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 30

imlib_cache_size 0
text_buffer_size 4096

# stuff after 'TEXT' will be formatted on screen
TEXT
${font Arial:size=11}${color ffe595}HOURLY WEATHER ${font}${hr 2}${texeci 600 bash $HOME/1c_accuweather_images_hourly/1c}

${execpi 600 sed -n '1,26p' $HOME/1c_accuweather_images_hourly/altogether8+8}

Last edited by TeoBigusGeekus (2016-03-13 20:21:58)


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#666 2016-03-14 09:51:28

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,648

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@Teo

Thank you for your work!
I will test today.   wink

Offline

#667 2016-03-14 14:33:45

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,648

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@Teo,

again, thank you for your good work! Sunny greetings to Greece! O:)

my report:


In the console/terminal from $Mageia and $Arch leads the kill command due to the plus sign (8+8) is not successful.
This is also the start-stop script of @S11 the case.
Remove I "+" (. conkyrc 1_88) operates the kill command correctly.

[unklar@localhost ~]$ pkill -xf "conky -c /home/unklar/1c_accuweather_images_hourly/.conkyrc_1c_8+8 " &
[1] 14106
[1]+  Exit 1                  pkill -xf "conky -c /home/unklar/1c_accuweather_images_hourly/.conkyrc_1c_8+8 "
[unklar@localhost ~]$ killall conky
[unklar@localhost ~]$ pkill -xf "conky -c /home/unklar/1c_accuweather_images_hourly/.conkyrc_1c_88" &
[1] 16552
[1]+  Fertig                  pkill -xf "conky -c /home/unklar/1c_accuweather_images_hourly/.conkyrc_1c_88"

Easy is then conky version 1.9

The version 1.10 requires further tests.
I have the pictures reduced

mogrify -resize 50x30 *.png

the xorg-server in "htop" still has a CPU load ~ 22%
I'll try to KaOS also.

Generally caused the conky-version 1.10 lot more problems. This is my personal experience. Very different factors at play, which are different from one computer to another.

Bunsen Labs should be as long as possible to keep the version 1.9.
gCAmWTrq

Regards  big_smile

Offline

#668 2016-03-14 16:48:04

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Alright, I'll lose the + sign in all the script's file names.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#669 2016-03-14 17:08:05

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

ANNOUNCEMENT

Apparently, putting a plus sign (+) in the filenames of the new 1c wasn't a good idea. + (plus sign) changed to _plus_ for both the altogether8_plus_8 and .conkyrc_1c_8_plus_8 files.

Old conky syntax files:

.conkyrc_1c_16

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 1030 300
maximum_width 1030

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb

own_window_colour brown

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 30

imlib_cache_size 0
text_buffer_size 4096

# stuff after 'TEXT' will be formatted on screen
TEXT
${font Arial:size=11}${color ffe595}HOURLY WEATHER ${font}${hr 2}${texeci 600 bash $HOME/1c_accuweather_images_hourly/1c}

${execpi 600 sed -n '1,26p' $HOME/1c_accuweather_images_hourly/altogether16}

.conkyrc_1c_8_plus_8

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 500 300
maximum_width 1030

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb

own_window_colour brown

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 30

imlib_cache_size 0
text_buffer_size 4096

# stuff after 'TEXT' will be formatted on screen
TEXT
${font Arial:size=11}${color ffe595}HOURLY WEATHER ${font}${hr 2}${texeci 600 bash $HOME/1c_accuweather_images_hourly/1c}

${execpi 600 sed -n '1,26p' $HOME/1c_accuweather_images_hourly/altogether8_plus_8}

Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#670 2016-03-15 13:00:21

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:

I hope it's nothing serious.
All the best S11, I wish you a speedy recovery.

I'm back - still alive and kicking!  smile
Now to check  out what's changed and - cough cough - and test/tweak some stuff.  wink


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#671 2016-03-15 13:17:19

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

/offtopic

d4rksenl4bs wrote:

i dont ggeet it sometimes what if one conky haave 6 conkyrc files what uave to combine them to one or just load one by one

so easy with conky manager.. but takes all the fun out... plus u learn way more one ure oww

I run 12 conkys daily, I do not use any conky manager.  I've tested it over the years but prefer the 'hands on approach'.  One learns better that way.  So in that we agree.

Desktop #1 - 7 conkys - 3 on Desktop #1 only - 4 on all desktops
Desktop #2 - 2 conkys - only on #2
Desktop #3 - 3 conkys - only on #3

And an additional 4 conkys start on desktop #1 when I start the computer (in windows) so I read them, and close them.
ie: my vnstat conky: 2016_03_15_10_16_15_Scrot11.jpg


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#672 2016-03-15 13:42:08

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

unklar wrote:

Bunsen Labs should be as long as possible to keep the version 1.9.

NICE testing unklar!  Awesome work.

BunsenLabs is based on Debian Jessie (stable) so as long as that is the official stable release BL will be running conky v1.9.  And after testing conky v1.10 I have decided: I do not like it. It is slower,  it doesn't have ${pre_exec ...}, I use it a lot, as well I have read about other problems and commands that don't work right in 1.10 that I'm sure time will fix.

So my locally stored: conky-all_1.9.0-6_amd64.deb will become my default conky app for the foreseeable future.

Last edited by Sector11 (2016-03-15 13:43:21)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#673 2016-03-15 14:06:49

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

^ Good to see you back, Sector11. smile

Offline

#674 2016-03-15 14:23:09

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Thank you.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#675 2016-03-15 14:28:28

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,648

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@Sector11

I am delighted that you're back.   smile

Sector11 wrote:

So my locally stored: conky-all_1.9.0-6_amd64.deb will become my default conky app for the foreseeable future.

These provisions have also taken i   wink

Best Regards

Offline

#676 2016-03-15 14:39:44

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Thank you unklar.
  Believe me, I've missed being here - I was going through conky withdrawal.  I have so few pleasures in lifelinux I refuse to give up my one vice.

=== NOTE ===
To keep everyone on track
- two stents installed in the left coronary artery a week ago.
- the one week follow up in an hour.
- it was, in the doctors words, "an excellent proceedure without complications". ${color me-happy}


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#677 2016-03-15 14:41:14

jalexander9
Member
Registered: 2015-11-08
Posts: 152

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

^ Welcome back indeed Sector 11 - Conky Maestro !!

Offline

#678 2016-03-15 14:51:51

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@ jalexander9

Thank you.

As Russell Casse said on 4 July, 1996:

Ha-ha-ha! Hello, boys! I'm BAAAAAACK!

quote


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#679 2016-03-15 15:24:38

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

^ Good to hear. I'll let damo's mother know you are fine big_smile


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#680 2016-03-15 16:46:12

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Welcome back S11 and stay away from overexciting conkys wink


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

Board footer

Powered by FluxBB