-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regex for Nominatim API call doesn't account for spaces, causing incorrect weather data #15
Comments
I tested it with regex101.com and came up with this
Now I'm facing a problem with [mCurrentParent] which also reports a Regex error but I cannot replicate on the website |
Can confirm slaugaus' fix works, great work. To implement the fix:
|
Hello, I've also come across this issue yesterday and was trying for a fix, to no avail. I'm now trying the above fix by @slaugaus but am getting constant errors which read I'm not well-versed in Regex, or Json parsing, so I'm not sure if I can come up with a solution myself. Can anybody be of any help? Edit: Some things I've realized:
|
It looks like it broke again. Constantly spitting out these errors:
|
It broke again, but it seems like an API key change this time around. I don't want to directly share it for any possible legal troubles, but you can find the new key on the Rainmeter forums. Just search for weather.com. Edit: Oh, also, regarding my above issue, I simply fixed it by hardcoding the mLocationLon and mLocationLat values as strings. Simply do this: [mLocationLat] |
ModularClocks/@Resources/Includes/GlobalWeather.inc
Line 22 in f61896d
The offending spaces are in the value of
geometry
, as seen near the end of this response for Hell, Michigan. Removing them makes the regex work as intended.The text was updated successfully, but these errors were encountered: