You are not logged in.

#4541 2024-07-31 12:05:01

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

^ Awesome.
All in one.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4542 2024-08-01 14:40:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

#### Marens hourly

I added Wind  at @loutch's request.
https://forums.bunsenlabs.org/viewtopic … 10#p136510

Those interested can find the updated script here:
https://forums.bunsenlabs.org/viewtopic … 30#p128130


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4543 2024-08-04 02:26:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

@loutch


Find the #Wind  section and add #Wind images  below:

#Wind
        cat $HOME/Accuweather_conky_script/hourly | grep 'Wind<' | sed 's/^[ \t]*//' | sed 's/<p>Wind<span class="value">//g' | sed 's/<\/span><\/p>//g' > $HOME/Accuweather_conky_script/marens_hourly/wind        
        
#Wind images
        sed -i 's/^0/CLM 0/g' $HOME/Accuweather_conky_script/marens_hourly/wind

                       j=1
			for (( i=1; i<=10; i+=1 ))
			  do
		    	if [[ $hourly2015 == 1 ]]; then
					cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n ${i}p $HOME/Accuweather_conky_script/marens_hourly/wind | awk '{print $1}').png $HOME/Accuweather_conky_script/marens_hourly/hourly_images/wind_$j.png
				fi
				if [[ $hourly2016 == 1 ]]; then
					cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n ${i}p $HOME/Accuweather_conky_script/marens_hourly/wind | awk '{print $1}').png $HOME/Accuweather_conky_script/marens_hourly/hourly_images/wind_$j.png
				fi
		    	((j++))
			  done

Restart conky and check the folder ~/Accuweather_conky_script/marens_hourly/hourly_images.
Are there icons (images) wind_1.png, wind_2.png, wind_3.png, ... wind_10.png?

I still don't know what the output will look like when there is no wind (CLM), but I assumed it would be 0 km/h.

You know I don't use the hourly forecast, but I expect you to confirm that the script works correctly when there is no wind for your location.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4544 2024-08-04 04:40:11

loutch
Member
Registered: 2015-12-12
Posts: 848

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

Hello

@ marens

another excellent job,
works perfectly as usual
my marens_hourly_images

sTFiXIcq_t.png

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#4545 2024-08-04 12:44:30

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

loutch wrote:

Hello

@ marens

another excellent job,
works perfectly as usual
my marens_hourly_images

@+

Nice, that's it.

Now we are waiting for no wind (Calm).

marens wrote:

I still don't know what the output will look like when there is no wind (CLM), but I assumed it would be 0 km/h.

You know I don't use the hourly forecast, but I expect you to confirm that the script works correctly when there is no wind for your location..

If (when) CLM.png  appears, we can say that the job was completed successfully.
It takes time to test, but I hope we won't have to wait long.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4546 2024-08-21 14:44:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

Gis Weather

The author fixed the application on May 31.
https://forums.bunsenlabs.org/viewtopic … 47#p135047

Now it doesn't show the forecast for the next few days at all.
Again there were changes in the source (gismeteo).
Of course, at this point I don't know if the changes are only temporary.

Those using my settings (and others) can fix now:

Open ~/Downloads/gis-weather-master/services/gismeteo.py  file.

This part now looks like this:

    # day of week, date
    day = re.findall('<day.*? date="(.*?)"', source)
    day.pop(0)
    for i in range(len(day)):
        dt1 = datetime.strptime(day[i], '%Y-%m-%d')
        day[i] = dt1.strftime('%a')
    date = re.findall('<day.*? date=".*?-(.*?)"', source)
    date.pop(0)
    for i in range(len(date)):
        s = date[i].split('-')
        date[i] = s[1]+'.'+s[0]

Done.

Restart Gis Weather.

gis-weather.png


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4547 2024-08-22 12:38:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

Gis Weather

marens wrote:

Of course, at this point I don't know if the changes are only temporary.

Yes.
Everything is fine today.
Looks like it was a temporary gismeteo  glitch.

You can use the old code again if you want:
https://forums.bunsenlabs.org/viewtopic … 47#p135047

The most important thing is that now both codes work, and you decide which one to use.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4548 2024-08-28 01:38:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

@loutch

marens wrote:

I still don't know what the output will look like when there is no wind (CLM), but I assumed it would be 0 km/h.

It's always windy here, but tonight I was able to find where there is currently no wind in the acuuweather hourly forecast.

The assumption was correct:

wind.png

Now I'm sure CLM.png  will appear in the hourly forecast as wind_1.png or wind_2.png or ... wind_10.png  and the script will work as expected.

P.S.
I hope the headache has stopped and you are feeling better.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4549 2024-08-28 01:46:19

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

#### Marens hourly

Added images of the wind rose:
https://forums.bunsenlabs.org/viewtopic … 41#p136641

The script has been updated:
https://forums.bunsenlabs.org/viewtopic … 30#p128130

Last edited by marens (2024-08-28 01:48:19)


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4550 2024-09-09 01:02:05

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

Gis Weather

Occasional gismeteo  glitches still exist.

I don't know what the reason is, but today I took a closer look at the source  and found out what's going on.

Each time the script is updated, the data for the TODAY section is retrieved for 02:00, 05:00, 08:00, 11:00, 14:00, 17:00, 20:00, 23:00  hour.
The author of the script uses 02:00 as Night,  08:00 as Morning,  14:00 as Day  and 20:00 as Evening.

But sometimes after updating the data for 05:00  and 08:00  hours is missing.
The result is an incorrect TODAY section and the entire DAILY forecast is missing.
Interestingly, if you try again in a few minutes, everything is fine, but sometimes it doesn't work for hours.

I didn't even try to 'fix' the script because I think it happens temporarily.
I can only give you advice on how to restore the DAILY forecast.

Open the file ~/Downloads/gis-weather-master/services/gismeteo.py:

Find:

    if show_block_today:
        #### weather today ####
        w_today = w_today_tomorrow[0]

Replace (temporarily)  with:

    if show_block_today:
        #### weather today ####
        w_today = w_today_tomorrow[1]

Restart Gis Weather.

Now the TODAY section will be the same as TOMORROW (temporarily), but the DAILY forecast works as expected.
Of course, we will easily return everything when the gismeteo  service is working properly again.

EDIT

Before:                                     After:
before.png  after.png

Last edited by marens (2024-09-09 14:48:03)


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4551 2024-09-20 00:16:53

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

I very rarely use the acc_RSS  and moongiant  scripts.

It has been five months since the last fix of the acc_RSS  script:
https://forums.bunsenlabs.org/viewtopic … 74#p133874

And just over four months since the last fix of the moongiant script:
https://forums.bunsenlabs.org/viewtopic … 55#p134355

I tested them tonight and everything seems to be fine:

acc-RSS-moongiant-conky.png

Another good news is that Gis Weather  has been working perfectly (again) and without glitches for the last week.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4552 2024-09-28 04:45:46

keithsplace
New Member
Registered: 2024-09-24
Posts: 1

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

Tring to download the accuweather script, but I get a access denied, or need a token, and or password is wrong.

Offline

#4553 2024-09-28 06:45:27

loutch
Member
Registered: 2015-12-12
Posts: 848

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

Hello

My lastest with accuweather & Moon_giant

8PuAxewp_t.png


@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#4554 2024-09-28 07:53:07

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

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

@loutch, brilliant!  wink

-----------------------

keithsplace wrote:

Tring to download the accuweather script, but I get a access denied, or need a token, and or password is wrong.

Where are you trying to download from?

Both methods work here.   https://forums.bunsenlabs.org/viewtopic.php?id=189
Bildschirmfoto-2024-09-28-09-40-51.png

~$ git clone https://gitlab.com/teobigusgeekus/Accuweather_conky_script.git
Klone nach 'Accuweather_conky_script'...
remote: Enumerating objects: 251, done.
remote: Counting objects: 100% (57/57), done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 251 (delta 34), reused 45 (delta 28), pack-reused 194 (from 1)
Empfange Objekte: 100% (251/251), 7.74 MiB | 1.01 MiB/s, fertig.
Löse Unterschiede auf: 100% (80/80), fertig.

Offline

#4555 2024-09-29 05:16:49

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

loutch wrote:

Hello

My lastest with accuweather & Moon_giant

https://thumbs2.imgbox.com/3f/3f/8PuAxewp_t.png


@+


Very nice as always, @loutch.

I especially like it when someone uses the moongiant script.
With the latest illumination angle plugin it looks great.
Many would be surprised to see how much the moon changes during the day.
It's always interesting to watch in real time.

Last edited by marens (2024-09-29 05:23:20)


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4556 2024-10-26 00:10:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

The Moon Duration script has been updated:
https://forums.bunsenlabs.org/viewtopic … 83#p132483

