You are not logged in.

#2001 2018-01-29 20:25:51

sinister
Member
From: North Carolina
Registered: 2015-09-29
Posts: 35

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

TeoBigusGeekus wrote:

Hi there buddy!
Just wait until the script refreshes.
Post back if your problem is resolved.

do i have to have the script called in openbox auto start?

im a fool dont mind me...  monkey

Last edited by sinister (2018-01-29 21:53:46)

Offline

#2002 2018-01-29 22:10:37

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

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

@martix
The 1_rss script might have the info you need.

@sinister
You have to autostart conky somehow.
Conky will call the scrtipt, if you are usimg my conkyrcs that is.


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

#2003 2018-01-30 00:15:21

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

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

TeoBigusGeekus wrote:

@martix
The 1_rss script might have the info you need.

@Teo Thank you for pointing in the right direction. I found this:
"Finding the rss address for your location

USA users: The rss address of your location is this string http://rss.accuweather.com/rss/liveweat … p?locCode= with your zip code added. So, if you want the weather for Little Elm, TX, the full rss address is http://rss.accuweather.com/rss/liveweat … Code=75068

INTERNATIONAL users: This one's a bit more difficult. Go to this address http://netweather.accuweather.com/signu … traveler=0 Click on "GET MY NETWEATHER". Enter your location in the 3rd search bar and click search. If your location is found, click next. At the next page, click one of the two next buttons. Check the "I agree to these terms and conditions." checkbox and you will be directed to a page with two textboxes: Web Page Code and MySpace Code.Scroll down in either of theses textboxes, until you find a line that goes something like this ...partner=accuweather&zipcode=EUR|DE|GM003|BERLIN|' >Weather Radar</a></div></div> The rss address of your location is formed by the string http://rss.accuweather.com/rss/liveweat … p?locCode=   and the zipcode provided by netweather. So, for Berlin, Germany, the full rss address is http://rss.accuweather.com/rss/liveweat … 03|BERLIN| For metric output, add metric=1, ie: http://rss.accuweather.com/rss/liveweat … 03|BERLIN| Go into the 1_accuweather_RSS folder and open the 1_RSS script. Replace my address in the address variable with yours."

It looks like there is no way to automatically set the location according to the IP for accuweather. Is that right?

