Comments (11)
Looking at https://github.com/naofireblade/homebridge-weather-plus/blob/master/apis/weatherflow.js, I don't understand how it could ever get set to undefined
by the actual Weatherflow plugin though:
- line 311:
that.currentReport.RainBool = true;
- line 378:
that.currentReport.RainBool = message.obs[0][3] > 0 ? true : false;
- line 431:
that.currentReport.RainBool = message.obs[0][12] > 0 ? true : false;
These are the only 3 lines modifying RainBool
. So that suggests the bug lies in the overarching infrastructure? 🤔
from homebridge-weather-plus.
/cc @dacarson
from homebridge-weather-plus.
Looking at the debug information above, all the values are set to their defaults, so it seems that we have not received an initial set of data from the weather station. Which makes sense from your description - the battery is dead.
Looking through the set of initialization data in Weaatherflow.js, I see that RainBool is never set to a default value. A value is only set when a set of data is received. There is an easy fix, to initialize it.
I have the simple fix on my branch, as well as a number of other fixes. Can you remind me how to get the changes onto the main branch?
master...dacarson:homebridge-weather-plus:master
from homebridge-weather-plus.
Related Issues (20)
- Wunderground issue not displaying data in HomeKit/eve HOT 5
- Underground API causing error messages HOT 4
- Error Retrieving Weather report HOT 9
- v3.2.7 / Openweather map produces 401 HOT 10
- Error retrieving weather from OpenWeatherMap after upgrade HOT 3
- Forecast just for 4 days, long Log entry HOT 6
- "Cannot read properties of undefined error HOT 4
- weewx problem HOT 1
- Network event and crash HOT 1
- openweathermap set to metric only HOT 3
- [homebridge-weather-plus] Could not retreive weather report with API 3.0, trying API 2.5 now ... HOT 5
- UV index is always 0 HOT 7
- Sharing Wind Speed Hack HOT 1
- Remove support for DarkSky HOT 3
- Each sensor is named "Now" HOT 9
- Temperature data is merged when you have multiple weather stations HOT 1
- OpenWeatherMap nor forcast devices, data available in Browser HOT 3
- Cannot read properties of undefined (reading 'list') HOT 6
- Openweather map dew point and UV index HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-weather-plus.