You are not logged in.

#1601 2017-05-23 06:13:39

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

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

^ Thank you.  I don't know if I've posted my favorite wallpaper site in that thread, but I don't feel like going through 16 pages to find out.  glasses

Offline

#1602 2017-05-23 06:31:55

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

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

Well, setting text_buffer_size to 4864 didn't work.  And Teo's comment about 4096 working for him prompted me to check the prior version of the script.  The prior version had 4096 and that worked, so now I'm thinking that the text_buffer_size may not be the issue.  The only changes I've made to the .conkyrc_1_hourly_2016 script are replacing $HOME/1_accuweather with $HOME/bin/1_accuweather, commenting out the top right alignment line and uncommenting the bottom left alignment line, and changing the gap_x and gap_y coordinates.

Edit 20170523-01:  I placed another copy of the 1_accuweather folder under my home directory, configured the .conkyrc_1_hourly_2016 script for proper placement on my screen, and then ran the script.  The icons are showing, so I've done something during the changes (probably the folder changes) I've made to the other script.  My apologies to all for chasing a non-existent issue.   hmm

Edit 20170523-02:  I found the issue.  I missed needing to change line 693 in the 1_accuweather script.
Original line: 

sed -i "4s/$/\${image \$HOME\/1_accuweather\/hourly_2016\/hourly_$i.png -s 36x36 -p $jump_to,49}/" $HOME/1_accuweather/altogether16_2016

Now reads: 

sed -i "4s/$/\${image \$HOME\/bin\/1_accuweather\/hourly_2016\/hourly_$i.png -s 36x36 -p $jump_to,49}/" $HOME/bin/1_accuweather/altogether16_2016

big_smile

Last edited by KrunchTime (2017-05-23 07:49:41)

Offline

#1603 2017-05-23 20:11:52

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,170

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

No worries Krunchtime, your feedback is always valuable, false alarm or not. 
As for the deprecated conky commands, I'll deal with it as soon as possible - it's high time I did...


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!

Online

#1604 2017-05-24 18:29:07

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,170

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

ANNOUNCEMENT

I updated some deprecated conky commands in scripts 1, 1-RSS, 3 and 4 (2 was OK), namely the lines

use_spacer='yes'
...
border_margin='9'

have now become

use_spacer='right'
...
border_inner_margin=9

Also, I've changed the 4_Moon conkyrc to conky 10 (Lua) format. It was the only one remaining. 
This update is only for perfectionists, your conky will work perfectly as it were.

Last edited by TeoBigusGeekus (2017-05-24 18:29:30)


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!

Online

#1605 2017-05-24 19:06:32

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

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

^^ Teo

thanks for the compliment "for all perfectionists" here.   big_smile

Offline

#1606 2017-05-24 20:42:34

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,170

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

You know who you are 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!

Online

#1607 2017-05-24 22:36:07

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,666

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

KrunchTime wrote:

^ Thank you.  I don't know if I've posted my favorite wallpaper site in that thread, but I don't feel like going through 16 pages to find out.  glasses

Yup, you did on Page 3, but if your not going to look I'm not telling!  big_smile  And Earth is here.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#1608 2017-05-24 22:41:14

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,666

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

TeoBigusGeekus wrote:

ANNOUNCEMENT

Thanks boss!

Barkeep, whatever he's having is on my bill.

Yea, that's right, that little 1cm x 1cm one, that's mine.  lol

Seriously, Thanks Teo.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#1609 2017-05-24 22:43:39

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,170

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

Thanks for the support all these years buddy...


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!

Online

#1610 2017-05-25 00:15:40

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,666

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

You've made it easy.  smile


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#1611 2017-05-25 01:59:26

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

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

Sector11 wrote:
KrunchTime wrote:

^ Thank you.  I don't know if I've posted my favorite wallpaper site in that thread, but I don't feel like going through 16 pages to find out.  glasses

Yup, you did on Page 3, but if your not going to look I'm not telling!  big_smile  And Earth is here.

Thank you for looking, but you didn't have to.

@Teo:  Thank you for the updates.

Last edited by KrunchTime (2017-05-25 02:00:32)

Offline

#1612 2017-05-25 02:20:11

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,666

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

^ Not a problem, took less then a minute.  Now if there was 400+ pages I doubt I would have bothered because that's when I'd find it on page 345.  smile


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#1613 2017-05-30 07:42:01

Jimbo_G
Member
From: France
Registered: 2017-05-12
Posts: 135

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