Otherwise it looks very neat, like here that Kastoria Greece picture. I'd like to get only current data shown without forecast. I'm not familiar with the whole accuweather concept - is the 1_accuweather_RSS_28-9-17.tar.gz tarball till ok to try? (Jesus!! I just downloaded it from devil's drive - khm - g* drive I mean. As a sidenote: There are pretty good alternatives like Nextcloud, Owncloud, Syncthing or Seafile.)

When originally bunsenweather.sh was made, openweathermap.org did not require any api key, but they decided to use one, which requires a registration.

Offline

#2004 2018-01-30 01:33:18

sinister
Member
From: North Carolina
Registered: 2015-09-29
Posts: 35

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

ya @Teo i kind of forgot to add that line in when i was editing my conkyrc file tongue
all fixed now big_smile

Offline

#2005 2018-01-30 16:20:56

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

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

@martix
What's your location?


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

#2006 2018-01-30 16:41:58

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

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

@TeoBigusGeekus It's not about a weather conky for me. I'm just trying to figure out whether there is maybe a way to replace openweathermap.org in the bunsenweather script by a service, which does not require registration (so users could simply activate a commented out line in conky and get weather data displayed according to their IP).

Offline

#2007 2018-01-30 18:07:46

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

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

@sinister
Good to know buddy.

@martix
Then your best bet would be the 1_Accuweather script.
You avoid all the dodgy 1_Accuweather_RSS stuff, you have weather without registration, but the users have to enter their own Accuweather address in the script by hand, I'm afraid my scripts can't give a forecast according to the callers' IP.
Once the address has been defined in the script, a simple call of the latter would do the job.
After the script has populated the appropriate folders with forecast images and the appropriate files with forecast info, the user can choose what is essential to them and use it, getting rid of the unnecessary stuff.
PS: I don't mind Google anymore


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

#2008 2018-01-31 03:02:45

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

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

TeoBigusGeekus wrote:

but the users have to enter their own Accuweather address in the script by hand

I see, thank you for the clarification. This functionality is already in the (updated) bunsenweather.sh script as it can be called via

${execpi 600 $HOME/.config/conky/scripts/bunsenweather.sh "yourlocation"}

so simply choosing a location works, if erlier an API key was pasted in the script.

Meanwhile I looked at wttr.in and there are some hints that it can be used with conky, but I'll have to dig into it further.

P.S.: There are some good alternative search engines without tracking like duckduckgo.com, qwant.com, startpage.com, searx.org, framabee.org, etc.

Offline

#2009 2018-01-31 14:17:24

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

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

martix wrote:

I see, thank you for the clarification. This functionality is already in the (updated) bunsenweather.sh script as it can be called via

${execpi 600 $HOME/.config/conky/scripts/bunsenweather.sh "yourlocation"}

so simply choosing a location works, if erlier an API key was pasted in the script.

Meanwhile I looked at wttr.in and there are some hints that it can be used with conky, but I'll have to dig into it further.

Ok, ask back if you want any more info.

martix wrote:

P.S.: There are some good alternative search engines without tracking like duckduckgo.com, qwant.com, startpage.com, searx.org, framabee.org, etc.

I know, thanks.


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

#2010 2018-01-31 20:58:54

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

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

TeoBigusGeekus wrote:

Ok, ask back if you want any more info.

After some framabeeing around (I might be the first person who used this expression on this planet) I found this and using

${execi 600 curl 'wttr.in/Yourcity?0?T?Q'}

did work, but only with the old syntax. I got something like
conkywithwttrin.th.png
which is not bad, but it's far from perfect (and that geolocation is somehow not correct). On the other hand I like it because it's simple and the screenshot in the linked thread looks how it's supposed to be.

Edit: After some tweaking and using a better font and size for the output, the following line

${font liberation mono:size=9}${execi 100 curl 'wttr.in/paris?0?T'}

looks like this:
conkywithwttrinliberationmono9.th.png

That's pretty neat. And there is also a feature in wttr.in which uses geolocation according to the IP automatically. Although I just noticed that the character for wind direction does not always work.

Last edited by martix (2018-01-31 21:35:34)

Offline

#2011 2018-01-31 22:15:13

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

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

Yeah, I know that particular one.
It's very good, although too simplistic for my tastes.
But if it suits you...


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

#2012 2018-02-04 06:27:27

chepioq
Member
Registered: 2015-11-29
Posts: 69

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

I have a conky moon and I have a file moon-text:

Gibbeuse Décroissante
85 %
375313 Km
17 jours 19 h et 52 m
le 27 Juillet 2018
Décroissante
Descendante
Vierge
27/02/2018 à 15h49
11/02/2018 à 15h16
14/02/2018 à 22h11

I show this text with the conky's command:
${exec cat /moon-text}
But if I want use goto to move this text I have that:
${goto 100}${exec cat /moon-text}

            Gibbeuse Décroissante
85 %
375313 Km
17 jours 19 h et 52 m
le 27 Juillet 2018
Décroissante
Descendante
Vierge
27/02/2018 à 15h49
11/02/2018 à 15h16
14/02/2018 à 22h11

Just first line is moved.

Is there a way to move all lines with goto ?

Offline

#2013 2018-02-04 07:49:56

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

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

Instead of

${exec cat /moon-text}

use

${execpi 500 cat /moon-text|sed 's/^/${goto 100}/'}

Change the update interval (500 seconds) according to your needs.

Last edited by TeoBigusGeekus (2018-02-04 08:11:36)


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

#2014 2018-02-04 14:58:25

chepioq
Member
Registered: 2015-11-29
Posts: 69

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

Thank Teo that's work fine.
tongue

Offline

#2015 2018-02-04 20:18:40

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

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

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

#2016 2018-04-01 16:32:34

unklar
Member
Registered: 2015-10-31
Posts: 891

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

Hello, Teo,

Happy Easter  smile

I have an image error and cannot find a solution.
It's about ".conky_1_weatherfont_simpler", which I built in here.
old_and_newScript.th.png kasten.th.png
correctly >new_and_oldScript.th.png

It's just about the current day and the next three days.
Either the thermometer or this box is displayed instead of the image.
Your latest script is used in this configuration:

...
};

conky.text = [[
${execi 1800 bash $HOME/1_accuweather/1_accuweather -f}\
${image $HOME/Conky-eOS/.conky-weather-icons/background.png -p 0,0 -s 287x682}\
${image $HOME/Conky-eOS/.conky-weather-icons/box.png -p 10,163 -s 267x64}\
${image $HOME/Conky-eOS/.conky-weather-icons/separator.png -p 1,262 -s 285x2}\
${image $HOME/Conky-eOS/.conky-weather-icons/online.png -p 218,135 -s 48x23}\
${image $HOME/Conky-eOS/.conky-weather-icons/offline.png -p 218,135 -s 48x23}\
${image $HOME/Conky-eOS/.conky-weather-icons/separator.png -p 1,365 -s 285x2}\
${image $HOME/Conky-eOS/.conky-weather-icons/separator.png -p 1,540 -s 285x2}\

${voffset 5}${goto 20}${color6}${font conkyweather:size=45}${execi 600  sed -n '22p' $HOME/1_accuweather/curr_cond}${alignr}${font monofur:size=45}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}°
${voffset -15}${goto 16}${color5}${font monofur:size=10}CURRENTLY: ${color6}${alignc}${execpi 600  sed -n '4p' $HOME/1_accuweather/curr_cond} 
${goto 16}${color5}WIND: ${color6}${alignc}${execpi 600 sed -n '6p' $HOME/1_accuweather/curr_cond} 
${goto 16}${color5}PRESSURE: ${color6}${alignc}${execpi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}
${voffset 10}${goto 25}${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}${goto 130}${execpi 600  sed -n '13p' $HOME/1_accuweather/first_days}${goto 230}${execi 600  sed -n '18p' $HOME/1_accuweather/first_days}
${goto 30}${font conkyweather:size=22}${execi 600  sed -n '27p' $HOME/1_accuweather/first_days}${goto 130}${execi 600  sed -n '28p' $HOME/1_accuweather/first_days}${goto 230}${execi 600  sed -n '29p' $HOME/1_accuweather/first_days}
${voffset -15}${goto 45}${font monofur:size=10}${execpi 600  sed -n '9p' $HOME/1_accuweather/first_days}${goto 150}${execpi 600  sed -n '14p' $HOME/1_accuweather/first_days}${goto 250}${execi 600  sed -n '19p' $HOME/1_accuweather/first_days}

${goto 20}${color5}${font monofur:size=14}${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days|cut -c1-3}${goto 130}${color6}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days|cut -c1-3}${goto 230}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days|cut -c1-3}
${font Droid Sans:pixelsize=9}${if_existing /proc/net/route wlp3s0}
...

Excerpt from your original

...

${font monofur:size=9} ${execpi 600 sed -n '1p' $HOME/1_accuweather/aktualisiert}
${hr}
Boot: ${execi 86400 who -b | cut -c23-}
Buenos Aires     ${alignr}${tztime America/Argentina/Buenos_Aires %H:%M}
Kastoria         ${alignr}${tztime Europe/Athens %H:%M}

${font monofur:bold:size=12}W E A T H E R ${font monofur:size=9}$color${execi 1800 bash $HOME/1_accuweather/1_accuweather -f}
${hr}
NOW:${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}°${alignc}${execpi 600 sed -n '1p' $HOME/1_accuweather/first_days|cut -c1-3|sed 's/EAR/AM/'}:${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '4p' $HOME/1_accuweather/first_days}°
${font conkyweather:size=30}${execi 600  sed -n '22p' $HOME/1_accuweather/curr_cond}${goto 85}${execi 600  sed -n '26p' $HOME/1_accuweather/first_days}${font monofur:size=9}
 ${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days|cut -c1-3}${goto 55}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days|cut -c1-3}${goto 98}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days|cut -c1-3}
