Giter Site home page Giter Site logo

Comments (19)

naofireblade avatar naofireblade commented on May 31, 2024 1

Alright, this is added in v3.0.0-beta.1
You can test the beta with npm install -g homebridge-weather-plus@beta

from homebridge-weather-plus.

werthdavid avatar werthdavid commented on May 31, 2024

Currently not implemented. You could use both plugins at the same time or open a PR πŸ˜„

from homebridge-weather-plus.

dppeak avatar dppeak commented on May 31, 2024

interested in this as well. thanks.

from homebridge-weather-plus.

dVIAN13 avatar dVIAN13 commented on May 31, 2024

+1, Interested in this functionality as well! great work on the project! maybe an additional value for 'currentObservations' that breaks out relative humidity into it's own object..

edit:
you can accomplish this by using plugin: homebridge-weather(if using OpenWeatherMap Service)

from homebridge-weather-plus.

apexad avatar apexad commented on May 31, 2024

Interested in this as well. May attempt to add it when I have some free time, but if anyone else has time, I am totally ok with you beating me to it!

from homebridge-weather-plus.

naofireblade avatar naofireblade commented on May 31, 2024

I'm working on this for the next release.

from homebridge-weather-plus.

naofireblade avatar naofireblade commented on May 31, 2024

Added in v3.0.0 (not yet released).

from homebridge-weather-plus.

apexad avatar apexad commented on May 31, 2024

Seeing an error... using DarkSky:

Oct 31 14:38:33 raspberrypi homebridge[30313]: [10/31/2019, 14:38:33] TypeError: Cannot read property 'toLowerCase' of undefined
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at WeatherPlusPlatform.parseStationConfig (/usr/lib/node_modules/homebridge-weather-plus/index.js:118:43)
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at /usr/lib/node_modules/homebridge-weather-plus/index.js:57:8
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at Array.forEach (<anonymous>:null:null)
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at new WeatherPlusPlatform (/usr/lib/node_modules/homebridge-weather-plus/index.js:54:22)
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:337:32)
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:90:36)
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:59:10)
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at Module._compile (internal/modules/cjs/loader.js:956:30)
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at Module.load (internal/modules/cjs/loader.js:812:32)
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at Function.Module._load (internal/modules/cjs/loader.js:724:14)
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
Oct 31 14:38:33 raspberrypi homebridge[30313]:     at internal/main/run_main_module.js:17:11
Oct 31 14:38:33 raspberrypi homebridge[30313]: [10/31/2019, 14:38:33] Got SIGTERM, shutting down Homebridge...

here is my config (key and gps removed):

  "platforms": [
  {
    "platform": "WeatherPlus",
    "name": "WeatherPlus",
    "service": "darksky",
    "key": "removed",
    "locationGeo": [0.00,0.00],
    "units": "us",
    "displayName": "Outside",
    "compatibility": "mix"
  },
]

from homebridge-weather-plus.

naofireblade avatar naofireblade commented on May 31, 2024

Thanks for the log and config. I fixed it in version 3.0.0-beta.2

You also need to add this to the config to make humidity an extra tile "extraHumidity" = true,

And you can get rid of β€žnameβ€œ in the latest version.

You can find the latest readme with updated examples in the 3.0.0 branch oder here: https://www.npmjs.com/package/homebridge-weather-plus/v/3.0.0-beta.2

from homebridge-weather-plus.

apexad avatar apexad commented on May 31, 2024

Working great!

from homebridge-weather-plus.

kimme1024 avatar kimme1024 commented on May 31, 2024

Hi!

Great to see my request being added! Thanks for that!
However I seem to have an issue adding the extraHumidity part.

When adding "extraHumidity": "true", I'm getting following error when starting homebridge:

[2019-12-8 14:36:15] [WeatherPlus] Exception while parsing weather forecast: TypeError: Cannot read property 'setCharacteristic' of undefined
[2019-12-8 14:36:15] [WeatherPlus] Forecast: undefined
[2019-12-8 14:36:15] [WeatherPlus] Exception while parsing weather forecast: TypeError: Cannot read property 'setCharacteristic' of undefined
[2019-12-8 14:36:15] [WeatherPlus] Forecast: undefined
[2019-12-8 14:36:15] [WeatherPlus] Exception while parsing weather forecast: TypeError: Cannot read property 'setCharacteristic' of undefined
[2019-12-8 14:36:15] [WeatherPlus] Forecast: undefined
[2019-12-8 14:36:15] [WeatherPlus] Exception while parsing weather forecast: TypeError: Cannot read property 'setCharacteristic' of undefined
[2019-12-8 14:36:15] [WeatherPlus] Forecast: undefined
[2019-12-8 14:36:15] [WeatherPlus] Exception while parsing weather forecast: TypeError: Cannot read property 'setCharacteristic' of undefined
[2019-12-8 14:36:15] [WeatherPlus] Forecast: undefined

I checked previous posts and you mention using "extraHumidity" = true, but this triggers a syntax error as it's not a correct layout for the json file.

How should I add the feature correctly?

Thanks in advance!

from homebridge-weather-plus.

tooh avatar tooh commented on May 31, 2024

@kimme1024 I assume you used syntax "extraHumidity": true ?

from homebridge-weather-plus.

kimme1024 avatar kimme1024 commented on May 31, 2024

@kimme1024 I assume you used syntax "extraHumidity": true ?

First I've used:

"extraHumidity": "true",

as this was in line with the other ones

now I just tried

"extraHumidity": true,

Sadly with the same results.

EDIT:

I just checked and temperature and humidity are shown in the app.
However the forecast doesn't work anymore.

from homebridge-weather-plus.

tooh avatar tooh commented on May 31, 2024

plugin version v3.0.4

Added "extraHumidity": true and get extra Humidity but can conform that my 2 day forecast is gone.
[WeatherPlus] Exception while parsing weather forecast: TypeError: Cannot read property 'setCharacteristic' of undefined

from homebridge-weather-plus.

kimme1024 avatar kimme1024 commented on May 31, 2024

plugin version v3.0.4

Added "extraHumidity": true and get extra Humidity but can conform that my 2 day forecast is gone.
[WeatherPlus] Exception while parsing weather forecast: TypeError: Cannot read property 'setCharacteristic' of undefined

same issue here

from homebridge-weather-plus.

naofireblade avatar naofireblade commented on May 31, 2024

@tooh @kimme1024 could u provide your config please?

from homebridge-weather-plus.

kimme1024 avatar kimme1024 commented on May 31, 2024

I just removed the forecast for now.

        {
            "platform": "WeatherPlus",
            "service": "darksky",
            "compatibility": "eve",
            "extraHumidity": true,
            "key": "xxx",
            "locationGeo": [
                50.947881,
                4.60274
            ],
            "interval": "5",
            "displayName": "Temperature",
            "language": "en"
        },

from homebridge-weather-plus.

naofireblade avatar naofireblade commented on May 31, 2024

I just added a forecast to your config and its working for me. Could you check I u still experience problems with the latest version 3.1.1 please?

        {
            "platform": "WeatherPlus",
            "service": "darksky",
            "compatibility": "eve",
            "extraHumidity": true,
            "key": "xxx",
            "locationGeo": [
                50.947881,
                4.60274
            ],
            "interval": "5",
            "displayName": "Temperature",
            "language": "en",
            "forecast": [0,1,2]
        }

from homebridge-weather-plus.

naofireblade avatar naofireblade commented on May 31, 2024

I think the issue no longer exists. I will close this until new information is provided.

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.