You are not logged in.

#3981 2021-02-22 08:25:19

ghorvath
Member
Registered: 2015-10-01
Posts: 161

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

I have the same problem as seatommyboy.

Tried with the following two locations:

#address="http://www.accuweather.com/en/hu/budapest/187423/weather-forecast/187423"
address="http://www.accuweather.com/en/hu/debrecen/188406/weather-forecast/188406"

Offline

#3982 2021-02-22 09:15:49

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

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

The same for me (no images):

address="https://www.accuweather.com/en/pl/zyrardow/264812/weather-forecast/264812"
$ ./accuweather -f2015
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
rm: cannot remove '/home/morfik/.conky/Accuweather_conky_script/forecast_2015/forecast_*.png': No such file or directory

Offline

#3983 2021-02-22 12:52:48

seatommyboy
Member
Registered: 2016-09-12
Posts: 63

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

TeoBigusGeekus wrote:

All's well here with Accuweather.
Could you please give me your location seatommyboy?

address="https://www.accuweather.com/en/us/hutto-tx/78634/weather-forecast/2110192"

However, I when I checked my location via accuweather in my web browser and searching with my zip code for loacation, the url it returned was

https://www.accuweather.com/en/us/hutto/78634/weather-forecast/2110192

So I pasted that in the script and now all is fine. If memory serves me correctly, periodically, I have had to change the location before, hutto vs hutto-tx. Hope this helps others, and thanks for all the hard work Teo!

Last edited by seatommyboy (2021-02-22 13:02:11)

Offline

#3984 2021-02-22 15:38:51

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

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

^Please also check if you are using the script from 2021-2-11.   wink

Offline

#3985 2021-02-22 20:31:28

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

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


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

#3986 2021-02-22 20:33:36

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
If you're having no/weird output from the Accuweather script, double check your weather address - you know, the one you give to the address variable at the beginning of the script.


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

#3987 2021-02-22 22:09:41

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

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

I see... big_smile Now it works.

Last edited by morfik (2021-02-22 22:09:55)

Offline

#3988 2021-02-23 23:00:20

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

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

WARNING:  CONKY V1.9

Been a while ... this virus is getting into the weather sites, that's why Teo has been having to fix things so often.

So not having weather for a long time I decided on something simple: Accu-RSS weather and modified this script that I did a few weeks ago.

The first three were done after created - changing wallpaper, but not updating.
2021-02-23-185753-S11.jpg
The one on the right has the "call line" added again and restarted to see what is current.

# pkill -xf "conky -c /home/sector11/.conkyrc" &

# Begin Window Settings
own_window yes
own_window_type normal
own_window_transparent no # for ARGB
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title Default Conky
own_window_argb_visual yes
own_window_argb_value 100

minimum_size 195 0
maximum_width 195

gap_x 10  ## ← →
gap_y 15  ## ↑ ↓

alignment tl

# End Window Settings
# Font Settings

use_xft yes
xftfont Fira Mono:medium:size=11

xftalpha 1
override_utf8_locale yes
uppercase no

# End Font Settings
# Colour Settings

draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #Gainsboro
color0 C0C0C0 #Silver
color1 778899 #LightSlateGray
color2 FAEBD7 #AntiqueWhite
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed


# End Colour Settings
# Borders Section

draw_borders no
stippled_borders 5
border_inner_margin 6
border_outer_margin 0
border_width 0
draw_graph_borders yes

# End Borders Section
# Miscellaneous Section

background yes
use_spacer none
no_buffers yes
short_units yes
imlib_cache_size 0
double_buffer yes

# End Miscellaneous Section

update_interval 1

#${alignc}The Wewather${execi 1800 bash $HOME/accuweather_rss/acc_RSS}

TEXT
${alignc}The Weather${execi 1800 bash $HOME/accuweather_rss/acc_RSS}
${goto 84}${font conkyweather:size=30}${color8}${execpi 600  sed -n '2p' $HOME/accuweather_rss/weather}${color}${font}
${goto 10}${execpi 600 sed -n '1p' $HOME/accuweather_rss/weather|cut -d ' ' -f2-|fold -s -w21}

${alignc}${swapbar 0,15} FORECAST ${swapbar 0,15}
${alignc}${swapbar 0,15} Today ${swapbar 0,15}
${alignc}${color5}${execi 3600 echo `date --date="0 day" | awk '{print $1" "$3" "$2" "$6}'`}${color}
${alignc}H: ${execpi 600 sed -n '4p' $HOME/accuweather_rss/weather|cut -d ' ' -f 2}     \
L: ${execpi 600 sed -n '4p' $HOME/accuweather_rss/weather|cut -d ' ' -f 5}
${goto 84}${font conkyweather:size=30}${color8}${execpi 600  sed -n '5p' $HOME/accuweather_rss/weather}${color}${font}
${execpi 600 sed -n '4p' $HOME/accuweather_rss/weather|cut -d ' ' -f7-|fold -s -w21}
${alignc}${swapbar 0,120}
${alignc}${color5}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2" "$6}'`}${color}
${alignc}H: ${execpi 600 sed -n '7p' $HOME/accuweather_rss/weather|cut -d ' ' -f 2}     \
L; ${execpi 600 sed -n '7p' $HOME/accuweather_rss/weather|cut -d ' ' -f 5}
${goto 84}${color5}${font conkyweather:size=30}${execpi 600  sed -n '8p' $HOME/accuweather_rss/weather}${color}${font}${color}
${execpi 600 sed -n '7p' $HOME/accuweather_rss/weather|cut -d ' ' -f7-|fold -s -w21}
${alignc}${swapbar 0,120}
${font fira mono:medium:size=14}${alignc}${color5}Moon Phases${color}${font}
${font Fira Mono:medium:size=11}${execpi 86400 remind -q -r ~/.reminders_moon_v | sed -e "/.*(today):/d" -e '/^$/d'}${font}
${alignc}${swapbar 0,120}
${alignc}${color5}Masks: 2020·03·20${color}
 ${pre_exec dateutils.ddiff 2020-03-20 'tomo' -f '%yy·%mm·%dd'}\