${font conkyweather:size=22}${execi 600  sed -n '27p' $HOME/1_accuweather/first_days}${goto 53}${execi 600  sed -n '28p' $HOME/1_accuweather/first_days}${goto 98}${execi 600  sed -n '29p' $HOME/1_accuweather/first_days}${font monofur:size=9}
${execi 600  sed -n '8p' $HOME/1_accuweather/first_days}/${execi 600  sed -n '9p' $HOME/1_accuweather/first_days}${goto 52} ${execi 600  sed -n '13p' $HOME/1_accuweather/first_days}/${execi 600  sed -n '14p' $HOME/1_accuweather/first_days}${goto 98} ${execi 600  sed -n '18p' $HOME/1_accuweather/first_days}/${execi 600  sed -n '19p' $HOME/1_accuweather/first_days}
 ${execpi 600 sed -n '21p' $HOME/1_accuweather/first_days|cut -c1-3}${goto 55}${execpi 600 sed -n '1p' $HOME/1_accuweather/last_days|cut -c1-3}${goto 98}${execpi 600 sed -n '6p' $HOME/1_accuweather/last_days|cut -c1-3}
${font conkyweather:size=22}${execi 600  sed -n '30p' $HOME/1_accuweather/first_days}${goto 53}${execi 600  sed -n '26p' $HOME/1_accuweather/last_days}${goto 98}${execi 600  sed -n '27p' $HOME/1_accuweather/last_days}${font monofur:size=9}
${execi 600  sed -n '23p' $HOME/1_accuweather/first_days}/${execi 600  sed -n '24p' $HOME/1_accuweather/first_days}${goto 52} ${execi 600  sed -n '3p' $HOME/1_accuweather/last_days}/${execi 600  sed -n '4p' $HOME/1_accuweather/last_days}${goto 98} ${execi 600  sed -n '8p' $HOME/1_accuweather/last_days}/${execi 600  sed -n '9p' $HOME/1_accuweather/last_days}
 ${execpi 600 sed -n '11p' $HOME/1_accuweather/last_days|cut -c1-3}${goto 55}${execpi 600 sed -n '16p' $HOME/1_accuweather/last_days|cut -c1-3}${goto 98}${execpi 600 sed -n '21p' $HOME/1_accuweather/last_days|cut -c1-3}
${font conkyweather:size=22}${execi 600  sed -n '28p' $HOME/1_accuweather/last_days}${goto 53}${execi 600  sed -n '29p' $HOME/1_accuweather/last_days}${goto 98}${execi 600  sed -n '30p' $HOME/1_accuweather/last_days}${font monofur:size=9}
${execi 600  sed -n '13p' $HOME/1_accuweather/last_days}/${execi 600  sed -n '14p' $HOME/1_accuweather/last_days}${goto 52} ${execi 600  sed -n '18p' $HOME/1_accuweather/last_days}/${execi 600  sed -n '19p' $HOME/1_accuweather/last_days}${goto 98} ${execi 600  sed -n '23p' $HOME/1_accuweather/last_days}/${execi 600  sed -n '24p' $HOME/1_accuweather/last_days}

]];

My local line:

http://www.accuweather.com/en/de/lichtenstein/09350/weather-forecast/171261

The idea is from here.

Thanks for your time.   angel

Last edited by unklar (2018-04-01 16:48:39)

Offline

#2017 2018-04-01 16:58:53

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

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

It works perfectly for me unklar
vtJ1Ukqt.jpg

When you get the error, can you give us the contents of your curr_cond file?


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

#2018 2018-04-01 17:27:38

unklar
Member
Registered: 2015-10-31
Posts: 891

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

Sorry   wink

18
4
-1
Rain
NW
17 km/h
83%
1005.00 mb
0
83%
701 m
2
14 km
06:47 AM
07:41 PM
12:54 hr
1-m
08:50 PM
08:00 AM
11:10 hr
33-m
i
06:47
19:41
20:50
08:00
7

Offline

#2019 2018-04-01 20:30:28

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

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

${voffset 5}${goto 20}${color6}${font conkyweather:size=45}${execi 600  sed -n '22p' $HOME/1_accuweather/curr_cond}${alignr}${font monofur:size=45}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}°

