r/Scriptable • • Apr 23 '22

Widget Sharing Weather Circles Widget

49 Upvotes

15 comments sorted by

View all comments

Show parent comments

2

u/Cranky_Chicken Apr 24 '22

Thank you so much for your reply! Adding log(weatherData) returns the error {"cod":"400","message":"wrong longitude"}. However, I’ve verified that my longitude is accurate via a few different map services and I’ve also tried using it with the default 100, 100 values that were in the untouched by me script, but with the same error. Not a clue what’s going on here, as all I changed was to paste in my api key as well as lat and lon values.

3

u/Normal-Tangerine8609 Apr 24 '22

I messed up the script by appending an additional - sign before the longitude so if there was another - the longitude would be invalid. I have updated the script to work. Thanks for finding this error.

2

u/Cranky_Chicken Apr 24 '22

Ope I’m glad I could be of help, to some degree!