${alignr 5}${pre_exec dateutils.ddiff 2020-03-20 'tomo' -f '%d'}
${alignc}${swapbar 0,120}
${alignc}${color5}Go4 Pixel Party${color}
${alignc}${color5}2021·03·31${color}
 ${pre_exec dateutils.ddiff 'tomo' 2021-03-31 -f ' %yy·%mm·%dd'}\
${alignr 5}${pre_exec dateutils.ddiff 'tomo' 2021-03-31 -f ' %d'}${color}
${alignc}${color5}2nd Pixel Party${color}
${alignc}${color5}2022·03·31${color}
 ${pre_exec dateutils.ddiff 'tomo' 2022-03-31 -f ' %yy·%mm·%dd'}\
${alignr 5}${pre_exec dateutils.ddiff 'tomo' 2022-03-31 -f ' %d'}${color}
${alignc}${swapbar 0,120}

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3989 2021-02-24 03:57:18

KairiTech
Member
Registered: 2021-02-08
Posts: 7

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

ohnonot wrote:
KairiTech wrote:

How do you use sed to replace a single line with multiple lines?  Is that even possible with sed?

Yes, totally.
The first result from this search:

sed -i.bak $'s/You are good/You are bad\\\nYou are the worst/g' /output.txt

Thanks.  That is exactly what I needed.  I also discovered that I can change the delimiter to something eminently more readable:

sed -i.bak $'s|You are good|You are bad\\\nYou are the worst|g' /output.txt

Offline

#3990 2021-02-24 11:15:34

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!


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

#3991 2021-02-24 11:53:41

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

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

Thank you Teo ...
- I suppose in time I'll test-em all again  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3992 2021-08-24 21:05:14

saltasatelites
Member
Registered: 2016-09-10
Posts: 19

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

Hi.
I come from time to time to this forum to be aware of news, but I see there are no comments since February, and it has always been a very active forum. Does it mean that the project has come to its end and is abandoned?
If so, thank you for all these years of work you have dedicated to us.

Regards

Offline

#3993 2021-08-25 07:52:47

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

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

^^The "project" has not been abandoned, as far as I know.
The project is working fine, so there may not be any new posts.  big_smile

You are welcome to post your configuration based on @Teo's weather -and moonscripts here. I am very interested in that.   wink

Offline

#3994 2021-08-25 17:06:27

saltasatelites
Member
Registered: 2016-09-10
Posts: 19

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

Ok, thank you for your answer.
I asked because reading some post like the # 3906, it was not clear for me if something was happening.

Offline

#3995 2021-08-25 17:47:17

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

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

saltasatelites wrote:

Ok, thank you for your answer.
I asked because reading some post like the # 3906, it was not clear for me if something was happening.

This only affected the unreliable Weather.com, which excluded Teo from his excellent work.  big_smile

Offline

#3996 2021-08-25 19:13: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)

To add to unklar's perfect answer
"No news, good news"
ie, there's no reason to post anything as the scripts works fine, afaik.
Feel free to drop by and say hello from time to time though... 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

#3997 2021-08-26 13:33:16

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

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

TeoBigusGeekus wrote:

To add to unklar's perfect answer
Feel free to drop by and say hello from time to time though... wink

Hello - Hello - Hello!
2021-08-26_102158_S11.th.jpg
This script: Accuweather RSS conky script - Git Repository → along with Remind's moon data "Just works!"


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3998 2021-08-26 20:03:38

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

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

Thanks for the feedback S11, it's good to know that it still works.
...although all this silence from Accuweather's headquarters makes me a bit suspicious...
...But who cares? I'll just enjoy my conky vacations while they last!


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

#3999 2021-08-26 21:51:56

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

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

Yea, me too.  RL getting in the way of many things.

I use to have 3 or 4 distos installed - just 1

things have thinned out


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#4000 2021-08-26 22:02:21

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

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

Well, after all the kafuffle with the problems I decided of the RSS weather because you once said it was what you use and the most stable.  And it certainly has been stable.

Besides ...
RL is getting in the way of many things.

I use to have 3 or 4 distos installed - now: just 1

Things have thinned out, time more valuable


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB