Coder Social home page Coder Social logo

iobroker-community-adapters / iobroker.weatherunderground Goto Github PK

View Code? Open in Web Editor NEW
17.0 6.0 13.0 1.07 MB

ioBroker Adapter to load weather forecast from Weather Underground

License: MIT License

HTML 7.92% JavaScript 92.08%
iobroker weather visualisation

iobroker.weatherunderground's Introduction

Logo

ioBroker.weatherunderground

Number of Installations Number of Installations NPM version

Test and Release Translation status Downloads

This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.

ioBroker Adapter to load 24h weather forecast for your location from Weather Underground. The adapter loads all 15min (default) daily and hourly forecast data.

Notes

You can use this adapter with providing an official "PWS owner" API-key or leave API key empty to use keys extracted out of the WU webpage.

Icon Sets

There are some different Icon Sets available when using "Legacy API", see below. For the usabe with the new API the image names have changed (see https://docs.google.com/document/d/1dNCf6nF6cjm4oOxQxjtqNuAvG_iEe5f9MQH1xlCeV4s/edit) and are now number based ... they can be downloaded from e.g. https://drive.google.com/drive/folders/0B6fWQWXuE09OOWtBOXJNX190TDQ and could be used as custom set (see below).

In Adapter settings change "Custom Icon-Base-URL" to one of the available Icon Set on Weatherunderground: (source: https://www.wunderground.com/weather/api/d/docs?d=resources/icon-sets )

Icon Set URL Example
1 https://www.wunderground.com/static/i/c/a/ alt text
2 https://www.wunderground.com/static/i/c/b/ alt text
3 https://www.wunderground.com/static/i/c/c/ alt text
4 https://www.wunderground.com/static/i/c/d/ alt text
5 https://www.wunderground.com/static/i/c/e/ alt text
6 https://www.wunderground.com/static/i/c/f/ alt text
7 https://www.wunderground.com/static/i/c/g/ alt text
8 https://www.wunderground.com/static/i/c/h/ alt text
9 https://www.wunderground.com/static/i/c/i/ alt text
10 https://www.wunderground.com/static/i/c/j/ alt text
11 https://www.wunderground.com/static/i/c/k/ alt text

Or you can aso use your own "custom" icons, for this purpose the following gif-files must be provided within an Base-URL directory :

Icon for Day Icon for night
chanceflurries.gif nt_chanceflurries.gif
chancerain.gif nt_chancerain.gif
chancesleet.gif nt_chancesleet.gif
chancesleet.gif nt_chancesleet.gif
chancesnow.gif nt_chancesnow.gif
chancetstorms.gif nt_chancetstorms.gif
chancetstorms.gif nt_chancetstorms.gif
clear.gif nt_clear.gif
cloudy.gif nt_cloudy.gif
flurries.gif nt_flurries.gif
fog.gif nt_fog.gif
hazy.gif nt_hazy.gif
mostlycloudy.gif nt_mostlycloudy.gif
mostlysunny.gif nt_mostlysunny.gif
partlycloudy.gif nt_partlycloudy.gif
partlysunny.gif nt_partlysunny.gif
sleet.gif nt_sleet.gif
rain.gif nt_rain.gif
sleet.gif nt_sleet.gif
partlycloudy.gif nt_partlycloudy.gif
sunny.gif nt_sunny.gif
tstorms.gif nt_tstorms.gif
cloudy.gif nt_cloudy.gif

Changelog

3.7.0 (2024-04-13)

  • (mcm1957) Adapter requires node.js 18 and js-controller >= 5 now
  • (mcm1957) Dependencies have been updated

3.6.0 (2023-09-09)

  • (mcm1957) Icon urls at admin ui have been adapted to weatherunderground website changes (#158)
  • (mcm1957) Forecast periods have been extended

3.5.0 (2023-09-08)

  • (mcm1957) Adapter now requires node 16 or newer
  • (mcm1957) Dependencies have been updated
  • (waldmensch1) Cloudcover states have been added (PR #178)
  • (mcm1957) Date format has been fixed to avoid incorrect display with newer admin versions (#191)
  • (mcm1957) Forecast urls have been adapted to weatherunderground website changes (#158)

3.4.3 (2023-08-15)

  • (Aplollon77) Translations have been updated (#159)
  • (mcm1957) The testenvironment has been updated to use node 16/18/20
  • (bluefox) Dependencies have been updated

3.4.2 (2022-04-26)

  • (Apollon77) Added special logging when no current observation data are available because Station most likely offline to reduce confusion

3.4.1 (2022-03-13)

  • (bluefox) Use axios for communication
  • (bluefox) make sure date states are filled correctly

3.4.0 (2022-03-10)

  • (Apollon77) If no official API-Key is used: Move schedule if default is used to better spread the requests over time to prevent peaks; Additionally add a random delay in the start minute
  • (Apollon77) Further optimizations and additional logging

3.3.1 (2021-06-28)

  • (Apollon77) Optimize for js-controller 3.3

3.3.0 (2021-01-22)

  • (Apollon77) Optimize for js-controller 3.2
  • (Apollon77) js-controller 2.0 is now required at least

3.2.5 (2020-12-27)

  • (Apollon77) Prevent crash case (Sentry IOBROKER-WEATHERUNDERGROUND-1, IOBROKER-WEATHERUNDERGROUND-2)

3.2.3 (2020-12-26)

  • (Apollon77) make sure adapter do not crash when no data could be read
  • (Apollon77) Add Sentry error reporting

3.2.2 (2020-12-02)

  • (Apollon77) icons sometimes did not have a correct extension
  • (Apollon77) Correct some cases with different types of locations when reading data

3.2.1

  • (raintonr) Corrected 'Imperial' terminology.

3.2.0 (2019-12-28)

  • (StrathCole) fix forecast expiry time
  • (StrathCole) add visibility index to objects on hourly forecast

3.1.6 (2019-10-16)

  • (Bjoern3003) adjust to WU changes, now v3 API for hourly data
  • (Apollon77) run once after installation/update

3.1.3

  • (Apollon77) text correction

3.1.2 (2019-07-27)

  • (Apollon77) use new parameters to get decimal precision values

3.1.1 (2019-07-14)

  • (Apollon77) add windDirection as string calculated based on degrees

3.1.0 (2019-07-12)

  • (Apollon77) remove option for legacy API because disabled by WU

3.0.14 (2019-07-11)

  • (Apollon77) optimize checking of pws station id

3.0.13 (2019-07-10)

  • (Apollon77) Fix error in image url handling

3.0.11/12 (2019-07-09)

  • (Apollon77) Re-Fetch PWS station key on Error 401

3.0.10 (2019-05-27)

  • (Apollon77) Adopt logic to WU changes

3.0.8 (2019-03-23)

  • (Apollon77) Add additional guidance when location is not found by WU

3.0.7 (2019-03-22)

  • (Apollon77) implement to extract used "legacy" API keys out of WU website to allow restore of functionality for now
  • (Apollon77) Also extract API keys for newer API version from website to be usable together with real "PWS owner keys" in future
  • (Apollon77) optionally get data using the New APIs (as well as the officially available PWS-Owner APIs as also additional ones to restore functionality)
  • (Apollon77) Admin 2 support removed and adapted the Admin 3 texts as needed for now

2.0.4 (2018-08-19)

  • (René) some typos
  • (bluefox) Write only numbers and not strings

2.0.3 (2018-07-30)

  • (bluefox) Warning! Breaking changes! States are renamed.
  • (bluefox) Refactoring of states and roles

1.1.2 (2017-11-24)

  • (Apollon77) Add option to specify image format for custom image urls

1.1.1 (2017-11-08)

  • (Apollon77) Optimize API usage by getting all data with one call instead of two
  • (Apollon77) Add support for multiple API-Keys

1.1.0 (2017-10-30)

  • (Apollon77) Add option to overwrite Icon Base URL

1.0.8 (2017-07-12)

  • (DeepCoreSystem) add 2 current observation values, fixes of some datapoint caps.

1.0.7 (2017-06-19)

  • (Dutchman) add Dutch language suppport

1.0.6 (2017-05-16)

  • (Rene) bug fixing
    • all 4 sets are enabled as default
    • change of checkbox enables saves button

1.0.5 (2017-05-14)

  • (Rene) hourly forecast extend to 36h

1.0.4 (2017-04-09)

  • (Rene) parse much more data
    • today's 24 h
    • next 4 days / nights as text
    • next 4 days
    • current values each can be enabled or disabled

1.0.3 (2016-11-01)

  • (bluefox) Catch parse errors

1.0.2 (2016-10-29)

  • (Apollon77) make sure precip values are always integers

1.0.1 (2016-07-21)

  • (jens-maus) conversion from feet to meter for observation_location

1.0.0 (2016-07-12)

  • (Apollon77) add daily rain level forecast

0.2.0 (2016-07-01)

  • (Apollon77) Add Error handling and station-usage for forcasts

0.1.1 (2016-06-07)

  • (ploebb) Fix forecast api URL

0.1.0 (2016-05-07)

  • (bluefox) convert text to floats
  • (bluefox) support languages

0.0.5

corrected humidity value within current weather info (slice + unit)

0.0.4

checking for spaces in location added current conditions

0.0.3

bugfix in summed pop-value.

0.0.2

config dialog fixed

0.0.1

initial release with all basics to load WU-forecast data

License

The MIT License (MIT)

Copyright (c) 2024 iobroker-community-adapters [email protected] Copyright (c) 2015-2023 dschaedl [email protected], iobroker-community-adapters

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.weatherunderground's People

Contributors

anwa avatar anzic23 avatar apollon77 avatar bjoern3003 avatar deepcoresystem avatar dependabot-preview[bot] avatar dependabot[bot] avatar dschaedl avatar dutchmannl avatar germanbluefox avatar jens-maus avatar mcm1957 avatar parns avatar ploebb avatar raintonr avatar rg-engineering avatar thost96 avatar unclesamswiss avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

iobroker.weatherunderground's Issues

Reading Forecast without token fails

Hi,

I get an error using the current version 3.2.0 and having no own API Key...
TypeError: Cannot read property 'current_observation' of undefined at parseNewResult (/opt/iobroker/node_modules/iobroker.weatherunderground/main.js:902:18) at getNewWuDataHourlyForcas
2020-01-30 20_07_25-logs - ioBroker

Manche Datenpunkte werden nicht aktualisiert.

Hallo,
ich habe ein folgendes Problem mit dem Weatherunderground Adapter.
Und zwar wenn ich die die Wetterstationen die bei mir in der Gegend sind auswähle dann
werden bei mir manche Datenpunkte nicht aktualisiert.
Das wichtigst ist die momentane Temperatur.
Die Temperatur und die gefüllte Temperatur stehen immer auf 18 grad.
auf der Homepage wird allerdings alles korrekt angezeigt.
Folgende Wetterstationen sind betroffen (ILAMBSHE9 und ILAMBSHE7)
Wenn ich aber eine Station die etwas weiter weg ist auswähle dann funktioniert alles einwandfrei.
Liegt es an den Stationen oder an dem Adapter?
Komisch ist halt das es auf der Homepage alles korrekt angezeigt wird und das ich die meisten Daten über den Adapter empfange.
Fehlermeldungen werden im Log nicht angezeigt.

Danke schonmal im vorraus.

Gruß
Andreas

Current Wind Speed and Gust not correct

Hi

When I compare the wind values in

  • weatherunderground.0.forecast.current.wind (and windGust)
    with the ones of
  • weatherunderground.0.currentObservationUrl
    then they dont match at all.

They should be the same, shouldn't they?

Thanks and regards
Daniel

Fehlermeldungen original.lastIndexOf is not a function

Hallo, bekomme nach Cronstart diese Fehler:

weatherunderground.0 2019-06-19 12:12:03.946 debug all forecast values set weatherunderground.0 2019-06-19 12:12:03.946 error exception in daily forecast data TypeError: original.lastIndexOf is not a function weatherunderground.0 2019-06-19 12:12:03.946 error exception in : body.daily_forecast2TypeError: original.lastIndexOf is not a function weatherunderground.0 2019-06-19 12:12:03.946 debug all current conditions values set

Settings:

Screenshot (3518)_LI

Post:
https://forum.iobroker.net/topic/21250/weatherunderground-adapter-reborn-3-0/89

System:

Platform: Windows
Node.js: v10.16.0
NPM: 6.9.0
JS: 1.5.12
Admin: 3.6.3
WU: 3.0.11

current Daten werden nicht mehr updated

Hallo,

Seit 31. August (letzter Zeitstempel in current/observation_time_rfc822 ist Fri, 31 Aug 2018 10:00:00 +0200) werden die current Daten nicht mehr updatet. Die Forecast Daten laufen normal rein. Getestet mit neuestem Stand und auch mit downgrade auf 1.1.2. Die Station ist ISACHSEN10. Auf der WU Seite werden die aktuellen Daten angezeigt, die Station muss also in Betrieb sein.

Translation: non-SI system is 'Imperial'

Just to clarify the terminology, non-SI units (as used in the USA) are called 'Imperial'.

So the "Use english metric system(°F, miles)" text should read "Use Imperial units (°F, miles)"

"time / forcast for" wrong

Hi

I discovered, that the value "time" with the name "forcast for" has the wrong values. I think it should have the API values of the field "validTimeLocal".

Can someone confirm?

Thanks and regards
Daniel

current icon URL fehlerhaft

Ich nutze derzeit den Adapter in Version 2.0.4 und da ist die URL für das current Wetter-ICON fehlerhaft.
https://icons.wxug.com/i/c/a/nt_.gif Hier fehlt nach nt_ der Bezug zum icon.
Fehler ist nicht nur bei den Nacht icons sondern auch bei den Tag-icons.

Die anderen Tage funktionieren
Beispiel Tag 1 am Tag:
https://icons.wxug.com/i/c/a/clear.gif

Fehler tritt auch bei der Vorgängerversion auf. Vielleicht hat Weatherunderground da was geändert.

Gruß
Johnny

Please add your adapter to ioBroker.discovery

I am an automatic service from ioBroker that searches adapters and makes suggestions.

I noticed that your adapter is not integrated in the ioBroker.discovery. Using the Discovery adapter, ioBroker can automatically find devices or suggest services to the user for installation. If possible I would live to see your adapter added there.

Some adapters have already been added and you can use them as blueprints. See: https://github.com/ioBroker/ioBroker.discovery You need to fork this project and then create a PR for your adapter to be added.

Basically the plugins can do HTTP calls, UDP discovery, MDNS, UPNP and will iterate over all devices found by IP scan and check local serial ports. If you want you can also add new discovery methods but please try to do that with at least dependencies as possible.

Then create one file under lib/adapters for your adapter to implement the detection and proposal of an instance to the user.

On questions, the other developers will support in the forum or via GitHub issues too.

If no detection is possible, simply close this issue and I won't bother you again. ;-)

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

don't get data

Hi team,

I don't get any data from the adapter, my configuration is:

de / STR / ISTUTTGA842

Could somebody help me?

debug is:

weatherunderground.0 2019-10-16 18:20:07.679 error at Request.emit (events.js:211:7)
weatherunderground.0 2019-10-16 18:20:07.679 error at emitOne (events.js:116:13)
weatherunderground.0 2019-10-16 18:20:07.679 error at Request. (/opt/iobroker/node_modules/request/request.js:1161:10)
weatherunderground.0 2019-10-16 18:20:07.679 error at Request.emit (events.js:214:7)
weatherunderground.0 2019-10-16 18:20:07.679 error at emitTwo (events.js:126:13)
weatherunderground.0 2019-10-16 18:20:07.679 error at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22)
weatherunderground.0 2019-10-16 18:20:07.679 error at Request.request [as _callback] (/opt/iobroker/node_modules/iobroker.weatherunderground/main.js:1580:15)
weatherunderground.0 2019-10-16 18:20:07.679 error at getNewWuDataCurrentObservations (/opt/iobroker/node_modules/iobroker.weatherunderground/main.js:220:55)
weatherunderground.0 2019-10-16 18:20:07.679 error at getNewWuDataDailyForcast (/opt/iobroker/node_modules/iobroker.weatherunderground/main.js:1591:19)
weatherunderground.0 2019-10-16 18:20:07.679 error at modifyExtractedUrl (/opt/iobroker/node_modules/iobroker.weatherunderground/main.js:1527:15)
weatherunderground.0 2019-10-16 18:20:07.679 error (7487) TypeError: Cannot read property 'replace' of undefined
weatherunderground.0 2019-10-16 18:20:07.678 error (7487) uncaught exception: Cannot read property 'replace' of undefined

Kind regards

Add visibility index

The hourly forecast json contains the visibility index in miles. Those should be added to the object tree.

Adapster 3.3.0 Error forecast...

LOG-Meldung:

weatherunderground.0 2021-04-02 10:43:45.936 error (8878) No forecast data found in response
weatherunderground.0 2021-04-02 10:43:43.246 error (8878) Wunderground reported an error: --/Error: options.uri is a required argument

New API itegration?

Hello everybody,

can the developer of the adapter implement the new API?
Incidentally, the API can only be used by owners of a PWS.

https://apicommunity.wunderground.com/weatherapi/topics/end-of-feb-wu-api-update

The gateway for the new API keys for PWS uploaders is open.

Cut and paste this URL into your browser:

https://www.wunderground.com/member/api-keys

Next, once you have your new key, you can use it in the NEW (not old!) API’s commands. The documentation for those commands is here:

https://docs.google.com/document/d/1eKCnKXI9xnoMGRRzOL1xPCBihNV2rOet08qpE_gArAY/edit

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/dschaedl/ioBroker.weatherunderground

I have also found warnings that may be fixed if possible.

  • [W113] Adapter should support compact mode

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

uncaught exception: Cannot read property 'replace' of undefined

I just recently installed this adapter, but seems something is going wrong...

2020-04-11 11:35:19.973  - info: host.raspberry2 iobroker exit 0
--
2020-04-11 11:35:21.470  - info: host.raspberry2 instance scheduled system.adapter.weatherunderground.0 12 * * * *
2020-04-11 11:35:21.495  - info: host.raspberry2 instance system.adapter.weatherunderground.0 started with pid 26102
2020-04-11 11:35:26.314  - info: weatherunderground.0 (26102) starting. Version 3.1.6 in /opt/iobroker/node_modules/iobroker.weatherunderground, node: v8.12.0
2020-04-11 11:35:29.545  - info: weatherunderground.0 (26102) using fallback station ID to get key because no PWS station ID provided.
2020-04-11 11:35:34.682  - error:  weatherunderground.0 (26102) no observations in response from  https://api.weather.com/v3/wx/observations/current?apiKey=6532d6454b8aa370768e63d6ba5a832e&geocode=0%2C0&units=m&language=de&format=json
2020-04-11 11:35:34.695  - error: weatherunderground.0 (26102) uncaught exception: Cannot read property 'replace' of null
2020-04-11 11:35:34.696  - error: weatherunderground.0 (26102) TypeError: Cannot read property 'replace' of null

Or am I doing something wrong?

Error: options.uri is a required argument

I installed the adapter with this settings:
grafik

Unfortunately I am getting these errors right away:
grafik

I have Node V12 installed, probably this is part of the issue - but I think it will be the basic version soon.

API-key error messages

Describe the bug
I am using the weatherunderground adapter with my weatherstation for realization of an windalarm to protect my raffstores. Therefore I have configured the adapter to pull just the 'current data' no forecasts. Recently there was a strong wind above the threshold for the windalarm but nothing happened. The wind data was not pulled as often as I expected (The weatherstation sensor data is updating every 10sec). To solve this I have configured the instance to restart every 10sec. Since that time there are many error messages in the log, considering a API-key issue (see Screenshots for configuration and log-errors). Is that an issue with the number of API-key usages (I am the only person who uses this API-key)? Is there any possibility to receive the sensor data in a 10sec interval without such error messages?

To Reproduce
Set 'Zeitplan' to 'every 10sec' and restart the adapter:

Expected behavior
The 'curent data' should be updated by the adapter every 10sec without API-errors.

Screenshots & Logfiles
grafik
grafik

Versions:

  • Adapter version: 3.2.1
  • JS-Controller version: 3.1.6
  • Node version: 12.18.4 (same behaviour with prior versions)
  • Operating system: Raspbian light

Additional context
NA

Wunderground reported an error: 204/null

Error in log with debug output:

image

Versions:

  • Adapter version: 3.3.0
  • JS-Controller version: 3.2.8
  • Node version: v10.17.0
  • Operating system: Debian GNU/Linux 10 (buster)

wrong object types

weatherunderground.0 2982 2021-05-08 10:06:45.175 info Terminated (NO_ERROR): Without reason
weatherunderground.0 2982 2021-05-08 10:06:42.601 info State value to set for "weatherunderground.0.forecastPeriod.7p.icon" has to be type "string" but received type "number"
weatherunderground.0 2982 2021-05-08 10:06:42.531 info State value to set for "weatherunderground.0.forecastPeriod.6p.icon" has to be type "string" but received type "number"
weatherunderground.0 2982 2021-05-08 10:06:42.456 info State value to set for "weatherunderground.0.forecastPeriod.5p.icon" has to be type "string" but received type "number"
weatherunderground.0 2982 2021-05-08 10:06:42.392 info State value to set for "weatherunderground.0.forecastPeriod.4p.icon" has to be type "string" but received type "number"
weatherunderground.0 2982 2021-05-08 10:06:42.325 info State value to set for "weatherunderground.0.forecastPeriod.3p.icon" has to be type "string" but received type "number"
weatherunderground.0 2982 2021-05-08 10:06:42.262 info State value to set for "weatherunderground.0.forecastPeriod.2p.icon" has to be type "string" but received type "number"
weatherunderground.0 2982 2021-05-08 10:06:42.197 info State value to set for "weatherunderground.0.forecastPeriod.1p.icon" has to be type "string" but received type "number"
weatherunderground.0 2982 2021-05-08 10:06:42.084 info State value to set for "weatherunderground.0.forecastPeriod.0p.icon" has to be type "string" but received type "number"
weatherunderground.0 2982 2021-05-08 10:06:41.127 info starting. Version 3.3.0 in /opt/iobroker/node_modules/iobroker.weatherunderground, node: v12.22.1, js-controller: 3.3.8

Fix vor object types @JS-controller 3.3.xx

Hello,

I recently updated JS-controller to 3.3 and now I am having warnings caused by wrong object types.

`

weatherunderground.0 2021-08-05 13:10:08.070 info (8732) State value to set for "weatherunderground.0.forecastHourly.35h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:08.013 info (8732) State value to set for "weatherunderground.0.forecastHourly.34h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:07.957 info (8732) State value to set for "weatherunderground.0.forecastHourly.33h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:07.903 info (8732) State value to set for "weatherunderground.0.forecastHourly.32h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:07.844 info (8732) State value to set for "weatherunderground.0.forecastHourly.31h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:07.783 info (8732) State value to set for "weatherunderground.0.forecastHourly.30h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:07.705 info (8732) State value to set for "weatherunderground.0.forecastHourly.29h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:07.630 info (8732) State value to set for "weatherunderground.0.forecastHourly.28h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:07.573 info (8732) State value to set for "weatherunderground.0.forecastHourly.27h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:07.501 info (8732) State value to set for "weatherunderground.0.forecastHourly.26h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:07.442 info (8732) State value to set for "weatherunderground.0.forecastHourly.25h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:07.384 info (8732) State value to set for "weatherunderground.0.forecastHourly.24h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:07.273 info (8732) State value to set for "weatherunderground.0.forecastHourly.23h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:06.614 info (8732) State value to set for "weatherunderground.0.forecastHourly.22h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:06.533 info (8732) State value to set for "weatherunderground.0.forecastHourly.21h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:06.408 info (8732) State value to set for "weatherunderground.0.forecastHourly.20h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:06.346 info (8732) State value to set for "weatherunderground.0.forecastHourly.19h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:06.283 info (8732) State value to set for "weatherunderground.0.forecastHourly.18h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:06.205 info (8732) State value to set for "weatherunderground.0.forecastHourly.17h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:06.147 info (8732) State value to set for "weatherunderground.0.forecastHourly.16h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:06.089 info (8732) State value to set for "weatherunderground.0.forecastHourly.15h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:06.031 info (8732) State value to set for "weatherunderground.0.forecastHourly.14h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:05.973 info (8732) State value to set for "weatherunderground.0.forecastHourly.13h.precipitation" has to be type "boolean" but received type "number"
weatherunderground.0 2021-08-05 13:10:05.905 info (8732) State value to set for "weatherunderground.0.forecastHourly.12h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:05.830 info (8732) State value to set for "weatherunderground.0.forecastHourly.11h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:05.738 info (8732) State value to set for "weatherunderground.0.forecastHourly.10h.precipitation" has to be type "boolean" but received type "number"
weatherunderground.0 2021-08-05 13:10:05.679 info (8732) State value to set for "weatherunderground.0.forecastHourly.9h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:05.614 info (8732) State value to set for "weatherunderground.0.forecastHourly.8h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:05.554 info (8732) State value to set for "weatherunderground.0.forecastHourly.7h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:05.494 info (8732) State value to set for "weatherunderground.0.forecastHourly.6h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:05.420 info (8732) State value to set for "weatherunderground.0.forecastHourly.5h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:05.325 info (8732) State value to set for "weatherunderground.0.forecastHourly.4h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:05.249 info (8732) State value to set for "weatherunderground.0.forecastHourly.3h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:05.164 info (8732) State value to set for "weatherunderground.0.forecastHourly.2h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:05.087 info (8732) State value to set for "weatherunderground.0.forecastHourly.1h.precipitation" has to be type "value.precipitation" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.924 info (8732) State value to set for "weatherunderground.0.forecast.3d.windDirectionMax" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.865 info (8732) State value to set for "weatherunderground.0.forecast.3d.icon" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.788 info (8732) State value to set for "weatherunderground.0.forecast.2d.windDirectionMax" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.713 info (8732) State value to set for "weatherunderground.0.forecast.2d.icon" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.665 info (8732) State value to set for "weatherunderground.0.forecast.1d.windDirectionMax" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.617 info (8732) State value to set for "weatherunderground.0.forecast.1d.icon" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.569 info (8732) State value to set for "weatherunderground.0.forecast.0d.windDirectionMax" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.521 info (8732) State value to set for "weatherunderground.0.forecast.0d.icon" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.485 info (8732) State value to set for "weatherunderground.0.forecastPeriod.7p.icon" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.458 info (8732) State value to set for "weatherunderground.0.forecastPeriod.6p.icon" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.431 info (8732) State value to set for "weatherunderground.0.forecastPeriod.5p.icon" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.397 info (8732) State value to set for "weatherunderground.0.forecastPeriod.4p.icon" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.368 info (8732) State value to set for "weatherunderground.0.forecastPeriod.3p.icon" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.341 info (8732) State value to set for "weatherunderground.0.forecastPeriod.2p.icon" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.315 info (8732) State value to set for "weatherunderground.0.forecastPeriod.1p.icon" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:04.287 info (8732) State value to set for "weatherunderground.0.forecastPeriod.0p.icon" has to be type "string" but received type "number"
weatherunderground.0 2021-08-05 13:10:02.272 info (8732) starting. Version 3.3.1 in /opt/iobroker/node_modules/iobroker.weatherunderground, node: v14.17.4, js-controller: 3.3.15
`

Please check ioBroker.weatherunderground with js-controller 2.0

Hi,

the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.

You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.

Please update your systems to js-controller 2.0 and check your adapter.

Please close this issue once you have checked your adapter or received successfull reports from users.

Thank you very much for your support. Please contact us in the other Threads or Forum on any question.

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/iobroker-community-adapters/ioBroker.weatherunderground

I have also found warnings that may be fixed if possible.

  • [W505] setTimeout found in "main.js", but no clearTimeout detected

Thanks,
your automatic adapter checker.

No forecast data received

I installed the adapter but only receive current weather data. Forecast data is not available.
This is the log:

host.iobroker | 2021-01-25 18:12:07.826 | info | instance system.adapter.weatherunderground.0 terminated with code 0 (NO_ERROR)
weatherunderground.0 | 2021-01-25 18:12:07.258 | info | (28637) Terminated (NO_ERROR): Without reason
weatherunderground.0 | 2021-01-25 18:12:04.751 | error | (28637) No forecast data found in response
weatherunderground.0 | 2021-01-25 18:12:04.699 | error | (28637) Wunderground reported an error: --/Error: options.uri is a required argument
weatherunderground.0 | 2021-01-25 18:12:04.696 | error | (28637) Wunderground reported an error: --/Error: options.uri is a required argument
weatherunderground.0 | 2021-01-25 18:12:02.556 | info | (28637) starting. Version 3.2.1 in /opt/iobroker/node_modules/iobroker.weatherunderground, node: v12.18.3, js-controller: 3.1.6
host.iobroker | 2021-01-25 18:12:00.029 | info | instance system.adapter.weatherunderground.0 started with pid 28637

This is my configuration file:
system.adapter.weatherunderground.0.json.txt

Some values are strings

Some values like weatherunderground.0.forecast.0d.tempMax or weatherunderground.0.forecast.0d.tempMin have the object-type "number" in the object-view but they write a string into the value.

So I have problems to write some Weatherunderground-values in another values with the declaration-type number.

Example to test:
log(typeof getState("weatherunderground.0.forecast.0d.tempMax").val);
As result you see "string" in the log.

See the discussion here:
https://forum.iobroker.net/viewtopic.php?f=21&t=16352&p=171561#p171561

No current observation data found in response

Seit 9.7 werden keine Daten mehr aktualisiert, auch mit der V3.1.1

weatherunderground.0 | 2019-07-19 11:40:03.290 | error | No current observation data found in response
-- | -- | -- | --
weatherunderground.0 | 2019-07-19 11:40:02.905 | error | no observations in response from https://api.weather.com/v3/wx/observations/current?language=de&apiKey=6532d6454b8aa370768e63d6ba5a832e&geocode=0%2C0&units=m&format=json
weatherunderground.0 | 2019-07-19 11:40:02.661 | error | The given Location can not be found. Please check on https://wunderground.com or try geo coordinates (lat,lon) or nearby cities!

Geliefert werden die Daten aber

{
  "cloudCeiling": 1400,
  "cloudCoverPhrase": "Bedeckt",
  "dayOfWeek": "Freitag",
  "dayOrNight": "D",
  "expirationTimeUtc": 1563529796,
  "iconCode": 28,
  "iconCodeExtend": 2800,
  "obsQualifierCode": null,
  "obsQualifierSeverity": null,
  "precip1Hour": 0,
  "precip6Hour": 0,
  "precip24Hour": 0,
  "pressureAltimeter": 1015.92,
  "pressureChange": 1.02,
  "pressureMeanSeaLevel": 1016.1,
  "pressureTendencyCode": 1,
  "pressureTendencyTrend": "Steigend",
  "relativeHumidity": 84,
  "snow1Hour": 0,
  "snow6Hour": 0,
  "snow24Hour": 0,
  "sunriseTimeLocal": "2019-07-19T06:02:42+0000",
  "sunriseTimeUtc": 1563516162,
  "sunsetTimeLocal": "2019-07-19T18:09:45+0000",
  "sunsetTimeUtc": 1563559785,
  "temperature": 25,
  "temperatureChange24Hour": 0,
  "temperatureDewPoint": 22,
  "temperatureFeelsLike": 25,
  "temperatureHeatIndex": 25,
  "temperatureMax24Hour": 25,
  "temperatureMaxSince7Am": 25,
  "temperatureMin24Hour": 24,
  "temperatureWindChill": 25,
  "uvDescription": "Mittel",
  "uvIndex": 4,
  "validTimeLocal": "2019-07-19T09:39:56+0000",
  "validTimeUtc": 1563529196,
  "visibility": 16.09,
  "windDirection": 200,
  "windDirectionCardinal": "SSW",
  "windGust": null,
  "windSpeed": 24,
  "wxPhraseLong": "Stark bewölkt",
  "wxPhraseMedium": null,
  "wxPhraseShort": null
}

End of Service for the Weather Underground API?

Hallo, ich wollte den Plugin benutzen und bin darüber gestolpert das es keine freien API Keys mehr gibt. Also habe ich ein wenig tiefer gegraben und bin über folgende Nachricht gestoßen. So scheint es mir das man diesen Plugin wohl in Zukunft nicht mehr verwenden kann? Vielleicht sollte man das in der README mit vermerken?

Error's in version 1.1 with custom Icon URL link

When i leave the custom URL empty i get:

`weatherunderground.0 2017-10-30 22:43:01.720 error at emitNone (events.js:91:20)
weatherunderground.0 2017-10-30 22:43:01.720 error at IncomingMessage.g (events.js:292:16)
weatherunderground.0 2017-10-30 22:43:01.720 error at IncomingMessage. (/opt/iobroker/node_modules/request/request.js:1085:12)
weatherunderground.0 2017-10-30 22:43:01.720 error at Request.emit (events.js:188:7)
weatherunderground.0 2017-10-30 22:43:01.720 error at emitOne (events.js:96:13)
weatherunderground.0 2017-10-30 22:43:01.720 error at Request. (/opt/iobroker/node_modules/request/request.js:1163:10)
weatherunderground.0 2017-10-30 22:43:01.720 error at Request.emit (events.js:191:7)
weatherunderground.0 2017-10-30 22:43:01.720 error at emitTwo (events.js:106:13)
weatherunderground.0 2017-10-30 22:43:01.720 error at Request.self.callback (/opt/iobroker/node_modules/request/request.js:186:22)
weatherunderground.0 2017-10-30 22:43:01.720 error at Request._callback (/opt/iobroker/node_modules/iobroker.weatherunderground/weatherunderground.js:336:91)
weatherunderground.0 2017-10-30 22:43:01.720 error TypeError: Cannot read property 'type' of undefined
weatherunderground.0 2017-10-30 22:43:01.720 error uncaught exception: Cannot read property 'type' of undefined
weatherunderground.0 2017-10-30 22:43:01.710 error Could not parse Conditions-Data: TypeError: original.sustring is not a function
weatherunderground.0 2017-10-30 22:43:01.491 error exception in : body.simpleforecastTypeError: original.sustring is not a function
weatherunderground.0 2017-10-30 22:43:01.491 error exception in : body.simpleforecastTypeError: original.sustring is not a function
weatherunderground.0 2017-10-30 22:43:01.490 error exception in : body.simpleforecastTypeError: original.sustring is not a function
weatherunderground.0 2017-10-30 22:43:01.490 error exception in : body.simpleforecastTypeError: original.sustring is not a function
weatherunderground.0 2017-10-30 22:43:01.489 error exception in : body.txt_forecastTypeError: original.sustring is not a function
weatherunderground.0 2017-10-30 22:43:01.488 error exception in : body.txt_forecastTypeError: original.sustring is not a function
weatherunderground.0 2017-10-30 22:43:01.488 error exception in : body.txt_forecastTypeError: original.sustring is not a function
weatherunderground.0 2017-10-30 22:43:01.488 error exception in : body.txt_forecastTypeError: original.sustring is not a function
weatherunderground.0 2017-10-30 22:43:01.487 error exception in : body.txt_forecastTypeError: original.sustring is not a function
weatherunderground.0 2017-10-30 22:43:01.486 error exception in : body.txt_forecastTypeError: original.sustring is not a function
weatherunderground.0 2017-10-30 22:43:01.485 error exception in : body.txt_forecastTypeError: original.sustring is not a function
weatherunderground.0 2017-10-30 22:43:01.481 error exception in : body.txt_forecastTypeError: original.sustring is not a function`

Value filled with "https://icons.wxug.com/i/c/f/" results in:
`

host.HomeControl 2017-10-30 22:49:21.596 info stopInstance canceled schedule system.adapter.weatherunderground.0
host.HomeControl 2017-10-30 22:49:21.594 info stopInstance system.adapter.weatherunderground.0
host.HomeControl 2017-10-30 22:49:21.593 info object change system.adapter.weatherunderground.0
host.HomeControl 2017-10-30 22:49:02.074 info instance system.adapter.weatherunderground.0 terminated with code 0 (OK)
weatherunderground.0 2017-10-30 22:49:02.050 info terminating
weatherunderground.0 2017-10-30 22:49:01.531 error at emitNone (events.js:91:20)
weatherunderground.0 2017-10-30 22:49:01.531 error at IncomingMessage.g (events.js:292:16)
weatherunderground.0 2017-10-30 22:49:01.531 error at IncomingMessage. (/opt/iobroker/node_modules/request/request.js:1085:12)
weatherunderground.0 2017-10-30 22:49:01.531 error at Request.emit (events.js:188:7)
weatherunderground.0 2017-10-30 22:49:01.531 error at emitOne (events.js:96:13)
weatherunderground.0 2017-10-30 22:49:01.531 error at Request. (/opt/iobroker/node_modules/request/request.js:1163:10)
weatherunderground.0 2017-10-30 22:49:01.531 error at Request.emit (events.js:191:7)
weatherunderground.0 2017-10-30 22:49:01.531 error at emitTwo (events.js:106:13)
weatherunderground.0 2017-10-30 22:49:01.531 error at Request.self.callback (/opt/iobroker/node_modules/request/request.js:186:22)
weatherunderground.0 2017-10-30 22:49:01.531 error at Request._callback (/opt/iobroker/node_modules/iobroker.weatherunderground/weatherunderground.js:336:91)
weatherunderground.0 2017-10-30 22:49:01.531 error TypeError: Cannot read property 'type' of undefined
weatherunderground.0 2017-10-30 22:49:01.531 error uncaught exception: Cannot read property 'type' of undefined
weatherunderground.0 2017-10-30 22:49:01.520 error Could not parse Conditions-Data: TypeError: original.sustring is not a function

`

Please check ioBroker.weatherunderground with js-controller 2.0

Hi,

the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.

You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.

Please update your systems to js-controller 2.0 and check your adapter.

Please close this issue once you have checked your adapter or received successfull reports from users.

Thank you very much for your support. Please contact us in the other Threads or Forum on any question.

.idea

Willst du nicht das vom github rausnehmen?

Js-Controller 3.2.x

geh mal davon aus, das es ebenfalls mit dem Js-Controller zusammen hängt, Adapter Version 3.2.5
`

weatherunderground.0 2021-01-16 19:00:15.742 error (351) Cannot read property 'setState' of null
weatherunderground.0 2021-01-16 19:00:15.742 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
weatherunderground.0 2021-01-16 19:00:15.742 error at runMicrotasks ()
weatherunderground.0 2021-01-16 19:00:15.742 error at Adapter.setState (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:6016:35)
weatherunderground.0 2021-01-16 19:00:15.742 error (351) TypeError: Cannot read property 'setState' of null
weatherunderground.0 2021-01-16 19:00:15.741 error (351) unhandled promise rejection: Cannot read property 'setState' of null
weatherunderground.0 2021-01-16 19:00:15.741 error (351) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
weatherunderground.0 2021-01-16 19:00:15.740 error (351) Cannot read property 'setState' of null
weatherunderground.0 2021-01-16 19:00:15.740 error at processTicksAndRejections (internal/process/task_queues.js:97:5)
weatherunderground.0 2021-01-16 19:00:15.740 error at runMicrotasks ()
weatherunderground.0 2021-01-16 19:00:15.740 error at Adapter.setState (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:6016:35)

`

Compatibility check to js-controller 3.3 and Admin5 React UI

Dear Adapter developer,

with js-controller 3.2 and js-controller 3.3 some additional checks were added to make sure that created objects match to the specifications and also written state values match to the object definition.

If something is not correct this is logged as 'warning' or 'info' log.

Please take the time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn log there from these checks please adjust the adapter and fix the relevant cases.

For questions please refer to ioBroker/ioBroker.js-controller#1301

Additionally we are preparing Admin 5 which will have a completely rewritten UI. Please install Admin 5, activate that new UI and verify that the configuration of you adapter works as expected also there.

More informations on Admin 5 can be found in Forum https://forum.iobroker.net/topic/44282/test-adapter-admin-5-0-x-alpha-der-neuen-ui

Please close the issue after you checked it.

Thank you very much for your support!

Removing 'Api key' setting does not delete it

I created an API key and PWS device on wunderground.com, thinking that key would be useful and maybe I could upload observations from our devices. Sadly the latter is not possible though (see #59).

Never mind, I still want to obtain forecasts so I keep the adapter running. However, with the API key I entered in place the following error occurs:

2020-03-20 19:12:10.579  - error: weatherunderground.0 (18240) no observations in response from https://api.weather.com/v3/wx/observations/current?apiKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&geocode=0%2C0&units=m&language=en&format=json

I guess that because I haven't submitted observations from the newly created station this might be broken on the WU end. Or it could be an issue elsewhere, who knows?

Anyhow, I see under the API key the instructions are, "Optionally enter your own NEW PWS owner apikey from Weatherunderground, leave empty if you do not have one
If left empty the current general key is tried to extract from WU webpage"

So I removed the key and tried again. The API key setting is empty when I reload configuration page but the error above does not change. In fact, the URL is the same. It is still using the old key even though I removed it in configuration settings.

So I deleted the entire weatherunderground.0 object tree as I notice the URL is stored there, thinking it would be regenerated.

True, the tree and URL were re-generated but with the old API still. Where is this coming from?

I even tried changing the key to 'xxx' but it magically found the old one still!

If co-ordinates are used in 'Location' configuration omit country code when fetching keys

I note after the location change detected, extract URLs message a URL similar to the below is being fetched from WU:

https://www.wunderground.com/hourly/FR/xxxxxxxx

Where FR is the country code entered on the configuration page and xxxxxxxx is the content of the location field.

If the location contains GPS co-ordinates though, the above request from WU will return an error.

In fact, in the case that co-ordinates are entered one must omit the country code in order to receive a valid response, ie:

https://www.wunderground.com/hourly/xx.xxx%2Cxx.xxx

".png" missing in Icon URL

I'm having the issue, that there is in some icon url the part with ".png " is missing. Because of that, there is no picure showing up in vis...

Url from 0d:
/vis.0/Wettericons/WU png/28.png

Url from 2d:
/vis.0/Wettericons/WU png/5

Why is there the ".png" missing? (not only within 2d - also on other days...)

  • Easy way to fix it? - tried already, but could not find it. (did not go ito scripts etc)

Regards Matt

Forecast wird nicht mit Werten gefüllt

I started using this Adapter and the "current" values will be filled in and updated correctly.
Bit the "forcast" values are all created but empty.

Switch output to "debug" brings no additional informations

[Feature] upload of PWS 'current conditions' data to Weather Underground

Weather Underground is a two-way community where users can submit weather readings from their station to the community.

At present this adapter only allows download from other users observations and forecasts but I think it would be useful to perform uploads too.

User case:

We have temperature & humidity sensors at our house. While not a full weather station, it could still be useful to send these readings to Weather Underground. At some point we may add pressure & wind sensors and those would certainly be useful.

These observations actually come from other devices connected to ioBroker so the values appear in the object tree. A configuration page to define mapping of which observations (temperature, humidity, windspeed, etc) can be found in which objects would be required.

Compatibility check and testing for Node.js 14 and 16

Dear Adapter develop,

Node.js 14 is now available for a year and Node.js 16 was release just some days ago and will become LTS by October 2021. We plan to update the ioBroker Node.js recommendation (currently 12.x) to 14.x later this year.

Please check your adapter with Node.js 14 especially, and ideally also directly with Node.js 16

Please add both versions to the adapter testing which is executed on commits.

If your adapter requires a certain minimum version of Node.js please set the 'engine' setting in package.json accordingly! Please also do this if the adapter is not able to work in certain Node.js versions, so that ioBroker can prevent users from installing te adapter if not compatible!

On questions please talk to us at ioBroker/ioBroker.js-controller#1138

Please close the issue after you checked it.

Thank you very much for your support!

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/dschaedl/ioBroker.weatherunderground

I have also found warnings that may be fixed if possible.

  • [W113] Adapter should support compact mode

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

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.