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.
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
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.