Your conky reads the 22nd line of the curr_cond file which in this case is the letter "i" (and then goes on to read the 2nd line of the same file, which is 4 and is of course Lichtenstein's current temperature).
The letter "i", using conkyweather font is the rain icon indicated here
AMGY9hKt.jpg
which should be current Lichtenstein weather.
So, your conky SHOULD display a rain weatherfont icon...
Does it still persist showing a temp icon or a square?


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

#2020 2018-04-02 06:20:11

unklar
Member
Registered: 2015-10-31
Posts: 891

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

TeoBigusGeekus wrote:

Does it still persist showing a temp icon or a square?

Yes. monkey

The curr_cond reports "e".  However, the evaluation takes "E". The "i" is generally represented by a box.

Your table tells me the error must be above TEXT in the configuration.
I'll be back...

Offline

#2021 2018-04-02 10:48:01

unklar
Member
Registered: 2015-10-31
Posts: 891

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

Thank you, Teo. for your time Table.  big_smile

After an Easter walk with my grandson, the problem is solved.
2018-04-02-12-08-28_scrot.th.png


I originally had the original configuration with

lua convert.lua

into the syntax 1.10 used here in bunsen-labs-helium.
And I had overlooked that it was missing

override_utf8_locale = true,

After that I saw the big ConkyWeather.ttf,
but for "h" in the third day preview only one box.

So, I've been above now get everything exchanged.

The completely cleaned code:

-- pkill -xf "conky -c /Test/S11TESTconky10" &
-- 2018-04-02
conky.config = {
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'skip_taskbar,skip_pager,below,undecorated',
--own_window_colour 000000
--own_window_argb_visual yes
--own_window_argb_value 80
own_window_class = 'Conky',
--own_window_title = 'Test-Code',

override_utf8_locale = true,
use_xft = true,
font = 'Open Sans Light:size=9',
--font = 'Birdman:size=13',
--xftfont Roboto Condensed:size=12
--xftfont Liberation Mono:bold:size=11
--xftfont Fantasque Sans Mono:bold:size=12
--xftfont Monofur:bold:size=12
--xftfont DejaVu Sans Mono:bold:size=10
--xftfont Fira Mono:bold:size=11
xftalpha = 1.0,

draw_borders = false,
border_inner_margin = 0,
border_outer_margin = 0,

background = false,
use_spacer = 'none',
no_buffers = true,
double_buffer = true,

update_interval = 2,

--#################################################################
minimum_width = 287, minimum_height = 682,
--maximum_width = 287,
gap_x = 10,
gap_y = 45,

draw_shades = false,
default_shade_color = '#292421',
draw_outline = false,
draw_borders = false,

stippled_borders = 0,
--border_inner_margin 30
--border_outer_margin 0
draw_graph_borders = false,
border_width = 0,

--alignment top_left
alignment = 'top_right',
--alignment bottom_left
--alignment bottom_right

imlib_cache_size = 0,

color1 = '#323232',
color2 = '#323232',
color3 = '#000000',
color4 = '#6b6b6b',
color5 = '#6db9d5',
color6 = '#000000',
color7 = '#000000',

};

conky.text = [[

${image $HOME/Conky-eOS/.conky-weather-icons/background.png -p 0,0 -s 287x682}\
${image $HOME/Conky-eOS/.conky-weather-icons/box.png -p 10,163 -s 267x64}\
${image $HOME/Conky-eOS/.conky-weather-icons/separator.png -p 1,262 -s 285x2}\
${image $HOME/Conky-eOS/.conky-weather-icons/online.png -p 218,135 -s 48x23}\
${image $HOME/Conky-eOS/.conky-weather-icons/offline.png -p 218,135 -s 48x23}\
${image $HOME/Conky-eOS/.conky-weather-icons/separator.png -p 1,365 -s 285x2}\
${image $HOME/Conky-eOS/.conky-weather-icons/separator.png -p 1,540 -s 285x2}\
${texeci 1800 bash $HOME/1_accuweather/1_accuweather -f}\
${voffset 5}${goto 20}${color6}${font conkyweather:size=50}${execi 600  sed -n '22p' $HOME/1_accuweather/curr_cond}${alignr}${font monofur:size=45}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}°
${voffset -20}${goto 16}${color5}${font monofur:size=10}CURRENTLY: ${color6}${alignc}${execpi 600  sed -n '4p' $HOME/1_accuweather/curr_cond} 
${goto 16}${color5}WIND: ${color6}${alignc}${execpi 600 sed -n '6p' $HOME/1_accuweather/curr_cond} 
${goto 16}${color5}PRESSURE: ${color6}${alignc}${execpi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}
${voffset 10}${goto 25}${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}${goto 130}${execpi 600  sed -n '13p' $HOME/1_accuweather/first_days}${goto 230}${execi 600  sed -n '18p' $HOME/1_accuweather/first_days}
${goto 30}${font conkyweather:size=22}${execi 600  sed -n '27p' $HOME/1_accuweather/first_days}${goto 130}${execi 600  sed -n '28p' $HOME/1_accuweather/first_days}${goto 230}${execi 600  sed -n '29p' $HOME/1_accuweather/first_days}
${voffset -15}${goto 45}${font monofur:size=10}${execpi 600  sed -n '9p' $HOME/1_accuweather/first_days}${goto 150}${execpi 600  sed -n '14p' $HOME/1_accuweather/first_days}${goto 250}${execi 600  sed -n '19p' $HOME/1_accuweather/first_days}

${goto 20}${color5}${font monofur:size=14}${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days|cut -c1-3}${goto 130}${color6}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days|cut -c1-3}${goto 230}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days|cut -c1-3}
${font Droid Sans:pixelsize=9}${if_existing /proc/net/route wlp3s0}
${goto 14}${color5}Up:${color1} ${color3}${upspeed wlp3s0}${color1}${alignr}${goto 190}${color5}Down:${color1} ${color3}${downspeed wlp3s0}${color1}
${goto 14}${upspeedgraph wlp3s0 50,120 6db9d5 6db9d5}${alignr}${goto 160}${downspeedgraph wlp3s0 50,120 6db9d5 6db9d5}
${goto 14}${color5}Sent:${color1} ${color2}${totalup wlp3s0}${color1}${alignr}${goto 190}${color5}Received:${color1} ${color2}${totaldown wlp3s0}${color}1
${else}${if_existing /proc/net/route enp0s25}
${goto 14}${color5}Up:${color1} ${color3}${upspeed enp0s25}${color1}${alignr}${goto 190}${color5}Down:${color1} ${color3}${downspeed enp0s25}${color}
${goto 14}${upspeedgraph enp0s25 50,120 6db9d5 6db9d5}${alignr}${goto 160}${downspeedgraph enp0s25 50,120 6db9d5 6db9d5}
${goto 14}${color5}Sent:${color1} ${color2}${totalup enp0s25}${color1}${alignr}${goto 190}${color5}Received:${color} ${color2}${totaldown enp0s25}${color1}
${else}${if_existing /proc/net/route eth1}
${goto 14}${color5}Up:${color1} ${color3}${upspeed eth1}${color}${alignr}${goto 190}${color5}Down:${color1} ${color3}${downspeed eth1}${color1}
${goto 14}${upspeedgraph eth1 50,120 6db9d5 6db9d5}${alignr}${goto 160}${downspeedgraph eth1 50,120 6db9d5 6db9d5}
${goto 14}${color5}Sent:${color1} ${color2}${totalup eth1}${color1}${alignr}${goto 190}${color5}Received:${color1} ${color2}${totaldown eth1}${color1}
${else}${if_existing /proc/net/route ppp0}
${goto 14}${color5}Up:${color1} ${color1}${upspeed ppp0}${color}${alignr}${goto 160}${goto 190}${color5}Down:${color1} ${color1}${downspeed ppp0}${color}
${goto 14}${upspeedgraph ppp0 50,120 6db9d5 6db9d5}${alignr}${goto 160}${downspeedgraph ppp0 50,120 6db9d5 6db9d5}

