-
Notifications
You must be signed in to change notification settings - Fork 63
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
thresholdCloudCover on openweathermap.org #286
Comments
To further troubleshoot, can someone tell me where I can find on my hard drive (or the exact file name) of the current data that homebridge-weather-plus is pulling in from openweathermap.org API? thanks |
The data is not stored to the hard drive. The data is fetched from OpenWeatherMap and is cached in memory. Looking at the URL results, it looks like the legacy 2.5API |
David- Thanks for responding. According to the logs 2.5 API |
I see that you are using |
I am using Homebridge Accessory page (MacOS) to see the values. Both Wind Dir: and Wind Speed show values. HomeKit on iOS shows Air Pressure, Cloud Cover, Rain, Snow, UV Index, Wind Direction and Wind Speed however no values other than triggered for Air Pressure. I just toggled Compatibility from "Apple Home ( plus Eve)" to "Apple Home" but logs still show 2.5 API is being used ("Could not retreive weather report with API 3.0, trying API 2.5 now ." |
David- Cloud cover occupancy just triggered on its own. URL pull now shows "clouds":{"all":40}. Perhaps there is an issue with interpreting 100 as over threshold? |
FYI, I see this too. If I set a value in the config UI, and then check the JSON file, the value isn't there. |
correct- and it will erase the entire thresholdCloudCover line in the JSON file if it was there. |
Found the issue. A typo. The config file tries to load/save 'tresholdCloudCover' but the UI field is called 'thresholdCloudCover'. |
Misspelling called out first #122 |
I tried hard coding in the URL response you got, and it complains about the temperatures being above max.: |
I did try hard coding just |
David- all seems to be functioning again. Homebridge accessory for "Cloud Cover" shows 100 (triggered) which matches current URL API. I am not sure what the issue was but it has been working since my earlier post "Cloud cover occupancy just triggered on its own". After it started working again I updated to API version 3.0 just in case that had something to do with the problem. I will keep a close eye on it for the next few days. Thanks so much for your help. |
David- homebridge-weather-plus continues to function well. By the way I found out that the openweathermap.org API URL response I gave you yesterday was in Kelvin. In order to return Fahrenheit or Celsius the URL needed to contain either |
Glad that it is still working. |
UPDATE: For anyone that stumbles across this thread that is having trouble with the "Cloud Cover" accessory tile in the Homebridge Accessories tab showing either no numerical value or an incorrect numerical value the solution is to click on the edit gear in the upper right corner of the "Cloud Cover" accessory tile and clear the entire Name field (text and any numbers that exist), you should immediately see the field repopulate with "Cloud Cover:" followed by the correct numerical value. Lastly, make sure to click the "Close" button on the bottom of the overlay box. |
Using openweathermap.org for API I have never been able to get a value to stick in the Config field "Threshold for cloud cover sensor". My work around was to edit the "JSON Config" directly and add the following: "thresholdCloudCover: 50". Everything worked fine up until the past week or so, Accessory for Cloud cover constantly shows "Cloud Cover: 0" despite openweathermap.org direct API showing 100. Accessories for temp, air pressure etc.. all show correct values so I know the API is working. There seems to be an issue only with plugin reading thresholdCloudCover.
JSON Config:
"locationCity": "XXXX", "language": "en", "compatibility": "both", "conditionCategory": "simple", "now": true, "extraHumidity": false, "thresholdCloudCover": 50
URL API Results:
{"coord":{"lon":XXXXX,"lat":XXXXX},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"base":"stations","main":{"temp":279.44,"feels_like":278.23,"temp_min":277.6,"temp_max":281.17,"pressure":1010,"humidity":64},"visibility":10000,"wind":{"speed":1.79,"deg":246,"gust":3.58},"clouds":{"all":100},"dt":1707768005,"sys":{"type":2,"id":2005400,"country":"US","sunrise":1707738771,"sunset":1707776643},"timezone":-18000,"id":5122638,"name":"XXXXXXX","cod":200}
The text was updated successfully, but these errors were encountered: