Giter VIP home page Giter VIP logo

homebridge-weather-plus's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-weather-plus's Issues

Support imperial units for Weather Station Data

Hello! I've got a strange issue on this one!

When using your plugin my Weather Station Data in the Eve App for the Now, Today, 123Day Buttons is being displayed in half Imperial and half metric.

The Temperature seems to be correct, Air Pressure and Humidity are correct too.

But Rain Last Hour, Rain Today, Solar Radiation, Visibility, Wind Speed, and Wind Speed Max are showing in Metric versus Imperial.

Thanks for taking a look. I looked in Eve and did not see anywhere that I could change a setting, but maybe I missed it.

And thanks for your hard work on this plugin for homebridge!

-Shawn

Exposing more than temperature to Homekit

Even using Elgato's Eve, I am only seeing the daily high temperatures. I would like to see current conditions as well (planning to turn on my roof cables if it is snowing). I'm guessing this involves updating the config.json file, but I'm not sure if I'm to add accessories, or if more lines are needed in the platform section. Please help!

Eve weather data gaps

Sometimes there are gaps in the history of the temperature, airpressure and humidity. Is there something I can do about it? Is the data stored on the iOS device or inside of homebridge?

Change in Wunderground parameters?

I'm getting a new error with this module. Is it possible that Wunderground changed how they arrange their parameters?:

/usr/lib/node_modules/homebridge-weather-station-extended/index.js:323
service.setCharacteristic(CustomCharacteristic.ForecastDay, forecast[day]['date']['weekday']);
^

TypeError: Cannot read property 'date' of undefined
at Wunderground. (/usr/lib/node_modules/homebridge-weather-station-extended/index.js:323:80)
at Request._callback (/usr/lib/node_modules/homebridge-weather-station-extended/node_modules/wundergroundnode/lib/wundergroundnode.js:148:22)
at Request.self.callback (/usr/lib/node_modules/homebridge-weather-station-extended/node_modules/request/request.js:186:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (/usr/lib/node_modules/homebridge-weather-station-extended/node_modules/request/request.js:1163:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (/usr/lib/node_modules/homebridge-weather-station-extended/node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1056:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

Update to 2.0.4 interrupts

Trying to update weather-plus but the update interrupts on step

extract:node-forge: sill extract node-forge@^0.7.1 extra

The npm process won't proceed. Latest Homebridge, Node v8.9.4. Any ideas?

I have an issue with this plugin

[2018-4-19 17:53:23] [WeatherStation] Found no current observations
[2018-4-19 17:53:23] [WeatherStation] { response: 
   { version: '0.1',
     termsofService: 'http://www.wunderground.com/weather/api/d/terms.html',
     features: { conditions: 1, forecast: 1 },
     results: [ [Object], [Object], [Object] ] } }
[2018-4-19 17:53:23] [WeatherStation] Found no forecast

I use "Valencia, Spain" as location

SOLVED: "location": "pws:IVALENCI181"

Localization options

Maybe it is possible add some localization options for the current observations "now" and the forecast "Today", "In 1 Day", "In 2 Days" and "In 3 Days"?

History

Why history don’t work in app eve?

Ability to show humidity as a tile in Home/Eve

I just switched from homebridge-openweathermap to this plugin as this one has a lot more data available and is also greatly integrated with the Eve app!
Great work on that!

The 1 thing that I miss from openweathermap is the ability to show the humidity on a tile in favorites.

Is there a way to do this myself or does it have to be implemented in the code?

I hope this will become available in future versions!

Keep up the great work!

Issue with openweathermap-apis

Hi,
I found an issue with the openweathermap api module that you are using. Actually, if network is not up when weather update is requested, an unhandled exception is thrown by the http module and homebridge crashes. The issue has been reported to the developer of openweathermap-apis, but apparently it is not developed anymore
CICCIOSGAMINO/openweather-apis#23 Did you try other openweathermap API? I tried to catch the exception in homebridge-Weather-plus but since it is an async exception it seems to be possible to catch it only directly in the calling function.

No graph data

I have updated the plugin and uninstalled the eve app and reinstalled it to see the graphs. But, unfortunately, no graph data is shown. Is there another way to enable this?

Weather Underground Plugin Error

Hi,

iam getting the following error since updating the homebridhe weather plug plugin to version 2.7.0:

/homebridge/node_modules/homebridge-weather-plus/api/weatherunderground.js:78
report.AirPressure = parseInt(values.pressure_mb);
^
TypeError: Cannot read property 'pressure_mb' of undefined
at WundergroundAPI.parseReport (/homebridge/node_modules/homebridge-weather-plus/api/weatherunderground.js:78:46)
at WundergroundAPI. (/homebridge/node_modules/homebridge-weather-plus/api/weatherunderground.js:58:39)
at Request._callback (/homebridge/node_modules/wundergroundnode/lib/wundergroundnode.js:137:26)
at Request.self.callback (/homebridge/node_modules/request/request.js:185:22)
at Request.emit (events.js:189:13)
at Request. (/homebridge/node_modules/request/request.js:1161:10)
at Request.emit (events.js:189:13)
at IncomingMessage. (/homebridge/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:277:13)
at IncomingMessage.emit (events.js:194:15)

not showing in eve app

Hi,

i think i'm just missing something, but the Plugin is not showing up in Eve or HomeKit.

this is my configuration:

{ "platform": "WeatherPlus", "name": "WeatherPlus", "service": "darksky", "key": "XXXXXXXXXXXXX", "locationGeo": [ xxxxxxxxx, xxxxxxxxx ], "language": "en", "units": "si", "forecast": [ 1, 2, 3, 4, 5, 6, 7 ] }

do i have to add this as accessory?

Weathercloud as a Service

hey there

with the demise of weather underground allowing pws to be easily used via there api, wondering if Weathercloud will be able to be added as a service for this Homebridge plugin, have been using this service for over a year now with great reliability.

https://weathercloud.net

not sure how involved tis will be to implement into this plugin, but appreciate the work you do for us to be able to utilise this plugin

Cheers

Temperature Forecast

Is it possible to add minimum temperature forecast? The plugin only shows maximum temperature forecast. I want to use the plugin for indicating frost forecast.

DarkSky Interval Question

Since the DarkSky API "allows up to 1,000 free calls per day" can the interval be set to 1.5 or does it need to be a single digit?

Thanks

new plug-in inspired by this one

I created a new plug-in to be a single-purpose homebridge plug-in for turning on and off snow-melting mats. It was inspired by this project but I removed most of the features to make it a simple switch that looks for impending snow.

I gave credit to this plug-in and wanted to give you a shout-out for the excellent work. My original thought was to fork and extend this plug-in but then thought the audience for it would be fairly niche and they would not necessarily need the full set of features. Also, I wanted it to be a simple switch that could trigger the single action rather than needing to add additional virtual switches to trigger checking the values of the weather.

The new plug-in is called homebridge-snowswitch which is a simple switch that goes on and off depending on the snow forecast and current conditions.

Thanks for your great plug-in and inspiration.

Debug module security issue

Hi,
is there any particular reason to stay wtth debug 2.2.0? There a security issue with that version, fixed in 2.6.9

New Yahoo API

Hi,
are you aware of this advise from Yahoo?

“Important EOL Notice: As of Thursday, Jan. 3, 2019, the weather.yahooapis.com and query.yahooapis.com for Yahoo Weather API will be retired.
To continue using our free Yahoo Weather APIs, use https://weather-ydn-yql.media.yahoo.com/forecastrss. Contact [email protected] for credentials to onboard to this free Yahoo Weather API service.”

First Wunderground, now Yahoo, It seems more and more difficult to get access to free weather APIs...

problem with fake-gato data

here is the log - looks like it finds undefined somwhere :( - but still saves some data in json:

[1/15/2019, 1:55:06 PM] [WeatherPlus] **Fakegato-timer: executeCallbacks**
[1/15/2019, 1:55:06 PM] [WeatherPlus] First entry undefined: 0
[1/15/2019, 1:55:06 PM] [WeatherPlus] Last entry undefined: 18
[1/15/2019, 1:55:06 PM] [WeatherPlus] Used memory undefined: 18
[1/15/2019, 1:55:06 PM] [WeatherPlus] 116 undefined: b734000000000000f3daed2103 0102 0202 03021900c00f00000000000000000101
[1/15/2019, 1:55:06 PM] [WeatherPlus] ** Fakegato-storage write FS file: /root/.homebridge/Homebridge_undefined_persist.json "firstEntry":0,"lastEntry":24,"usedMemory":24,"refTime":569236211,"initialTime":
[1/15/2019, 1:55:06 PM] [WeatherPlus] **Fakegato-timer: emptyData ** undefined
[1/15/2019, 1:59:04 PM] [WeatherPlus] Clock adjust undefined: 9810ee21
[1/15/2019, 1:59:04 PM] [WeatherPlus] Data request undefined: 01140500000000
[1/15/2019, 1:59:04 PM] [WeatherPlus] Address requested undefined: 5
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 6, Address: 6
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 7, Address: 7
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 8, Address: 8
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 9, Address: 9
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 10, Address: 10
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 11, Address: 11
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 12, Address: 12
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 13, Address: 13
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 14, Address: 14
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 15, Address: 15
[1/15/2019, 1:59:04 PM] [WeatherPlus] Data undefined:  1505000000 0100 0000 81f3daed210000 0000 00 0000 10 060000006009000007a6ffd0206a27 10 07000000b80b000007a6ffd0206a27 10 08000000100e000007b0ff34216027 10 090000006810000007baff34216027 10 0a000000c012000007c4ff98216027 10 0b0000001815000007cefffc216027 10 0c0000007017000007baff1c256027 10 0d000000c819000007c4ff1c256027 10 0e000000201c000007ceff1c256027 10 0f000000781e000007e2ff1c255627
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 16, Address: 16
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 17, Address: 17
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 18, Address: 18
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 19, Address: 19
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 20, Address: 20
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 21, Address: 21
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 22, Address: 22
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 23, Address: 23
[1/15/2019, 1:59:04 PM] [WeatherPlus] undefined Entry: 24, Address: 24
[1/15/2019, 1:59:04 PM] [WeatherPlus] Data undefined:  10 10000000d020000007e2ff1c255627 10 110000002823000007f6ffb8245627 10 1200000080250000070000b8245627 10 13000000d827000007c4ff1c256027 10 14000000302a000007ceff1c255627 10 15000000882c000007e2ffb8245627 10 16000000e02e000007f6ff54245627 10 1700000038310000070000f0235627 10 18000000b734000007f1ff8c235627

content of json:

cat /root/.homebridge/Homebridge_undefined_persist.json
{"firstEntry":0,"lastEntry":32,"usedMemory":32,"refTime":569236211,"initialTime":1547543411,"history":["noValue",{"time":1547543411,"setRefTime":1},{"temp":-1.6,"pressure":1009,"humidity":87.5,"time":1547543411},{"temp":-1.5,"pressure":1009,"humidity":88,"time":1547544011},{"temp":-1.4,"pressure":1009,"humidity":88,"time":1547544611},{"temp":-1.3,"pressure":1009,"humidity":88,"time":1547545211},{"temp":-0.9,"pressure":1009,"humidity":84,"time":1547545811},{"temp":-0.9,"pressure":1009,"humidity":84,"time":1547546411},{"temp":-0.8,"pressure":1008,"humidity":85,"time":1547547011},{"temp":-0.7,"pressure":1008,"humidity":85,"time":1547547611},{"temp":-0.6,"pressure":1008,"humidity":86,"time":1547548211},{"temp":-0.5,"pressure":1008,"humidity":87,"time":1547548811},{"temp":-0.7,"pressure":1008,"humidity":95,"time":1547549411},{"temp":-0.6,"pressure":1008,"humidity":95,"time":1547550011},{"temp":-0.5,"pressure":1008,"humidity":95,"time":1547550611},{"temp":-0.3,"pressure":1007,"humidity":95,"time":1547551211},{"temp":-0.3,"pressure":1007,"humidity":95,"time":1547551811},{"temp":-0.1,"pressure":1007,"humidity":94,"time":1547552411},{"temp":0,"pressure":1007,"humidity":94,"time":1547553011},{"temp":-0.6,"pressure":1008,"humidity":95,"time":1547553611},{"temp":-0.5,"pressure":1007,"humidity":95,"time":1547554211},{"temp":-0.3,"pressure":1007,"humidity":94,"time":1547554811},{"temp":-0.1,"pressure":1007,"humidity":93,"time":1547555411},{"temp":0,"pressure":1007,"humidity":92,"time":1547556011},{"temp":-0.15,"pressure":1007,"humidity":91,"time":1547556906},{"temp":-0.2,"pressure":1007,"humidity":90,"time":1547557506},{"temp":-0.1,"pressure":1007,"humidity":89,"time":1547558106},{"temp":0,"pressure":1007,"humidity":89,"time":1547558706},{"temp":0.1,"pressure":1007,"humidity":88,"time":1547559306},{"temp":-0.7,"pressure":1007,"humidity":97,"time":1547559906},{"temp":-0.5,"pressure":1007,"humidity":96,"time":1547560506},{"temp":-0.4,"pressure":1007,"humidity":95,"time":1547561106},{"temp":-0.2,"pressure":1007,"humidity":94,"time":1547561706}]}

found another part of a log maybe more helpful in diagnosing what is wrong :)

[1/16/2019, 9:57:25 AM] [WeatherPlus] Initializing WeatherPlus platform...
[1/16/2019, 9:57:25 AM] [WeatherPlus] ** Fakegato-storage AddWriter : undefined
[1/16/2019, 9:57:25 AM] [WeatherPlus] Loading...
[1/16/2019, 9:57:26 AM] [WeatherPlus] ** Fakegato-storage read FS file: /root/.homebridge/Homebridge_undefined_persist.json
[1/16/2019, 9:57:26 AM] [WeatherPlus] ** Fakegato-timer Subscription : undefined
[1/16/2019, 9:57:26 AM] [WeatherPlus] Registring Events undefined
[1/16/2019, 9:57:26 AM] [WeatherPlus] Accessory undefined
[1/16/2019, 9:57:26 AM] [WeatherPlus] Initializing platform accessory 'Now'...
[1/16/2019, 9:57:26 AM] [WeatherPlus] Initializing platform accessory 'Today'...
[1/16/2019, 9:57:26 AM] [WeatherPlus] Initializing platform accessory 'In 1 Day'...
[1/16/2019, 9:57:26 AM] [WeatherPlus] Initializing platform accessory 'In 2 Days'...
[1/16/2019, 9:57:26 AM] [WeatherPlus] Initializing platform accessory 'In 3 Days'...
[1/16/2019, 9:57:26 AM] [WeatherPlus] Initializing platform accessory 'In 4 Days'...
[1/16/2019, 9:57:26 AM] [WeatherPlus] Initializing platform accessory 'In 5 Days'...
[1/16/2019, 9:57:26 AM] [WeatherPlus] Initializing platform accessory 'In 6 Days'...

How do I get anything but temperature

Its installed as described, I get my forecasts in Homekit which is great.
But its just showing temperature, I want to have the other observations like rain today etc.
Where am I going wrong?

Error getting Temperature

I loaded the app, I set the forecast for 3days. I see all the parameters, I only see temperature NOW.
I do see parameters for everything else. In Homekit app from apple I also get "No Response" on forecast days. But when I access the data from another app, I do see information there.

Temperature for forecast days displays error. everything else works.

Also it seems to give the "No Response" on other devices on the same page. But when I tap on them they come online.

Multiple weather stations

Is there any possibility to add multiple 'accessories', either in it's current form in the config or with some changes?

It would be useful to have multiple weather stations, for example a 'local' one, as well as a city, or perhaps another personal weather station elsewhere.

Some texts are not translated

I choose to let me display the results of "Dark Sky" in the language "de".
But inside the Eve App I still can see eg. the texts "Now", "Today" or "In x days". Also some texts of the measured values like "Ozone" are still in English.

Is it not possible to get them also translated?

Best Regards!
Carsten

User Education: Unable to add to HomeKit

Apologies, I'm sure this is a simple user education scenario.

I've added the configuration section to my platforms array (example below) and the platform appears to initialize; however, I'm unable to see any new accessories when I attempt to add it to my Home in HomeKit. The Weather Station initialization appears to be complete

config.json (snippet)
"platforms": [ { "platform": "Nest-cam", "username": "[email protected]", "password": "XXXXXXXXXXXXXXXX", "useOMX": false }, { "platform": "WeatherStation", "name": "Weather Station", "key": "XXXXXXXXXXXXXXXX", "location": "pws:KWAMONRO11" } ]

Homebridge console
[2018-3-23 05:03:53] Loaded plugin: homebridge-nest-cam [2018-3-23 05:03:53] Registering platform 'homebridge-nest-cam.Nest-cam' [2018-3-23 05:03:53] --- [2018-3-23 05:03:53] Loaded plugin: homebridge-weather-station-extended [2018-3-23 05:03:53] Registering platform 'homebridge-wunderground-extended.WeatherStation' [2018-3-23 05:03:53] --- [2018-3-23 05:03:53] Loaded config.json with 0 accessories and 2 platforms. [2018-3-23 05:03:53] --- [2018-3-23 05:03:53] Loading 2 platforms... [2018-3-23 05:03:53] [Nest-cam] Initializing Nest-cam platform... [2018-3-23 05:03:53] [Weather Station] Initializing WeatherStation platform... [2018-3-23 05:03:53] [Weather Station] Initializing platform accessory 'Now'... [2018-3-23 05:03:53] [Weather Station] Initializing platform accessory 'Today'... [2018-3-23 05:03:53] [Weather Station] Initializing platform accessory 'In 1 Day'... [2018-3-23 05:03:53] [Weather Station] Initializing platform accessory 'In 2 Days'... [2018-3-23 05:03:53] [Weather Station] Initializing platform accessory 'In 3 Days'... [2018-3-23 05:03:53] Loading 0 accessories... Setup Payload: X-HM://XXXXXXXXXX Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Add four season value?

Hello,

is it possible that you add a value for the four seasons in your plugin?

Would be great for certain functions.

Greeting Nastra

1.2.2 crash

homebridge crashes with the following log when updating the values in the Eve app.

/usr/lib/node_modules/homebridge-weather-station-extended/index.js:399
                                        pressure: this.accessories[i].currentConditionsService.getCharacteristic(Characteristic.AirPressure).value,
                                                                                                         ^
TypeError: Cannot read property 'value' of undefined
    at WeatherStationPlatform.addHistory (/usr/lib/node_modules/homebridge-weather-station-extended/index.js:399:106)
    at ontimeout (timers.js:460:11)
    at tryOnTimeout (timers.js:298:5)
    at Timer.listOnTimeout (timers.js:261:5)
homebridge-weather.service: Main process exited, code=exited, status=1/FAILURE
homebridge-weather.service: Unit entered failed state.
homebridge-weather.service: Failed with result 'exit-code'.

Eve Weather emulation

Hi naofireblade,
as you know some time ago I forked your plugin for using it as a test bench for fakegato. Now you greatly evolved it, with API for services different from the original Wunderground. Now that Wunderground will probably shutdown free API access, I would like to move myself to your new version, but I would still prefer to emulate Eve Weather, with its custom service rather than the standard temperature service, so I would implement some modifications. Would you be interested in such an option for your plugin? If so, I would add this feature as an optional parameter and issue a pull request.
Let me know.

Eve history sometimes won't update

My last issue was closed by myself regarding the history inside the Eve app. But now I've discovered that sometimes Eve won't update anymore until I delete and reinstall the app. After that all the history is gone and I have to go through all the reconfiguring inside the app hassle again. Do you have the same issue sometimes? It is very strange I can't see a pattern when this happens. Now this has just happened on my iPhone, while my iPad is reading the history as expected.

Cannot get plugin to start without errors

Here's my json for the plugin. Removing it from my config, then homebridge loads fine.
{
"platform": "WeatherPlus",
"name": "Weather",
"service": "darksky",
"key": "xxxxxxxxxxxxxxxxx",
"location": [##, -##],
"language": "en",
"forecast": [1]
}

and of course, when loading the platform i get this error

Aug 22 11:18:54 raspberrypi homebridge[3612]: [2018-8-22 11:18:54] [homebridge-plex-sensors.Plex] Initializing homebridge-plex-sensors.Plex platform...
Aug 22 11:18:54 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE
Aug 22 11:18:54 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.
Aug 22 11:18:54 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.
Aug 22 11:19:04 raspberrypi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart.

Weather-Plus being the next platform to load.

still problems with Weather Underground

Updated to 2.7.1 version of the plugin but still getting errors with Weather Underground:

[2019-3-31 19:25:11] [MeteoBCN] Error retrieving weather report for Weather Underground
[2019-3-31 19:25:11] [MeteoBCN] Error Message: TypeError: Cannot read property 'pressure_mb' of undefined
[2019-3-31 19:25:11] [MeteoBCN] Error parsing weather report (forecastday[0]) for Weather Underground
[2019-3-31 19:25:11] [MeteoBCN] Error Message: TypeError: Cannot read property 'simpleforecast' of undefined

any ideas?

Direction of temperature change

This is an enhancement request. It would be helpful to know if the current temperature is decreasing or increasing. There might be better ideas on how to implement this, but it might work if the current reading is higher than the last two readings, then a value would indicate the temperature was rising. If the current reading is lower then the last two, then the temperature is going down. If previous readings are the same, or higher and lower, or no readings are available, then the value would indicate staying steady.

Negative temperature

Hi, this seams à recurring problem from other packages.

The negatives temperature values are showed as 0. On the northern regions the temperature is currently negative specially showed in celsius.

Other have fixes fixes this by changing the minimum value to -100 to force homekit to accept it.
While creating the accessories.

Can this be done here ?

Regards

Lcd send data

Is possible sent data to lcd connected to RASPBERRY ?

error in updateWeather hangs homebridge

looks like wunderground returned incomplete data, and it hung homebridge, requiring a restart. Maybe the whole thing should be wrapped in a try catch?

/opt/local/lib/node_modules/homebridge-weather-station-extended/index.js:323
						service.setCharacteristic(CustomCharacteristic.ForecastDay, forecast[day]['date']['weekday']);
						                                                                         ^

TypeError: Cannot read property 'date' of undefined
    at Wunderground.<anonymous> (/opt/local/lib/node_modules/homebridge-weather-station-extended/index.js:323:80)
    at Request._callback (/opt/local/lib/node_modules/homebridge-weather-station-extended/node_modules/wundergroundnode/lib/wundergroundnode.js:148:22)
    at Request.self.callback (/opt/local/lib/node_modules/homebridge-weather-station-extended/node_modules/request/request.js:186:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/opt/local/lib/node_modules/homebridge-weather-station-extended/node_modules/request/request.js:1163:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at IncomingMessage.<anonymous> (/opt/local/lib/node_modules/homebridge-weather-station-extended/node_modules/request/request.js:1085:12)
    at IncomingMessage.g (events.js:291:16)

Problem with logging

There is some problem with the logging, almost nothing gets logged

Here is the config:

{
	"platform": "WeatherStation",
	"name": "Weather Station",
	"key": "***",
	"location": "OSD"
}

And below is the logs.

20:47:59 - HAP Warning: Characteristic undefined not in required or optional characteristics for service 0000008A-0000-1000-8000-0026BB765291. Adding anyway.
20:47:59 - [Weather Station] Exception while parsing current observations: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: cd65a9ab-85ad-494a-b2bd-2f380084134d
20:47:59 - [Weather Station] Exception while parsing forecast for day #0: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: 57f1d4b2-0e7e-4307-95b5-808750e2c1c7
20:47:59 - [Weather Station] Exception while parsing forecast for day #1: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: 57f1d4b2-0e7e-4307-95b5-808750e2c1c7
20:47:59 - [Weather Station] Exception while parsing forecast for day #2: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: 57f1d4b2-0e7e-4307-95b5-808750e2c1c7
20:47:59 - [Weather Station] Exception while parsing forecast for day #3: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: 57f1d4b2-0e7e-4307-95b5-808750e2c1c7
20:51:58 - HAP Warning: Characteristic undefined not in required or optional characteristics for service 0000008A-0000-1000-8000-0026BB765291. Adding anyway.
20:51:58 - [Weather Station] Exception while parsing current observations: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: cd65a9ab-85ad-494a-b2bd-2f380084134d
20:51:58 - [Weather Station] Exception while parsing forecast for day #0: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: 57f1d4b2-0e7e-4307-95b5-808750e2c1c7
20:51:58 - [Weather Station] Exception while parsing forecast for day #1: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: 57f1d4b2-0e7e-4307-95b5-808750e2c1c7
20:51:58 - [Weather Station] Exception while parsing forecast for day #2: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: 57f1d4b2-0e7e-4307-95b5-808750e2c1c7
20:51:58 - [Weather Station] Exception while parsing forecast for day #3: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: 57f1d4b2-0e7e-4307-95b5-808750e2c1c7
20:55:59 - [Weather Station] Exception while parsing current observations: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: cd65a9ab-85ad-494a-b2bd-2f380084134d
20:55:59 - [Weather Station] Exception while parsing forecast for day #2: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: 57f1d4b2-0e7e-4307-95b5-808750e2c1c7
20:55:59 - [Weather Station] Exception while parsing forecast for day #1: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: 57f1d4b2-0e7e-4307-95b5-808750e2c1c7
20:55:59 - [Weather Station] Exception while parsing forecast for day #0: Error: Cannot add a Characteristic with the same UUID as another Characteristic in this Service: 57f1d4b2-0e7e-4307-95b5-808750e2c1c7
20:55:59 - HAP Warning: Characteristic undefined not in required or optional characteristics for service 0000008A-0000-1000-8000-0026BB765291. Adding anyway.

Name and translate

Hello,

thanks a lot for your plugin ! It's a good help for the Eve Homekit App...

But i'm facing an issue with the name and translation.

here's an extract of my config:

        "language": "fr",
        "units": "ca",
        "displayName": "Aujourd'hui",
        "displayNameForecast": "Demain",
        "forecast": [
            2
        ]

Here's what I get on Eve app

image

As you can seen, it should all be in French, and the name of the device should only be:

  • "Demain" instead of "Demain in day 1"
  • the day (Journée) should be "Dimanche" instead of "Sunday"

Any idea of what I should change or update, because everything else is fine ?

Thank you very much.

Weather Condition Category incorrect

Hi,

I installed your plugin to make some automations with the telegram Plugin etc.

According to your README file you configured the plugin like this:

Condition Category (Sun = 0, Clouds = 1, Rain = 2, Snow = 3)

I then checked in the controller App to use 0, 1, 2, 3 as a condition but there it shows me for 0: Bewoelkt, 1 for Nebel, ...

So something is not correct here...

If I can not properly choose the condition category numbers, do you know if there is a way to use your sentence for Weather Condition in Telegram? So that it checks your sentence and copies it into a telegram notification?

Thx in advance!

Homebrigde loads plugin but platform is not loaded from config.json

Problem:
Homebridge loads the homebridge-weather-station-extended plugin but does not detect the platform declaration in ~/.homebridge/config.json

[2018-4-8 21:12:50] Loaded plugin: homebridge-simplisafe-security-system
[2018-4-8 21:12:50] Registering accessory 'homebridge-simplisafe.Homebridge-SimpliSafe'
[2018-4-8 21:12:50] ---
[2018-4-8 21:12:51] Loaded plugin: homebridge-weather-station-extended
[2018-4-8 21:12:51] Registering platform 'homebridge-wunderground-extended.WeatherStation'
[2018-4-8 21:12:51] ---
[2018-4-8 21:12:51] Loaded config.json with 1 accessories and 0 platforms.
[2018-4-8 21:12:51] ---
[2018-4-8 21:12:51] Loading 1 accessories...
[2018-4-8 21:12:51] [SimpliSafe] Initializing Homebridge-SimpliSafe accessory...

The Homebridge and SimpliSafe accessories both show-up in the Apple Home app as expected. Seems like something is wrong with my config.json but I do not see anything obviously wrong with it. Will you please help me out?

Setup:
Homebridge v0.4.38 on RPI 3 B+ running Raspbian 9 (stretch)
Apple TV 4K running tvOS 11.3
iPhone X running iOS 11.3

~/.homebridge/config.json
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},

"description": "home name",

"platform": [
    {
            "platform": "WeatherStation",
            "name": "Weather Station",
            "key": "api key",
            "location": "zip code"
    }
],

"accessories": [
    {
        "accessory": "Homebridge-SimpliSafe",
        "name": "SimpliSafe",
    "auth": {
            "username": "username",
            "password": "password"
    }
    }
]

}

Cannot read property 'date' of undefined

A failure in the module is causing homebridge to crash. Here is the output from my error file

TypeError: Cannot read property 'date' of undefined at Wunderground.<anonymous> (/usr/local/lib/node_modules/homebridge-weather-station-extended/index.js:323:80) at Request._callback (/usr/local/lib/node_modules/homebridge-weather-station-extended/node_modules/wundergroundnode/lib/wundergroundnode.js:148:22) at Request.self.callback (/usr/local/lib/node_modules/homebridge-weather-station-extended/node_modules/request/request.js:186:22) at emitTwo (events.js:106:13) at Request.emit (events.js:194:7) at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-weather-station-extended/node_modules/request/request.js:1163:10) at emitOne (events.js:96:13) at Request.emit (events.js:191:7) at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-weather-station-extended/node_modules/request/request.js:1085:12) at Object.onceWrapper (events.js:293:19) at emitNone (events.js:91:20) at IncomingMessage.emit (events.js:188:7) at endReadableNT (_stream_readable.js:975:12) at _combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickCallback (internal/process/next_tick.js:104:9)

Possible to grab data from specific weather stations

Hi

is it possible to grab the data from specific weather stations?
if you visit the weather overview of a city and scroll all the way down you can see weather stations located in that city and all of it's data

Every single station has a unique ID e.g. ICALIFORN123

Would it be possible to grab the data just from a specific station instead of the whole city?

thank you in advance

Impossible to configure config.json

Hello,

I need to assign a different area than the example:

{ "platform": "WeatherStation", "name": "Weather Station", "key": "XXXXXXXXXXXXXX", "location": "78613" }

I tried to assign longitude and latitude but, I cannot see how can I do it.

May I ask you about ho can be the right syntax?

Many thanks in advance.

plugin installed, but homebridge not recognizing it.

I'm getting the plugin as not registered now, it is probably a stupid problem on my part, but I cannot for the life of me figure it out.
Here is the log:

Sep 05 07:48:51 raspberrypi homebridge[2989]: /usr/local/lib/node_modules/homebridge/lib/api.js:64
Sep 05 07:48:51 raspberrypi homebridge[2989]: throw new Error("The requested accessory '" + name + "' was not registered by any plugin.");
Sep 05 07:48:51 raspberrypi homebridge[2989]: ^
Sep 05 07:48:51 raspberrypi homebridge[2799]: Error: The requested accessory 'WUWeatherStationExtended' was not registered by any plugin.
Sep 05 07:48:51 raspberrypi homebridge[2799]: at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:64:13)
Sep 05 07:48:51 raspberrypi homebridge[2799]: at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:254:42)
Sep 05 07:48:51 raspberrypi homebridge[2799]: at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:81:38)
Sep 05 07:48:51 raspberrypi homebridge[2799]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
Sep 05 07:48:51 raspberrypi homebridge[2799]: at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
Sep 05 07:48:51 raspberrypi homebridge[2799]: at Module._compile (module.js:571:32)
Sep 05 07:48:51 raspberrypi homebridge[2799]: at Object.Module._extensions..js (module.js:580:10)
Sep 05 07:48:51 raspberrypi homebridge[2799]: at Module.load (module.js:488:32)
Sep 05 07:48:51 raspberrypi homebridge[2799]: at tryModuleLoad (module.js:447:12)
Sep 05 07:48:51 raspberrypi homebridge[2799]: at Function.Module._load (module.js:439:3)
Sep 05 07:48:51 raspberrypi homebridge[2799]: at Module.runMain (module.js:605:10)
Sep 05 07:48:51 raspberrypi homebridge[2799]: at run (bootstrap_node.js:425:7)
Sep 05 07:48:51 raspberrypi homebridge[2799]: at startup (bootstrap_node.js:146:9)
Sep 05 07:48:51 raspberrypi homebridge[2799]: at bootstrap_node.js:540:3
Sep 05 07:48:51 raspberrypi systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE
Sep 05 07:48:51 raspberrypi systemd[1]: Unit homebridge.service entered failed state.

and requisite part of the config

  {
    "accessory": "WUWeatherStationExtended",
    "name": "Weather Station",
    "interval": "4",
    "key": "xxxxxxxxxxxxxxx",
    "location": "pws:KTXTYLER51",
    "forecast": "today"
  }

Type: Sensor

Would it be possible to have homebridge-weather-station-extended introduce the data as Sensors which would allow direct usage of Automation in the Home app?

Perhaps this is not the intended usage of sensors and highly frowned upon.

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.