${goto 14}${color5}Sent:${color1} ${color2}${totalup ppp0}${color1}${alignr}${goto 190}${color5}Received:${color1} ${color2}${totaldown ppp0}${color1}
${else}
   Network disconnected
${color3}   Connect to a network to see statistics${color1}
${voffset 50}
${endif}${endif}${endif}${endif}${voffset -15}


${goto 50}${font Open Sans Light:size=15}Processors/Memory
${goto 14}${color5}${font Droid Sans:pixelsize=9}CPU 1: ${color1}${alignc}${freq_g 0} ${color1}Ghz ${goto 14}${color2}${alignr}${goto 254}${cpu cpu0}${color1}%
${goto 14}${color5}${font Droid Sans Light:pixelsize=9}CPU 2: ${color1}${alignc}${freq_g 1} ${color1}Ghz ${goto 14}${color2}${alignr}${goto 254}${cpu cpu1}${color1}%
#${goto 14}${color5}${font Droid Sans:pixelsize=9}CPU 3: ${color1}${alignc}${freq_g 2} ${color1}Ghz ${color2}${alignr}${goto 254}${cpu cpu2}${color1}%
#${goto 14}${color5}${font Droid Sans:pixelsize=9}CPU 4: ${color1}${alignc}${freq_g 3} ${color1}Ghz ${color2}${alignr}${goto 254}${cpu cpu3}${color1}%
${goto 14}${alignr}${goto 14}${loadgraph 50,266 6db9d5 6db9d5 -l}

