@sdetweil from my very basic understanding of how it was developed, i think it was stored it as a string so that it could be concatenated? again, this is based on 5 minutes of Google-fu and no understanding of JS here
Read the statement by Michael Teeuw here.
Latest posts made by Jolt02
-
RE: MMM-MyWeather not working with Southern Hemisphere co-ordinates
-
RE: MMM-MyWeather not working with Southern Hemisphere co-ordinates
@harney hello from Perth as well! how are you finding the accuracy of the OpenWeather data? I was using that initially, but found that it was telling me something different to the results from Google.
i used lat long in OpenWeather though and didnt try using the PWS so that might be the difference
-
RE: MMM-MyWeather not working with Southern Hemisphere co-ordinates
@sdetweil 🤷♂️ that’s how they built the module and i’m not familiar enough with JS to go through and fix it. Thanks for trying anyways.
for what it’s worth, I ended up learning to use the console more and figured out something in the moon direction logic was broken because it was looking for there was a condition for lat >= 0. I’ve just gone through and deleted all references to moon phases in the MMM-MyWeather.js file and it’s working fine now.
probably not the most elegant of solutions, but at least it gives me way more information than “loading…”
-
RE: MMM-MyWeather not working with Southern Hemisphere co-ordinates
@sdetweil that’s not the issue though. using lat = “22.27” and “133.77” work even if the rest of numbers are in quotes.
the code above were copied and pasted the config from the module documentation. i’ve just changed the co-ordinates to be southern hemisphere co-ordinates
-
MMM-MyWeather not working with Southern Hemisphere co-ordinates
Hi all!
Need help with an odd one. Is anyone else running into issues using MMM-MyWeather for Southern Hemisphere co-ordinates? The module gets stuck on “loading” if lat has a negative value, but works fine for negative value in longitude (eg New York with lat = 40.69 and lon = -74.25).
The response from the API as provided in the logs is fine in both instances, but it just looks like the module cant parse the json correctly and i can’t figure out why.
Sample of my config below.
modules: [ { module: 'MMM-MyWeather', position: 'top_right', config: { apikey: 'xxxxxxxxxxxxx', lat: "-22.27", // lon: "133.77" , // hourly: '1', fctext: '1', fcdaycount: "5", fcdaystart: "0", hourlyinterval: "3", hourlycount: "2", UseCardinals: 0, layout: "horizontal", debug : 1 } }, ]