I have a question, it's kind of weather related so I thought I'd post it here, but I'm happy to create a new thread if necessary. I was wondering if anyone had seen a conky / script for displaying air pollution levels? I did a few searches but couldn't find anything.

In France we have various air pollution websites (such as http://www.air-rhonealpes.fr/monair/commune/69123) which give an overall indicator between 0 and 100, updated daily (it can go over 100 when it's really bad).

Unfortunately I have no idea how these scripts work or I would try and do it myself...

Last edited by Jimbo_G (2017-05-30 07:42:45)

Offline

#1614 2017-05-30 15:26:40

ector1935
Member
Registered: 2017-05-03
Posts: 169

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

Jimbo_G wrote:

I have a question, it's kind of weather related so I thought I'd post it here, but I'm happy to create a new thread if necessary. I was wondering if anyone had seen a conky / script for displaying air pollution levels? I did a few searches but couldn't find anything.

In France we have various air pollution websites (such as http://www.air-rhonealpes.fr/monair/commune/69123) which give an overall indicator between 0 and 100, updated daily (it can go over 100 when it's really bad).

Unfortunately I have no idea how these scripts work or I would try and do it myself...

Here i found something, see if it can be useful
https://github.com/Lahorde/pws

Offline

#1615 2017-05-30 19:58:21

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,170

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

Jimbo_G wrote:

I have a question, it's kind of weather related so I thought I'd post it here, but I'm happy to create a new thread if necessary. I was wondering if anyone had seen a conky / script for displaying air pollution levels? I did a few searches but couldn't find anything.

In France we have various air pollution websites (such as http://www.air-rhonealpes.fr/monair/commune/69123) which give an overall indicator between 0 and 100, updated daily (it can go over 100 when it's really bad).

Unfortunately I have no idea how these scripts work or I would try and do it myself...

Voila

#!/bin/bash

wget -O $HOME/Desktop/le_pollution http://www.air-rhonealpes.fr/monair/commune/69123
sed -i '/<div class=\"indice\"/!d' $HOME/Desktop/le_pollution
sed -i -e 's/^.*indice\">//' -e 's/<.*$//' $HOME/Desktop/le_pollution

It will create a file on your Desktop with the air pollution value.
You can then do whatever you want with it with conky.


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!

Online

#1616 2017-05-31 07:15:02

ector1935
Member
Registered: 2017-05-03
Posts: 169

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

Hi teo,
I tried your script from the terminal but did not create the file, you could indicate how to put it in the conky.
thank you
regards
answer terminal:

ettore@ectorpc:~$ '/home/ettore/meteo.sh'

/home/ettore/Desktop/le_pollution: File o directory non esistente
sed: impossibile leggere /home/ettore/Desktop/le_pollution: File o directory non esistente
sed: impossibile leggere /home/ettore/Desktop/le_pollution: File o directory non esistente
ettore@ectorpc:~$ 

edit
I realized that I did not have the Desktop folder,you script work!
sig

ettore@ectorpc:~$ '/home/ettore/meteo.sh'


--2017-05-31 10:36:16--  http://www.air-rhonealpes.fr/monair/commune/69123
Risoluzione di www.air-rhonealpes.fr (www.air-rhonealpes.fr)... 195.54.62.174
Connessione a www.air-rhonealpes.fr (www.air-rhonealpes.fr)|195.54.62.174|:80... connesso.
Richiesta HTTP inviata, in attesa di risposta... 200 OK
Lunghezza: non specificato [text/html]
Salvataggio in: "/home/ettore/Music/le_pollution"

/home/ettore/Music/l     [  <=>                   ] 198,05K   904KB/s   in 0,2s   

2017-05-31 10:36:21 (904 KB/s) - "/home/ettore/Music/le_pollution" salvato [202800]

ettore@ectorpc:~$ 

Last edited by ector1935 (2017-05-31 08:38:40)

Offline

#1617 2017-05-31 08:30:20

Jimbo_G
Member
From: France
Registered: 2017-05-12
Posts: 135

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

TeoBigusGeekus wrote:
#!/bin/bash

wget -O $HOME/Desktop/le_pollution http://www.air-rhonealpes.fr/monair/commune/69123
sed -i '/<div class=\"indice\"/!d' $HOME/Desktop/le_pollution
sed -i -e 's/^.*indice\">//' -e 's/<.*$//' $HOME/Desktop/le_pollution

That is awesome, thank you Teo! I'll look forward to trying it out later...

As I don't know anything about this, I'd like to try and understand the code, please correct me if I'm wrong:

- wget copies the specified html to a file on the desktop (or wherever) called le_pollution. The information we want to extract is the number contained in the line <div class="indice">52</div>

- the first sed command deletes everything except the line beginning <div class="indice"

- the second sed command deletes the beginning of the line as far as the number 52 and the end of the line, leaving just the number

Or something like that??

Offline

#1618 2017-05-31 09:35:16

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,170

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

Jimbo_G wrote:
TeoBigusGeekus wrote:
#!/bin/bash

wget -O $HOME/Desktop/le_pollution http://www.air-rhonealpes.fr/monair/commune/69123
sed -i '/<div class=\"indice\"/!d' $HOME/Desktop/le_pollution
sed -i -e 's/^.*indice\">//' -e 's/<.*$//' $HOME/Desktop/le_pollution

That is awesome, thank you Teo! I'll look forward to trying it out later...

As I don't know anything about this, I'd like to try and understand the code, please correct me if I'm wrong:

- wget copies the specified html to a file on the desktop (or wherever) called le_pollution. The information we want to extract is the number contained in the line <div class="indice">52</div>

- the first sed command deletes everything except the line beginning <div class="indice"

- the second sed command deletes the beginning of the line as far as the number 52 and the end of the line, leaving just the number

Or something like that??

Exactly like that.


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!

Online

#1619 2017-06-03 13:55:36

ragamatrix
Member
Registered: 2015-10-04
Posts: 411

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

Hello all,
I've got an error in terminal after launching the wunderground script:

15:52 raphix > conky -c ~/2b_Wunderground_API/.conkyrc1                                                                     < debian:pts/4:~
conky: desktop window (dc) is root window
conky: window type - normal
conky: drawing to created window (0x3400001)
conky: drawing to double buffer
conky: forked to background, pid is 18135
 15:52 raphix >                                                                                                              < debian:pts/4:~
sed: impossible de lire /home/raphix/2_Wunderground_API/Conditions: Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/2_Wunderground_API/Simple_Forecast: Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/2_Wunderground_API/Simple_Forecast: Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/2_Wunderground_API/Simple_Forecast: Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/2_Wunderground_API/Simple_Forecast: Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/2_Wunderground_API/Simple_Forecast: Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/2_Wunderground_API/Simple_Forecast: Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/2_Wunderground_API/Simple_Forecast: Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/2_Wunderground_API/Simple_Forecast: Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/2_Wunderground_API/Simple_Forecast: Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/2_Wunderground_API/Conditions: Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/2_Wunderground_API/Simple_Forecast: Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/2_Wunderground_API/Simple_Forecast: Aucun fichier ou dossier de ce type
...

I'm now on debian stretch:

OS: Debian GNU/Linux 9.0 (stretch) x86_64 
Kernel: 4.9.0-3-amd64 

Thanks for help wink

Offline

#1620 2017-06-03 15:48:51

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,666

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

Working perfect here.

You are using conky 1.10?


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#1621 2017-06-03 16:07:33

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,170

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

Have you made the script executable?


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!

Online

#1622 2017-06-07 09:10:36

ragamatrix
Member
Registered: 2015-10-04
Posts: 411

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

ops Soooory The problem was the name folder... now called 2_Wunderground_API and before: 2b_Wunderground_API
@Sector11: Yes I'm on v.10  cry   lol

Last edited by ragamatrix (2017-06-07 09:10:56)

Offline

#1623 2017-06-07 18:28:06

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,170

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

Glad you've found it mate.


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!

Online

#1624 2017-06-07 19:15:06

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,666

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

ragamatrix wrote:

ops Soooory The problem was the name folder... now called 2_Wunderground_API and before: 2b_Wunderground_API
@Sector11: Yes I'm on v.10  cry   lol

Well, only goes to prove that whether it's conky v1.9 or conky v1.10 the /directory/ must be correct as well.

I hereby award you with the "S11 OOPS! Award!"  devil

With all due respect to you and your fantastic conkys!   wink


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#1625 2017-06-12 05:02:21

chairman67
Member
From: West Coast, Australia
Registered: 2017-06-12
Posts: 18

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

Guys, on the first page there are 5 tar file downloads available on google drive.
Namely: 1)Accuweather,  1)Accuweather RSS,  2)WUnderground API - All users, 3)NWS XML - USA users,  &  4)Moon phases' script.

Where can I find the file downloads for "1b1_accuweather_images"  &  "1b2_accuweather_conkyweather_font"  for  Conky v1.10?

If someone could please point me to those downloads it'd be much appreciated. Many thanks.

Offline

Board footer

Powered by FluxBB