${goto 14}${color5}${font Droid Sans:pixelsize=9}RAM: ${color1}${alignc 10}${mem}
${goto 14}${color5}${font Droid Sans:pixelsize=9}TOTAL: ${color1}${alignc 10}${memmax}

${goto 74}${color1}${font Open Sans Light:size=15}Top Processes
${goto 14}${color1}${font Droid Sans:pixelsize=9}${color5}${top_mem name 1}${color1}${alignc -10}${top_mem mem_res 1}${color2}${alignr}${goto 234}${top_mem mem 1}${color1} %
${goto 14}${color1}${font Droid Sans:pixelsize=9}${color5}${top_mem name 2}${color1}${alignc -10}${top_mem mem_res 2}${color2}${alignr}${goto 234}${top_mem mem 2}${color1} %
${goto 14}${color1}${font Droid Sans:pixelsize=9}${color5}${top_mem name 3}${color1}${alignc -10}${top_mem mem_res 3}${color2}${alignr}${goto 234}${top_mem mem 3}${color1} %
${goto 14}${color1}${font Droid Sans:pixelsize=9}${color5}${top_mem name 4}${color1}${alignc -10}${top_mem mem_res 4}${color2}${alignr}${goto 234}${top_mem mem 4}${color1} %
${goto 14}${color1}${font Droid Sans:pixelsize=9}${color5}${top_mem name 5}${color1}${alignc -10}${top_mem mem_res 5}${color2}${alignr}${goto 234}${top_mem mem 5}${color1} % 

]];

Offline

#2022 2018-04-02 11:30:27

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

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

Good to know everything's settled unklar 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

#2023 2018-04-10 11:14:22

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 17
Website

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

I just updated my conky config. It looks like this: smile

25CLvmV.png

Here's the config is someone needs it:
https://github.com/morfikov/files/tree/ … fik/.conky

Offline

#2024 2018-04-10 14:25:47

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

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

^That's kind of full. But I like it. Is that /var/log/messages? How do you do the output in conky?

I was thinking having that and maybe journalctl -xf as a background. Could there be anything else useful? Maybe .xsession-errors? I really dislike those silly 'bg_color' is not a valid color name messges, they're everywhere...

Offline

#2025 2018-04-10 14:42:04

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 17
Website

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

Logs aren't manged by conky. I have 5 different windows there: 4x conky (top, left, center and right) and 1x urxvt terminal with tmux on it with 8 tabs.

Logs come from different sources: systemd journal, FIFO devices managed by rsyslog daemon (local and remote) or messages sent via /etc/X11/Xsession script (exec >>"$ERRFILE" 2>&1 which gives me all the X session logs that usually go to .xsession-errors), etc. You basically can see the exact commands here (of course you have to do some filtering in rsyslog and redirect the messages to the FIFO devices).

Offline

Board footer

Powered by FluxBB