Giter Club home page Giter Club logo

Comments (16)

CGCode1000 avatar CGCode1000 commented on July 17, 2024 1

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?

from homebridge-weather-plus.

CGCode1000 avatar CGCode1000 commented on July 17, 2024

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

from homebridge-weather-plus.

dacarson avatar dacarson commented on July 17, 2024

The data is not stored to the hard drive. The data is fetched from OpenWeatherMap and is cached in memory.
Do you know if you are using the legacy 2.5 API, or the new OneCall 3.0 API?

Looking at the URL results, it looks like the legacy 2.5API
"clouds":{"all":100},

from homebridge-weather-plus.

CGCode1000 avatar CGCode1000 commented on July 17, 2024

David- Thanks for responding. According to the logs 2.5 API

from homebridge-weather-plus.

dacarson avatar dacarson commented on July 17, 2024

I see that you are using compatibility: both. Can you tell me which app you are using to view the values? Apple's Home app, Eve app, Home+ or something else.
Is Wind Dir: and Wind Speed: also updating? I ask as there is an issue #247 where the tiles were not updating in the compatibility mode.

from homebridge-weather-plus.

CGCode1000 avatar CGCode1000 commented on July 17, 2024

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

from homebridge-weather-plus.

dacarson avatar dacarson commented on July 17, 2024

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

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.

from homebridge-weather-plus.

CGCode1000 avatar CGCode1000 commented on July 17, 2024

correct- and it will erase the entire thresholdCloudCover line in the JSON file if it was there.

from homebridge-weather-plus.

dacarson avatar dacarson commented on July 17, 2024

Found the issue. A typo. The config file tries to load/save 'tresholdCloudCover' but the UI field is called 'thresholdCloudCover'.

from homebridge-weather-plus.

dacarson avatar dacarson commented on July 17, 2024

Misspelling called out first #122

from homebridge-weather-plus.

dacarson avatar dacarson commented on July 17, 2024

I tried hard coding in the URL response you got, and it complains about the temperatures being above max.:
{"temp":279.44,"feels_like":278.23,"temp_min":277.6,"temp_max":281.17
And HomeKit is reporting errors. I wonder if there was an error like this and it stopped processing the data before it hit Cloud Cover.

from homebridge-weather-plus.

dacarson avatar dacarson commented on July 17, 2024

I did try hard coding just "clouds":{"all":100} and it worked fine, and I also tried the entire URL response you specified above and it also work (with the exception of the temperatures). In both cases I get Cloud Cover 100%.
I'm not sure why it isn't working.

from homebridge-weather-plus.

CGCode1000 avatar CGCode1000 commented on July 17, 2024

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.

from homebridge-weather-plus.

CGCode1000 avatar CGCode1000 commented on July 17, 2024

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 &units=imperial or &units=metric. Thanks for all of your efforts- the plugin has become an integral part of my automations.

from homebridge-weather-plus.

dacarson avatar dacarson commented on July 17, 2024

Glad that it is still working.
The issue with the Threshold not sticking in the configuration UI, I will track with #122
Maybe we can close this issue then :-)

from homebridge-weather-plus.

CGCode1000 avatar CGCode1000 commented on July 17, 2024

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.

from homebridge-weather-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.