Don't worry, it still worked correctly inside accuweather, but a syntax error (terminal) occurred when the moon was N/A.
The bug was found and fixed.

If you are using Moon Duration,  you should update the accuweather script.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4557 2024-10-29 16:54:50

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

#### Marens hourly

Finally it happened that there is no wind here.
Accuweather conky and Gis Weather give the same result:

accu-weather.png  gis-weather.png

I went to accuweather.com  and saw the weather forecast (wind) for the next hour:

accuweather.png

Then I ran the script once in the terminal:

$ bash $HOME/Accuweather_conky_script/accuweather -h2015

I don't have any conky with an hourly  forecast, but I got a confirmation in the file manager:

hourly-images.png

The CLM wind rose appeared as wind_1.png.

Last edited by marens (2024-10-29 23:35:10)


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4558 2025-01-10 15:56:50

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

Gis Weather

As you know, Gis Weather shows the dew point  (water) at the end of the info block.

t-water.png

I thought it would be better if I replaced it with Ⓡfeel  temperature.
I looked at the source  some more and I think (not sure yet) that I found the right value.

If anyone wants, they can test with me.
It's very easy.

Open ~/Downloads/gis-weather-master/services/gismeteo.py  file and find:

    # water temperature now
    t_water_now = re.findall('<fact.*? water_t="(.*?)"', source)
    t_water_now = t_water_now[0]+';'+str(int(C_to_F(t_water_now[0])))+';'+C_to_K(t_water_now[0])

Replace with:

    # water temperature now
    #t_water_now = re.findall('<fact.*? water_t="(.*?)"', source)
    #t_water_now = t_water_now[0]+';'+str(int(C_to_F(t_water_now[0])))+';'+C_to_K(t_water_now[0])
    
    # temperature Ⓡfeel now - Marens Settings
    t_water_now = re.findall('<fact.*? hi="(.*?)"', source)
    t_water_now = t_water_now[0]+';'+str(int(C_to_F(t_water_now[0])))+';'+C_to_K(t_water_now[0])

Then open the ~/Downloads/gis-weather-master/gis-weather.py  file and find:

                    self.draw_text(cr, t_water_now.split(';')[t_scale]+"<span size='x-small'> %s %s</span>"%(t_scale_dict[t_scale], _("water")), x0+20, y0+line_height*3-1, font+' Normal', 12, 100,Pango.Alignment.LEFT)

Replace with:

                    #self.draw_text(cr, t_water_now.split(';')[t_scale]+"<span size='x-small'> %s %s</span>"%(t_scale_dict[t_scale], _("water")), x0+20, y0+line_height*3-1, font+' Normal', 12, 100,Pango.Alignment.LEFT)
                    self.draw_text(cr, t_water_now.split(';')[t_scale].replace('-0', '0')+"<span size='x-small'> %s %s</span>"%(t_scale_dict[t_scale], _("Ⓡfeel")), x0+20, y0+line_height*3-1, font+' Normal', 12, 100,Pango.Alignment.LEFT)

Done.
Restart Gis Weather.

real-feel.png


EDIT

Fixed  " -0 "  output for Ⓡfeel in gis-weather.py.
The code has changed.

Before:                            After:
rfeel-before.png      rfeel.png

Last edited by marens (2025-01-11 17:40:40)


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4559 2025-01-14 00:25:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

Gis Weather

So far everything looks good.

marens wrote:

As you know, Gis Weather shows the dew point  (water) at the end of the info block.

This was wrong.
I think it's not about the dew point, but the water temperature (river, lake, sea...) in current conditions.

So I decided to leave it and add a temperature Ⓡfeel below the current one (inside Block Now).
I changed the code and got this:

rfeel.png

Testing continues.
Several times a day I compare the results with  accuweather  and  my conky  (local source):
https://forums.bunsenlabs.org/viewtopic … 30#p134630

P.S.
If anyone is interested, I will post the new code.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4560 2025-01-20 17:22:39

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

^ I think the testing is over.

Gis Weather  data was updated on server 2 hours ago.
Accuweather  and  my weather conky  (local source) provide fresher data.

The latter is the most accurate because the automated weather station is located in a nearby city park a few hundred meters from me.

Gis Weather:
gis-weather.png

Accuweather conky:
accuweather.png

My weather conky (local source):
local-source.png

Last edited by marens (2025-01-20 17:56:01)


If people would know how little brain is ruling the world, they would die of fear.

Offline

Board footer

Powered by FluxBB