Hi there,
December 2022, the weatherbox location is not working: Nothing foud. I guess the location API stopped working? Can you please take a look?
It is currently October 5th, 2024, 3:06 pm
Weatherbox
-
- Posts: 4
- Joined: December 22nd, 2022, 7:33 pm
-
- Rainmeter Sage
- Posts: 5537
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Weatherbox
Working here, both auto and set by user... Have you tried looking up your weathercode and entering it manually?
You do not have the required permissions to view the files attached to this post.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 36
- Joined: February 3rd, 2020, 11:15 pm
- Location: Germany
Re: Weatherbox
Hi jpmaroco,
i don't use the new latitude and longitude codes. My skin still works with weather.codes. I just tested cities in germany, united states and morocco. Very few german cities are not found because of German Umlaute. From there i know the 'Nothing found' message. But otherwise it should work.
What city you have problems with?
i don't use the new latitude and longitude codes. My skin still works with weather.codes. I just tested cities in germany, united states and morocco. Very few german cities are not found because of German Umlaute. From there i know the 'Nothing found' message. But otherwise it should work.
What city you have problems with?
-
- Posts: 4
- Joined: December 22nd, 2022, 7:33 pm
Re: Weatherbox
Thanks QuakeGuy for the prompt reply.
I am at Pero Pinheiro:
Weather.com does find Pero Pinheiro:
I am at Pero Pinheiro:
Weather.com does find Pero Pinheiro:
You do not have the required permissions to view the files attached to this post.
Last edited by jpmaroco on December 23rd, 2022, 11:45 am, edited 1 time in total.
-
- Posts: 4
- Joined: December 22nd, 2022, 7:33 pm
Re: Weatherbox
Indeed, nothing found for the IP retrieved city:eclectic-tech wrote: ↑December 22nd, 2022, 8:08 pm Working here, both auto and set by user...
wb.png
Have you tried looking up your weathercode and entering it manually?
You do not have the required permissions to view the files attached to this post.
-
- Posts: 885
- Joined: January 4th, 2018, 9:52 pm
Re: Weatherbox
Go to Documents \ Rainmeter \ Skin \ WeatherBox \ @Resources open the Variables file and edit:
Location=3c75bbf9fb6c35b5bf9961f35069a2d957b95e8e2d9bd7ab6aee7ab5ac0e6e87
AutoLocation=0
Then refresh the skin
Edit:
After the website change in 2020, Weather.com uses a new format for locations code (see the long code at the end of the URL for your city).
The codes in the old format can still be used, but not all locations are displayed on the website https://weather.codes
-
- Rainmeter Sage
- Posts: 5537
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Weatherbox
Thanks for that info xeniumxenium wrote: ↑December 23rd, 2022, 11:59 am {clip}
After the website change in 2020, Weather.com uses a new format for locations code (see the long code at the end of the URL for your city).
The codes in the old format can still be used, but not all locations are displayed on the website https://weather.codes
I haven't used weather.codes for quite a while and did not realize it had changed.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 36
- Joined: February 3rd, 2020, 11:15 pm
- Location: Germany
Re: Weatherbox
Thx xenium. I didn't try using the long weather code with my skin. Glad it works. I can maybe shorten the displayed code, so the skin is not moved in its position.
Jpmaroco the long code is just at the end of Weather.com URL: https://weather.com/de-DE/wetter/heute/l/3c75bbf9fb6c35b5bf9961f35069a2d957b95e8e2d9bd7ab6aee7ab5ac0e6e87 Very small cities got no own old weather code, like Pero Pinhero. Unfortunately autolocation only works in conjunction with weather.codes. Maybe i will change/update my skin in the future...
Jpmaroco the long code is just at the end of Weather.com URL: https://weather.com/de-DE/wetter/heute/l/3c75bbf9fb6c35b5bf9961f35069a2d957b95e8e2d9bd7ab6aee7ab5ac0e6e87 Very small cities got no own old weather code, like Pero Pinhero. Unfortunately autolocation only works in conjunction with weather.codes. Maybe i will change/update my skin in the future...
-
- Posts: 4
- Joined: December 22nd, 2022, 7:33 pm
Re: Weatherbox
Thanks QuakeGuy for putting the time and effort on this.QuakeGuy wrote: ↑December 23rd, 2022, 2:50 pm Thx xenium. I didn't try using the long weather code with my skin. Glad it works. I can maybe shorten the displayed code, so the skin is not moved in its position.
Jpmaroco the long code is just at the end of Weather.com URL: https://weather.com/de-DE/wetter/heute/l/3c75bbf9fb6c35b5bf9961f35069a2d957b95e8e2d9bd7ab6aee7ab5ac0e6e87 Very small cities got no own old weather code, like Pero Pinhero. Unfortunately autolocation only works in conjunction with weather.codes. Maybe i will change/update my skin in the future...
I travel a bit, so I like the autolocation function on.
If I change the variables.inc file to
Code: Select all
;Location=POXX0320
;AutoLocation=1
Location=3c75bbf9fb6c35b5bf9961f35069a2d957b95e8e2d9bd7ab6aee7ab5ac0e6e87
AutoLocation=0
Season greetings!
-
- Rainmeter Sage
- Posts: 5537
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Weatherbox
When AutoLocation=0, the skin will try to use your IP address to find your city weathercode value...
This will cause the skin to revert back to the old weathercode when updated and not find your city again.
To correct this, you could add a new variable to @Resources\variables.inc, let's call it BypassIP and set it to 1:
@Resources\variables.inc
Then add an additional test to the IfCondition in the [MeasureAutoLocation] section in Weathrebox.ini:
Weatherbox.ini Save the files and refresh/load weatherbox.ini.
To use the skin's IP search, set BypassIP=0.
This will cause the skin to revert back to the old weathercode when updated and not find your city again.
To correct this, you could add a new variable to @Resources\variables.inc, let's call it BypassIP and set it to 1:
@Resources\variables.inc
Code: Select all
[Variables]
; Location=USNY0996
Location=3c75bbf9fb6c35b5bf9961f35069a2d957b95e8e2d9bd7ab6aee7ab5ac0e6e87
AutoLocation=0
BypassIP=1
Weatherbox.ini
Code: Select all
[MeasureAutoLocation]
Measure=Calc
IfCondition=(#AutoLocation#=0)&&(#BypassIP#=1)
IfTrueAction=[!EnableMeasure MeasureWeather]
IfFalseAction=[!SetOption MeterSearchingIcon Text "B"][!SetOption MeterRetrievingWeather FontColor #Blue#][!SetOption MeterRetrievingWeather Text "searching ..."][!EnableMeasure MeasureLocationbyIP]
To use the skin's IP search, set BypassIP=0.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::