You are not logged in.
^ Awesome.
All in one.
If people would know how little brain is ruling the world, they would die of fear.
Offline
#### 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
@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
Offline
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).
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
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.
If people would know how little brain is ruling the world, they would die of fear.
Offline
Gis Weather
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
@loutch
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:
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
#### 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
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
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
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:
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
Tring to download the accuweather script, but I get a access denied, or need a token, and or password is wrong.
Offline
@loutch, brilliant!
-----------------------
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
~$ 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
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
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
#### Marens hourly
Finally it happened that there is no wind here.
Accuweather conky and Gis Weather give the same result:
I went to accuweather.com and saw the weather forecast (wind) for the next hour:
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:
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
Gis Weather
As you know, Gis Weather shows the dew point (water) at the end of the info block.
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.
EDIT
Fixed " -0 " output for Ⓡfeel in gis-weather.py.
The code has changed.
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
Gis Weather
So far everything looks good.
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:
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
^ 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.
My weather conky (local source):
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