Code Monkey home page Code Monkey logo

iobroker.sainlogic's Introduction

Logo

ioBroker.sainlogic

NPM version Downloads Number of Installations (latest) Number of Installations (stable) Dependency Status Known Vulnerabilities

NPM

sainlogic adapter for ioBroker

Read data from a sainlogic based weather station

Supported devices

Basically any device working with the sainlogic hardware, the firmware usually reports as 'EasyWeather Vx.x.x)'.

Known working devices:

  1. ELV WS980Wifi
  2. Eurochron EFWS2900 (Listener mode only)
  3. Froggit WH400SE
  4. Froggit DP1500 (Ecowitt protocol only)
  5. Sainlogic WS3500 (Listener mode only)
  6. WH51 Moisture sensor
  7. Ecowitt GW1000
  8. Froggit WH3000SE (Listener mode only)

Usage

The adapter supports two modes to show data of your weather station.

In Listener mode the adapter does support additional sensor if delivered from your weather station. Currently supported are temperature and humidity. If you have another additional sensor please raise a github issue and post your data string as this helps me to extend the functionality.

Listener mode:

With latest firmware releases the weather station supports sending data to a custom server. The adapter will act as such a server. The setup needs two steps:

Configure Weather station

Use the 'WS View'app on your mobile device to configure the weatherstation. Configure the following settings for customized server settings:

  • Server: IP/Hostname of your IOBroker server
  • Path: anything, just remember it for the adapter configuration Note: on some stations it has been proven success to add a question mark at the end of the path. Some others work without it. Best is to try both.
  • Port: any number between 1024 and 65000 (default is 45000), needs to be unique and free on your IOBroker system
  • Station ID: not used Note: some station still require any value to be set
  • Station Key: not used Note: some station still require any value to be set
  • Protocol Type: WeatherUnderground
  • Upload Interval: anyting supported by your weather station

Configure the Listener

In the instance configuration choose the tab 'Listener' and set the following:

  • Active: true
  • IP: choose the IP of your IOBroker which the weatherstation will be able to connect to (default is 0.0.0.0 to allow all IPs), this is mainly relevant if you have multiple networks, otherwise the default will do
  • Port: Enter the same port as in the WS View app
  • Path: Enter the same path as in the WS View app
  • Forward URL: If you want to forward the received data to another consumer you can specify an additional adress. E.g. you may receive data in WU format and still want to forward this to WeatherUnderground.

Save. The listener will start and wait on incoming connections. Based on your interval you should see in the log a message ' Listener received update: ...' with the data.

Scheduler mode:

If your weather station supports pulling for data you can configure the scheduler to do so. The protocol used is based on WS980 documentation.

Configure the scheduler

In the instance configuration choose the tab 'Scheduler' and set the following:

  • Active: true
  • IP: choose the IP of your weather station, you should make sure that the IP is fixed and does not change
  • Port: Enter the port to connect to (default is 45000)
  • Interval: Enter an interval in seconds (I would recommend at minimum 10 seconds to not overload the system or network)

Save.

The schheduler will start and connect to the weather station after the first interval time. You should see message in the log like 'Scheduler pulling for new data'. If you set the log mode to debug you will also see the data strings received.

Station specific infos

Froggit DP1500

It seems this station does not send any data when WeatherUnderground is selected as protocol. It works correctly with Ecowitt.

Eurochron EFWS290

Station does not answer to scheduler commands, so only listener mode is supported.

Sainlogic WS3500

Station does not answer to scheduler commands, so only listener mode is supported.

Changelog

Latest version

0.10.5 Bugfix for state initialization, removed log messages for forwarding

0.10.4 Bugfix for lightning count, new battery states for additional sensors

0.10.3 Bugfixes

0.10.2 Bugfixes

0.10.0 Added new sensors for Lightning, Piezo elements, DP250 and minor fixes

0.8.2 Updated UVRaw to maxvalue 4000

0.8.1 Bugfix for timestamp and listener

0.8.0 Added time stamps for daily min and max values

0.7.3 Dependency updates and Travis testing updates

0.7.2 Dependency updates for security vulnerabilities

0.7.1 Fix Soilbatt mapping

0.7.0 Support for Soil Moisture devices like attached to DP1500

0.6.6 Adressed github issue #53 - warning on non existing object

0.6.5 Removed unneeded events

0.6.4 For WH2650: Adding model name and weather station communication frequency datapoint

0.6.3 Fixed outdoor humidity

0.6.2 Added additional sensor support

For detailed change log or previous versions check io-package.json

Credits

Credits go to: lemuba, StrathCole, Glasfaser, Latzi: for relentless testing of my bugs :) Lisa for her code to translate wind degrees in a heading

License

MIT License

Copyright (c) 2023 Fogg [email protected]

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.sainlogic's People

Contributors

adx-git avatar apollon77 avatar dependabot[bot] avatar elek76 avatar paul53 avatar phifogg avatar

Stargazers

 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

iobroker.sainlogic's Issues

Forward Feature of received data

Wäre es vielleicht noch eine Idee, dass Du noch eine Weiterleitungsmöglichkeit der Rohdaten an einen zweiten (und ggf. dritten) Port und IP Adresse mit aufnimmst? Bin darüber auch gerade mit Oliver von Foshkplugin zugange, bekomme von Ihm seine 0.6 Beta zugesandt - diese hat dann diverse Weiterleitungsmöglichkeiten. Mein Workflow würde dann erstmal so aussehen:

WS-View: Custom Server Einstellung/Ecowitt Protokoll:

-> Eingang ins Foshkplugin, Umrechnung der Werte in Metrisch, aber auch Berechnungen/Zusätzliche Datenpunkte wie Hitzeindex, Luftdrucktendenz, etc.

Ausgang/Weiterleitung durch das Generic Foshkplugin:

a) In den Iobroker, erledige ich noch über Node-Red
b) Weewx, hatte ich gerade eingerichtet
c) Was immer mir noch einfällt

Durch eine Weiterleitungmöglichkeit Deines Adapters, der in WS-View eingestellten Custom Server Einstellung, hätte man dann auch die Möglichkeit, weitere Wetterapps entsprechend ohne zusätzlichen DP-1500 Wetterdongle zu füttern...

https://www.wxforum.net/index.php?topic=39559.0

https://www.loxforum.com/forum/projektforen/loxberry/plugins/222662-loxberry-plugin-foshkplugin-wettergateway-froggit-dp1500-ecowitt-gw1000-anbinden?p=251128#post251128

Add Integration Test to pipeline

For Testing: You should at least also run the "Integration" tests in CI to see that adapter can start. If you like you can add more testing like simulation http calls, but thats optional.

Log-Eintrag mit js-Controller 3.3.x

Nach Update des js-Controllers wird nachfolgendes im Log angezeigt.


sainlogic.0 | 2021-04-30 21:29:37.154 | warn | (6166) State value to set for "sainlogic.0.weather.current.uvi" has wrong type "string" but has to be "number"
-- | -- | -- | --
sainlogic.0 | 2021-04-30 21:29:37.154 | warn | (6166) State value to set for "sainlogic.0.weather.current.winddir" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 21:29:37.153 | warn | (6166) State value to set for "sainlogic.0.weather.current.outdoorhumidity" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 21:29:37.153 | warn | (6166) State value to set for "sainlogic.0.weather.current.indoorhumidity" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 21:29:37.141 | warn | (6166) State "sainlogic.0.info.last_listener_update" has no existing object, this might lead to an error in future versions
sainlogic.0 | 2021-04-30 19:28:36.125 | warn | (6166) State value to set for "sainlogic.0.weather.current.uvi" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 19:28:36.124 | warn | (6166) State value to set for "sainlogic.0.weather.current.winddir" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 19:28:36.124 | warn | (6166) State value to set for "sainlogic.0.weather.current.outdoorhumidity" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 19:28:36.123 | warn | (6166) State value to set for "sainlogic.0.weather.current.indoorhumidity" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 19:28:36.121 | warn | (6166) State "sainlogic.0.info.last_listener_update" has no existing object, this might lead to an error in future versions
sainlogic.0 | 2021-04-30 19:27:35.128 | warn | (6166) State value to set for "sainlogic.0.weather.current.uvi" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 19:27:35.128 | warn | (6166) State value to set for "sainlogic.0.weather.current.winddir" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 19:27:35.127 | warn | (6166) State value to set for "sainlogic.0.weather.current.outdoorhumidity" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 19:27:35.126 | warn | (6166) State value to set for "sainlogic.0.weather.current.indoorhumidity" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 19:27:35.122 | warn | (6166) State "sainlogic.0.info.last_listener_update" has no existing object, this might lead to an error in future versions
sainlogic.0 | 2021-04-30 19:26:34.171 | warn | (6166) State value to set for "sainlogic.0.weather.current.uvi" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 19:26:34.170 | warn | (6166) State value to set for "sainlogic.0.weather.current.winddir" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 19:26:34.170 | warn | (6166) State value to set for "sainlogic.0.weather.current.outdoorhumidity" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 19:26:34.170 | warn | (6166) State value to set for "sainlogic.0.weather.current.indoorhumidity" has wrong type "string" but has to be "number"
sainlogic.0 | 2021-04-30 19:26:34.167 | warn | (6166) State "sainlogic.0.info.last_listener_update" has no existing object, this might lead to an error in future versions


Compatibility check and testing for Node.js 14 and 16

Dear Adapter developer,

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!

Installation funktioniert nicht

Hallo!
Ich habe gerade versucht die github version zu installieren. Keine Reaktion...
Hab dann den npm install über beliebige Quellen versucht. Wenigsten eine Reaktion mit abbruch. Das sagt das Log:

host.iobroker1 2020-07-03 16:11:56.651 error iobroker host.iobroker1 Cannot install https://www.npmjs.com/package/iobroker.sainlogic: 1
host.iobroker1 2020-07-03 16:11:56.636 info iobroker npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2020-07-03T14_11_56_622Z-debug.log
host.iobroker1 2020-07-03 16:11:56.620 info iobroker npm ERR! package.json Non-registry package missing package.json: https://www.npmjs.com/package/iobroker.sainlogic.npm ERR! package.json npm can't find a package.json file in your current dir
host.iobroker1 2020-07-03 16:11:56.619 info iobroker npm ERR! code ENOPACKAGEJSON

node: v10.16.3, js-controller: 3.1.6

Was mache ich falsch?
Groß
Lothar

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!

Sensor availability

I have the GW1000 Gateway and 8 Moisture sensors.
The datapoints of all 8 sensors get updated every ~60 seconds.
It seems like they get updated even if they have no actual connection to the gateway. (e.g. out of battery, out of range,..)

Is there any information about the connection between the sensors and the gateway?

compact mode not supported

Hi enabling compact mode on your adapter is failing.
command i used:
iobroker compact sainlogic.0 enable

Kind regards
Holger

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/phifogg/ioBroker.sainlogic

  • [E606] Current adapter version 0.11.1 not found in README.md

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

  • [W171] "common.title" is deprecated in io-package.json
  • [W105] "common.titleLang" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W109] "common.desc" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W156] Adapter should support admin 5 UI (jsonConfig) if you do not use a React based UI
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • [W202] Version of package.json (0.11.1) doesn't match latest version on NPM (0.10.5)
  • [W513] "gulpfile.js" found in repo! Think about migrating to @iobroker/adapter-dev package

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

adapter installation without weather station

At first I had problems with the installation of the Sainlogic adapter. It wasn't until I installed via GITHUB that the installation succeeded. I haven't bought a weather station yet. First I wanted to see if the adapter installation worked. It is unusual for the adapter not to show up in the instances. The adapter appears in the objects. Is this behavior normal for this adapter?

Iobroker objects will not be updated after update to 0.8.0

Hi,
I have installed the sainlogic adapter a few days ago in combination with my weather station running the FW WH2650A_V1.6.8. All was woriking and i smoothly got all the values.

Today i updated the sainlogic adapter to 0.8.0, and after that the objects will no longer be updated, even if i got valid data from the weather station:

2022-01-13 14:50:29.526 - debug: sainlogic.0 (5150) Listener received WU update: {"ID":"123","PASSWORD":"12345","tempf":"69.3","humidity":"32","dewptf":"38.1","windchillf":"69.3","winddir":"83","windspeedmph":"0.00","windgustmph":"0.00","rainin":"0.000","dailyrainin":"0.031","weeklyrainin":"0.031","monthlyrainin":"0.031","yearlyrainin":"0.031","solarradiation":"0.00","UV":"0","indoortempf":"70.0","indoorhumidity":"33","baromin":"30.499","lowbatt":"0","dateutc":"now","softwaretype":"WH2650A_V1.6.8","action":"updateraw","realtime":"1","rtfreq":"5"} 2022-01-13 14:50:29.529 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(ID) 2022-01-13 14:50:29.531 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(PASSWORD) 2022-01-13 14:50:29.532 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(tempf) 2022-01-13 14:50:29.533 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(humidity) 2022-01-13 14:50:29.535 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(dewptf) 2022-01-13 14:50:29.536 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(windchillf) 2022-01-13 14:50:29.537 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(winddir) 2022-01-13 14:50:29.538 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(windspeedmph) 2022-01-13 14:50:29.539 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(windgustmph) 2022-01-13 14:50:29.541 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(rainin) 2022-01-13 14:50:29.542 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(dailyrainin) 2022-01-13 14:50:29.543 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(weeklyrainin) 2022-01-13 14:50:29.544 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(monthlyrainin) 2022-01-13 14:50:29.551 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(yearlyrainin) 2022-01-13 14:50:29.553 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(solarradiation) 2022-01-13 14:50:29.557 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(UV) 2022-01-13 14:50:29.559 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(indoortempf) 2022-01-13 14:50:29.560 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(indoorhumidity) 2022-01-13 14:50:29.562 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(baromin) 2022-01-13 14:50:29.563 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(lowbatt) 2022-01-13 14:50:29.564 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(dateutc) 2022-01-13 14:50:29.566 - debug: sainlogic.0 (5150) Extracting value for info.softwaretype(softwaretype) 2022-01-13 14:50:29.567 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(action) 2022-01-13 14:50:29.569 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(realtime) 2022-01-13 14:50:29.571 - debug: sainlogic.0 (5150) Extracting value for weather.maxvalues.daily.UVraw_time(rtfreq) 2022-01-13 14:50:29.572 - debug: sainlogic.0 (5150) Extracting value for info.last_listener_update(last_listener_update) 2022-01-13 14:50:29.574 - debug: sainlogic.0 (5150) Setting value from data for weather.maxvalues.daily.UVraw_time to 5 2022-01-13 14:50:29.575 - debug: sainlogic.0 (5150) Setting value from data for info.softwaretype to WH2650A_V1.6.8 2022-01-13 14:50:29.576 - debug: sainlogic.0 (5150) Setting value from data for info.last_listener_update to {"ID":"123","PASSWORD":"12345","tempf":"69.3","humidity":"32","dewptf":"38.1","windchillf":"69.3","winddir":"83","windspeedmph":"0.00","windgustmph":"0.00","rainin":"0.000","dailyrainin":"0.031","weeklyrainin":"0.031","monthlyrainin":"0.031","yearlyrainin":"0.031","solarradiation":"0.00","UV":"0","indoortempf":"70.0","indoorhumidity":"33","baromin":"30.499","lowbatt":"0","dateutc":"now","softwaretype":"WH2650A_V1.6.8","action":"updateraw","realtime":"1","rtfreq":"5"}

Only objects are up to date are the the "Info" section:
image

Best Regards,
Stefan

Support for Eurochron EFWS2900

Hi Daniel!

Anbei die Daten des traffic für die Wetterstation, mein Handy hat die IP 10.0.0.26, die Wetterstation 10.0.0.35. Man erkennt gut die Kommunikation mit meinem Raspi (10.0.0.210) und WU. Ich hab im WS View den custom port editiert (Leerzeichen dazu und wieder weg); also keine Änderung. Die angehängte Datei hab ich um ".txt" erweitert, damit der upload klappt.
Ich bin gespannt, ob du was rausfindest!

Vielen Dank für deine Mühe!

LG Latzi
Wetterstation_Traffic.pcap.txt

Compatibility check to js-controller 4.0

Dear Adapter developer,

with js-controller 4.0 object definitions are now also checked that min/max in only provided for number/mixed objects and that the type of the default value matches to the object type.

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

Please also make sure to update to the lastest @iobroker/testing dependency 2.5.4 or to accept the PR from Apollon77 for legacy testing!

Please spent some 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 or info log there from these checks please adjust the adapter and fix the relevant cases.

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

Please close the issue after you checked it.

Thank you very much for your support to get the best experience for the growing numbers of ioBroker users!

Fehlende Werte bei Sainlogic WS 3500

Hallo,
ich lese mit dem Adapter meine Sainlogic WS 3500 aus. Das klappt soweit auch alles super, leider werden 4 Werte nicht ausgelesen:

UVraw
dewpointtemp
windchilltemp
solarradiation

Bei den ersten 3 dieser Werte steht nur (null) gefolgt von der Einheit. Bei solarradiation steht immer 0 lx. Die Einheit ist hier aber eigentlich w/m².

Die fehlenden Werte werden von der WS 3500 geliefert und auch im weatherunderground-Adapter angezeigt. Ebenso bei Ecowitt und in der App.

Ich würde aber gerne den Sainlogic-Adapter nutzen, weil beim weatherunderground-Adapter andere Werte fehlen.

Ist das bekannt, dass diese Werte nicht ausgelesen werden oder liegt das Problem eher auf meiner Seite?

Verwendeter Adapter ist 0.73
javascript: 3.3.22

Viele Grüße
Sneaker

Sainlogic WS3500 - Listener - WU - illegal Request

I set everything by the howto.
My Sainlogic WS3500 reaches ioBroker, but the arriving Data is not excepted:

(5457) Listener received illegal request: /weatherstation/updateweatherstation.php?ID=Wittekindstr1&PASSWORD=123qwe&indoortempf=77.9&tempf=73.9&dewptf=37.9&windchillf=73.9&indoorhumidity=33&humidity=2

Everything is up-to-date.

Translations

Currently the adapter is maintained in German and English by myself. Other languages would be a benefit.

Raise your voice if you want to support translating it.

Adapter (Version 0.6.6) läuft bei mir jetzt auch, aber es kommen keine Werte an.

Hallo,

der Adapter starte nun ohne Fehlermeldung, jedoch kommen auch nach längerem warten keine Fehler an:
Ich kann aber auf dem Raspi das Verzeichnis /weatherstation/updateweatherstation.php nicht finden. Muss dies von Hand angelegt werden bzw. sollte diese im Stammverzeichnis oder unter /iobroker.sainlogic/ sein?

       
sainlogic.0 2021-03-14 17:42:01.449 info (11541) Starting Listener
sainlogic.0 2021-03-14 17:42:01.448 debug (11541) Forward URL:
sainlogic.0 2021-03-14 17:42:01.448 debug (11541) Listener protocol: wunderground
sainlogic.0 2021-03-14 17:42:01.448 debug (11541) Listener path: /weatherstation/updateweatherstation.php
sainlogic.0 2021-03-14 17:42:01.447 debug (11541) Listener port: 45000
sainlogic.0 2021-03-14 17:42:01.446 debug (11541) Listener IP: 0.0.0.0
sainlogic.0 2021-03-14 17:42:01.413 info (11541) starting. Version 0.6.6 in /opt/iobroker/node_modules/iobroker.sainlogic, node: v12.20.2, js-controller: 3.2.16
sainlogic.0 2021-03-14 17:42:01.103 debug (11541) statesDB connected
sainlogic.0 2021-03-14 17:42:01.102 debug (11541) States connected to redis: 127.0.0.1:9000
sainlogic.0 2021-03-14 17:42:01.093 debug (11541) States create User PubSub Client
sainlogic.0 2021-03-14 17:42:01.092 debug (11541) States create System PubSub Client
sainlogic.0 2021-03-14 17:42:01.083 debug (11541) Redis States: Use Redis connection: 127.0.0.1:9000
sainlogic.0 2021-03-14 17:42:01.080 debug (11541) objectDB connected
sainlogic.0 2021-03-14 17:42:01.071 debug (11541) Objects connected to redis: 127.0.0.1:9001
sainlogic.0 2021-03-14 17:42:01.047 debug (11541) Objects client initialize lua scripts
sainlogic.0 2021-03-14 17:42:01.045 debug (11541) Objects create User PubSub Client
sainlogic.0 2021-03-14 17:42:01.044 debug (11541) Objects create System PubSub Client
sainlogic.0 2021-03-14 17:42:01.041 debug (11541) Objects client ready ... initialize now
sainlogic.0 2021-03-14 17:42:00.998 debug (11541) Redis Objects: Use Redis connection: 127.0.0.1:9001
host.raspberrypi 2021-03-14 17:41:59.781 info instance system.adapter.sainlogic.0 started with pid 11541
sainlogic.0 2021-03-14 17:42:01.449 info (11541) Starting Listener
sainlogic.0 2021-03-14 17:42:01.448 debug (11541) Forward URL:
sainlogic.0 2021-03-14 17:42:01.448 debug (11541) Listener protocol: wunderground
sainlogic.0 2021-03-14 17:42:01.448 debug (11541) Listener path: /weatherstation/updateweatherstation.php
sainlogic.0 2021-03-14 17:42:01.447 debug (11541) Listener port: 45000
sainlogic.0 2021-03-14 17:42:01.446 debug (11541) Listener IP: 0.0.0.0
sainlogic.0 2021-03-14 17:42:01.413 info (11541) starting. Version 0.6.6 in /opt/iobroker/node_modules/iobroker.sainlogic, node: v12.20.2, js-controller: 3.2.16

Der Datentransfer zu Wunderground funktioniert!

Gruß
Franz

Unkown command 84 subcommand 49

Just installed sainlogic adapter v0.7.3.

The weatherstation is a WH4000SE

Following error appears in iobroker:

Scheduler connected to weather station run 255,255,11,0,6,4,4,25

sainlogic.0 | 2021-11-25 10:42:57.167 | error | Scheduler received data for unkown command 84 subcommand 49
sainlogic.0 | 2021-11-25 10:42:57.167 | debug | Data Command received: 84 subcommand 49
sainlogic.0 | 2021-11-25 10:42:57.167 | debug | FW Scheduler Received data string: 485454502f312e31203430302042616420526571756573740d0a436f6e6e656374696f6e3a20636c6f73650d0a0d0a

Also support Foggit WH3000?

My Weatherstation Foggit WH3000 lao has the port 45000 open and Sso I tried the adapter :-)

Result is that he can read out the software but is not reading more:-( Any chance to?

Debug Log:

2020-06-20 21:43:18.692  - info: sainlogic.0 (9208) starting. Version 0.6.2 in /opt/iobroker/node_modules/iobroker.sainlogic, node: v14.4.0, js-controller: 3.1.4
2020-06-20 21:43:18.708  - info: sainlogic.0 (9208) Starting Scheduler
2020-06-20 21:43:18.709  - info: sainlogic.0 (9208) Scheduler call ws_getfirmware activated
2020-06-20 21:43:18.709  - info: sainlogic.0 (9208) Scheduler call ws_getcurrent activated
2020-06-20 21:43:18.709  - info: sainlogic.0 (9208) Scheduler call ws_getmax activated
2020-06-20 21:43:18.709  - info: sainlogic.0 (9208) Scheduler call ws_getmin activated
2020-06-20 21:43:18.709  - info: sainlogic.0 (9208) Scheduler call ws_getmaxdaily activated
2020-06-20 21:43:18.710  - info: sainlogic.0 (9208) Scheduler call ws_getmindaily activated
2020-06-20 21:43:18.710  - debug: sainlogic.0 (9208) Weatherstation IP: 192.168.178.58
2020-06-20 21:43:18.710  - debug: sainlogic.0 (9208) Weatherstation port: 45000
2020-06-20 21:43:18.710  - debug: sainlogic.0 (9208) Scheduler Interval: 15


2020-06-20 21:43:33.711  - info: sainlogic.0 (9208) Scheduler pulling for new data
2020-06-20 21:43:33.736  - debug: sainlogic.0 (9208) Scheduler connected to weather station run 255,255,80,3,83
2020-06-20 21:43:33.743  - debug: sainlogic.0 (9208) FW Scheduler Received data string: ffff501511456173795765617468657256312e312e34
2020-06-20 21:43:33.743  - debug: sainlogic.0 (9208) Data Command received: 80 subcommand 69
2020-06-20 21:43:33.744  - debug: sainlogic.0 (9208) Data object: {"softwaretype":"EasyWeatherV1.1.4"}
2020-06-20 21:43:33.744  - info: sainlogic.0 (9208) Scheduler updating IOBroker states
2020-06-20 21:43:33.745  - debug: sainlogic.0 (9208) Setting value from data for info.softwaretype to EasyWeatherV1.1.4
2020-06-20 21:43:33.746  - debug: sainlogic.0 (9208) Scheduler connected to weather station run 255,255,11,0,6,4,4,25


2020-06-20 21:43:48.711  - info: sainlogic.0 (9208) Scheduler pulling for new data
2020-06-20 21:43:48.711  - debug: sainlogic.0 (9208) Scheduler connected to weather station run 255,255,80,3,83
2020-06-20 21:43:48.722  - debug: sainlogic.0 (9208) FW Scheduler Received data string: ffff501511456173795765617468657256312e312e34
2020-06-20 21:43:48.722  - debug: sainlogic.0 (9208) Data Command received: 80 subcommand 69
2020-06-20 21:43:48.722  - debug: sainlogic.0 (9208) Data object: {"softwaretype":"EasyWeatherV1.1.4"}
2020-06-20 21:43:48.722  - info: sainlogic.0 (9208) Scheduler updating IOBroker states
2020-06-20 21:43:48.723  - debug: sainlogic.0 (9208) Setting value from data for info.softwaretype to EasyWeatherV1.1.4
2020-06-20 21:43:48.723  - debug: sainlogic.0 (9208) Scheduler connected to weather station run 255,255,11,0,6,4,4,25


2020-06-20 21:44:03.711  - info: sainlogic.0 (9208) Scheduler pulling for new data
2020-06-20 21:44:03.712  - error: sainlogic.0 (9208) Connection error on 192.168.178.58:45000: Error: connect EISCONN 192.168.178.58:45000 - Local (192.168.178.79:46968)
2020-06-20 21:44:03.713  - debug: sainlogic.0 (9208) FW Scheduler Connection closed


2020-06-20 21:44:18.711  - info: sainlogic.0 (9208) Scheduler pulling for new data
2020-06-20 21:44:18.721  - debug: sainlogic.0 (9208) Scheduler connected to weather station run 255,255,80,3,83
2020-06-20 21:44:18.722  - debug: sainlogic.0 (9208) Scheduler connected to weather station run 255,255,80,3,83
2020-06-20 21:44:18.737  - debug: sainlogic.0 (9208) FW Scheduler Received data string: ffff501511456173795765617468657256312e312e34
2020-06-20 21:44:18.737  - debug: sainlogic.0 (9208) Data Command received: 80 subcommand 69
2020-06-20 21:44:18.737  - debug: sainlogic.0 (9208) Data object: {"softwaretype":"EasyWeatherV1.1.4"}
2020-06-20 21:44:18.737  - info: sainlogic.0 (9208) Scheduler updating IOBroker states
2020-06-20 21:44:18.738  - debug: sainlogic.0 (9208) Setting value from data for info.softwaretype to EasyWeatherV1.1.4
2020-06-20 21:44:18.738  - debug: sainlogic.0 (9208) Scheduler connected to weather station run 255,255,11,0,6,4,4,25
2020-06-20 21:44:18.790  - debug: sainlogic.0 (9208) FW Scheduler Received data string: ffff501511456173795765617468657256312e312e34
2020-06-20 21:44:18.790  - debug: sainlogic.0 (9208) Data Command received: 80 subcommand 69
2020-06-20 21:44:18.790  - debug: sainlogic.0 (9208) Data object: {"softwaretype":"EasyWeatherV1.1.4"}
2020-06-20 21:44:18.791  - info: sainlogic.0 (9208) Scheduler updating IOBroker states
2020-06-20 21:44:18.791  - debug: sainlogic.0 (9208) Setting value from data for info.softwaretype to EasyWeatherV1.1.4
2020-06-20 21:44:18.791  - debug: sainlogic.0 (9208) Scheduler connected to weather station run 255,255,11,0,6,5,5,27
2020-06-20 21:44:19.175  - debug: host.io-test.compactgroup1 object change system.adapter.sainlogic.0 (from: system.adapter.admin.0)
2020-06-20 21:44:19.175  - debug: host.io-test object change system.adapter.sainlogic.0 (from: system.adapter.admin.0)

BTW: When I see that log correct then something is strange because sometimes the connection not seems to be closed (at least log missing).

Support JSON as Input

This is not a Bug. Its a Feature Request.
The WS2900_V2.01.08 allows me to use a custom Server. I use my Server for this. In my Server I got the following JSON, which I would like to relay to this Adapter. When I just Post the Data to the HTTP-Endpoint, nothing happens but I got a 200 StatusCode.

{"PASSKEY":"something","stationtype":"EasyWeatherV1.5.8","dateutc":"2021-06-14 19:28:11","tempinf":"73.9","humidityin":"57","baromrelin":"29.864","baromabsin":"30.142","tempf":"61.7","humidity":"87","winddir":"5","windspeedmph":"0.0","windgustmph":"0.0","maxdailygust":"11.4","rainratein":"0.000","eventrainin":"0.000","hourlyrainin":"0.000","dailyrainin":"0.000","weeklyrainin":"0.000","monthlyrainin":"1.827","totalrainin":"71.799","solarradiation":"11.25","uv":"0","wh65batt":"0","freq":"868M","model":"WS2900_V2.01.08"}

adapter installation is failing

When I try to install the adapter from iobroker admin guy, I receive following error

$ ./iobroker add sainlogic --host iobroker
NPM version: 6.14.12
npm install [email protected] --loglevel error --prefix "/opt/iobroker" (System call)
npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected] ERR! notarget In most cases you or one of your dependencies are requestingnpm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2021-08-01T16_11_04_120Z-debug.log
ERROR: host.iobroker Cannot install [email protected]: 1
ERROR: process exited with code 25

the corresponding log
2021-08-01T16_11_04_120Z-debug.log

Version Info
iobroker.admin V4.2.2
Node.js: v10.24.1
NPM: 6.14.12

WeatherUnderground vs Ecowitt

Describe the bug
I just got my Froggit DP1500 + moisture sensors and followed the guide to get the data into my iobroker. Nothing happened in listener mode, nothing in scheduler mode. After changing the protocol to Ecowitt (instead of WeatherUnderground as described in the guide), the data started to show up.

To Reproduce
Follow the guide for a Froggit DP1500, iobroker v5.3.8.

Expected behavior
Either data should show up when using WeatherUnderground or the guide needs to mention Ecowitt instead. I'm not fully sure whether this may not be a bug in the DP1500, though.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version: 0.8.2
  • JS-Controller version: 4.0.21
  • Node version: 12.22.5
  • Operating system: iobroker v5.3.8

Additional context
Since stuff works now for me, no immediate action is required. However, if this is a bug in the guide or the adapter, this should be fixed or mentioned. In any case, thanks for the great work with this adapter!

Edit: Interestingly, the DP1500 seems to send the model string "GW1000A_Pro", which suggests an Ecowitt Gateway. Maybe that's the issue here.

Current Rain Rate wird nicht angefasst beim aktualisieren und wird in rot angezeigt

Hallo Daniel,

ELV 980WIFI Wetterstation sendet rain rate 0, im neuesten Adapter bleibt der Wert aber immer gleich und leuchtet rot, bei der Aktualisierung wird der Wert nicht angefasst.

Das betrifft auch weitere Einträge

weather

Abschnitt current

Eintrag -> rain Rainrate

Abschnitt maxvalues -daily

Eintrag -> monthlyrain Max. Rainrate (Monthly) (daily)

Abschnitt minvalues -daily

alle Einträge leuchten rot und werden nicht angefasst bei der Aktualisierung

  state       56 µW/m² editdeletebuild  
UV (raw)  
dailyrain   state value     8.6 mm editdeletebuild
Rainrate (Daily)
dewpointtemp   state value.temperature     0.6 °C editdeletebuild
Dewpoint temperature
indoorhumidity   state value.humidity     31% editdeletebuild
Indoor humidity
indoortemp   state value.temperature     24 °C editdeletebuild
Indoor temperature
monthlyrain   state value     21.6 mm editdeletebuild
Rainrate (Monthly)
outdoorhumidity   state value.humidity     56% editdeletebuild
Outdoor humidity
outdoortemp   state value.temperature     8.9 °C editdeletebuild
Outdoor temperature
pressureabs   state value.pressure     983.9 hPa editdeletebuild
Pressure absolut
pressurerel   state value.pressure     983.9 hPa editdeletebuild
Pressure relative
rain   state value     1.2 mm editdeletebuild
Rainrate
solarradiation   state value.brightness     6913 lx editdeletebuild
Solar Radiation

mit eine Script sehe ich aber das der korrekte Wert gesendet wird:

Datenstring für ioBroker:
javascript.0.Wetterstation.Innentemperatur=24.11&javascript.0.Wetterstation.Aussentemperatur=9.50&javascript.0.Wetterstation.Taupunkt=.43&javascript.0.Wetterstation.Gefuehlte_Temperatur=9.72&javascript.0.Wetterstation.Innenfeuchtigkeit=31&javascript.0.Wetterstation.Aussenfeuchtigkeit=53&javascript.0.Wetterstation.Wind=3.54&javascript.0.Wetterstation.Wind_max=5.47&javascript.0.Wetterstation.Windrichtung=126&javascript.0.Wetterstation.Druck_absolut=984.22&javascript.0.Wetterstation.Druck_relativ=984.22&javascript.0.Wetterstation.Regenrate=0&javascript.0.Wetterstation.Regen_Tag=8.6&javascript.0.Wetterstation.Regen_Woche=14.5&javascript.0.Wetterstation.Regen_Monat=21.5&javascript.0.Wetterstation.Regen_Jahr=21.5&javascript.0.Wetterstation.Sonnenstrahlung=56.76&javascript.0.Wetterstation.UV_Index=0&javascript.0.Wetterstation.Zeitstempel=15.03.2021%2016:20:05&javascript.0.Wetterstation.Info.FW_Version=EasyWeatherV1.5.7&javascript.0.Wetterstation.Info.Station_Batteriestatus=0&javascript.0.Wetterstation.Regen_Event=16.5&javascript.0.Wetterstation.Regen_Total=21.5&javascript.0.Wetterstation.Info.Wetterstation_Gateway=WS2350_V2.37&javascript.0.Wetterstation.Regenstatus=kein Regen&javascript.0.Wetterstation.UV_Belastung=keine&javascript.0.Wetterstation.Windrichtung_Text=SO&javascript.0.Wetterstation.Info.Hitzeindex=

DATA von Wetterstation:
A&stationtype=EasyWeatherV1.5.7&dateutc=2021-03-15+15:20:05&tempinf=75.4&humidityin=31&baromrelin=29.064&baromabsin=29.064&tempf=49.1&humidity=53&winddir=126&windspeedmph=2.2&windgustmph=3.4&rainratein=0.000&eventrainin=0.650&dailyrainin=0.339&weeklyrainin=0.571&monthlyrainin=0.850&yearlyrainin=0.850&totalrainin=0.850&solarradiation=56.76&uv=0&wh65batt=0&freq=868M&model=WS2350_V2.37

Only create datapoints which are supported by the weather station

While using "ecowitt" as protocol for my weather station I recognized that some datapoints are created even if there is no string defined for this datapoint.
For example UVraw and dewpointtemp.
The fastest, to implement, solution would be to check if there is a string definition for the protocol and if not, do not create the datapoint.
Since some weather stations might support different datapoints, even if the protocol is the same, the better solution would be an automatic detection and giving the user the possibility to select the desired datapoints.
A mid term solution could be to pre-define datapoint for known weather stations and fall back to default if the station is not recognized.

Iobroker objects will not be updated

Hi,
it seems, that saintlogis does not update the objects:

2022-01-27_131450

saintlogic is version 0.8.1
Weatherstation is a WH2650A

Log:



2022-01-27 12:06:38.337  - info: host.iobroker "system.adapter.sainlogic.0" enabled
2022-01-27 12:06:38.498  - info: host.iobroker instance system.adapter.sainlogic.0 started with pid 41801
2022-01-27 12:06:40.218  - info:  sainlogic.0 (41801) starting. Version 0.8.1 in  /opt/iobroker/node_modules/iobroker.sainlogic, node: v17.4.0,  js-controller: 3.3.22
2022-01-27 12:06:40.269  - info: sainlogic.0 (41801) Starting Scheduler
2022-01-27 12:06:40.271  - info: sainlogic.0 (41801) Scheduler call ws_getfirmware activated
2022-01-27 12:06:40.273  - info: sainlogic.0 (41801) Scheduler call ws_getcurrent activated
2022-01-27 12:06:40.273  - info: sainlogic.0 (41801) Scheduler call ws_getmax activated
2022-01-27 12:06:40.275  - info: sainlogic.0 (41801) Scheduler call ws_getmin activated
2022-01-27 12:06:40.275  - info: sainlogic.0 (41801) Scheduler call ws_getmaxdaily activated
2022-01-27 12:06:40.276  - info: sainlogic.0 (41801) Scheduler call ws_getmindaily activated
2022-01-27 12:06:40.282  - info: sainlogic.0 (41801) Starting Listener
2022-01-27 12:06:55.281  - info: sainlogic.0 (41801) Scheduler pulling for new data
2022-01-27 12:06:55.338  - error: sainlogic.0 (41801) Scheduler received data for unkown command 84 subcommand 49
2022-01-27 12:07:10.281  - info: sainlogic.0 (41801) Scheduler pulling for new data
2022-01-27 12:07:10.310  - error: sainlogic.0 (41801) Scheduler received data for unkown command 84 subcommand 49
2022-01-27 12:07:25.282  - info: sainlogic.0 (41801) Scheduler pulling for new data
2022-01-27 12:07:25.304  - error: sainlogic.0 (41801) Scheduler received data for unkown command 84 subcommand 49
2022-01-27 12:07:40.283  - info: sainlogic.0 (41801) Scheduler pulling for new data
2022-01-27 12:07:40.304  - error: sainlogic.0 (41801) Scheduler received data for unkown command 84 subcommand 49

Scheduler received data for unkown command 11 subcommand 1

Hallo Daniel, kannst du evtl. sagen woher der Fehler kommt?

(4699) State "sainlogic.0.weather.current.windheading" has no existing object, this might lead to an error in future versions
(4699) Scheduler received data for unkown command 11 subcommand 1

Version 0.6.6 wird nicht installiert

Hallo,
ich habe leider das Problem das ich den Adapter nicht updaten kann.

Anbei hab ich die beiden Logdatein
IOBrokerLOG Sainlogic
Log Sainlogic

Ich hoffe ihr könnt mir helfen. Soweit läuft der Adapter mit meiner Froggit WH3000 sehr gut mittlerweile.

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/phifogg/ioBroker.sainlogic

  • [E154] common.dependencies must contain {"js-controller": ">=2.0.0"} or {"js-controller": ">=3.0.0"}
  • [E605] No actual year found in copyright. Please add "Copyright (c) 2022 Daniel Draes [email protected]" at the end of README.md
  • [E701] No actual year found in LICENSE. Please add "Copyright (c) 2022 Daniel Draes [email protected]" at the start of LICENSE

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

UVraw value greater than max

value greater than max

State value to set for "sainlogic.0.weather.current.UVraw" has value "2094" greater than max "2000"

  • Adapter version: 0.8.1
  • JS-Controller version: 4.0.21
  • Node version: v14.19.1
  • Operating system: linux

Jetzt wo das Wetter so schön ist laufen die Werte für UV raw über.

Add Watchdog

As the weather data is coming in via Listener or Scheduler it is important to check when the last update came in. In case of missing updates an error has to be raised.

Reset stale values (daily, rain, ...)

Some values make no sense if they get not updated regularly. Like rain, dailyrain, solarradiation, ...

Add feature to automatically reset them to 0 if not updated after X rounds of updates.

Warning after Upgrade to jscontroller 3.2.16

Following warning is display in log:
State "sainlogic.0.info.last_listener_update" has no existing object, this might lead to an error in future versions

Adapterversion 0.6.4

Additional EW fields for HP1000SE-PRO and additional sensors

Hi,

I use this adapter with an HP1000SE-PRO (Froggit) and it works quite well. However, some fields from the EW protocol JSON file are not recognized by the adapter, specifically temperature values (°F) from external temperatur-only sensors:

"tf_ch1": "66.9",
"tf_batt1": "1.56",

It would be great, if this prefix "tf_ch#" could be added to the parser so that these fields can also be read.

I have attached the entire JSON file since there are some more fields that might be interesting to add.

Thanks so far!

Best regards,

Joe

{ "PASSKEY": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "stationtype": "EasyWeatherV1.6.4", "dateutc": "2022-05-23 19:09:11", "tempinf": "76.5", "humidityin": "56", "baromrelin": "29.416", "baromabsin": "29.185", "tempf": "63.7", "humidity": "92", "winddir": "101", "winddir_avg10m": "85", "windspeedmph": "0.9", "windspdmph_avg10m": "0.2", "windgustmph": "2.2", "maxdailygust": "14.8", "rainratein": "0.000", "eventrainin": "0.280", "hourlyrainin": "0.000", "dailyrainin": "0.280", "weeklyrainin": "0.280", "monthlyrainin": "1.728", "yearlyrainin": "4.839", "solarradiation": "3.43", "uv": "0", "temp1f": "76.8", "humidity1": "53", "temp2f": "70.3", "humidity2": "54", "soilmoisture1": "43", "soilmoisture2": "47", "soilmoisture3": "56", "tf_ch1": "66.9", "wh65batt": "0", "wh25batt": "0", "batt1": "0", "batt2": "0", "soilbatt1": "1.4", "soilbatt2": "1.4", "soilbatt3": "1.5", "tf_batt1": "1.56", "freq": "868M", "model": "HP1000SE-PRO_Pro_V1.6.9" }

Probleme mit Froggit WH2601

Hallo, die Einbindung der Wetterstation hat soweit funktioniert, nur werden keine Min- und Max- Werte ausgegeben. In der Log wird dauernd die Fehlermeldung:
sainlogic.0 | 2021-04-27 19:09:18.268 | error | (27304) Scheduler received data for unkown command 85 subcommand 91
ausgegeben.
Wo liegt hier der Fehler - vielen Dank für die Hilfe

Support additional sensors

Example delivered on Ecowitt protocoll:

{"PASSKEY":"******",
"stationtype":"GW1000A_V1.5.9",
"dateutc":"2020-05-29 19:37:02",
"tempinf":"77.5",
"humidityin":"44",
"baromrelin":"29.288",
"baromabsin":"29.288",
"temp1f":"76.64",
"humidity1":"46",
"temp2f":"76.10",
"humidity2":"47",
"batt1":"0",
"batt2":"0",
"freq":"868M",
"model":"GW1000_Pro"}

Adapter does not want to work with Sainlogic WS3500

Hi,

i installed the adapter to read the data from Sainlogic WS3500. I followed the instructions for the configuration, but the instance cannot be started. The following log is output:

host.raspberrypi 2021-03-11 14:25:35.653 info Restart adapter system.adapter.sainlogic.0 because enabled
host.raspberrypi 2021-03-11 14:25:35.652 error instance system.adapter.sainlogic.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
sainlogic.0 2021-03-11 14:25:35.099 warn (4457) Terminated (UNCAUGHT_EXCEPTION): Without reason
sainlogic.0 2021-03-11 14:25:35.097 info (4457) terminating
sainlogic.0 2021-03-11 14:25:35.034 info (4457) Starting Listener
sainlogic.0 2021-03-11 14:25:35.001 info (4457) starting. Version 0.6.4 in /opt/iobroker/node_modules/iobroker.sainlogic, node: v12.20.2, js-controller: 3.2.16
sainlogic.0 2021-03-11 14:25:34.595 error (4457) Cannot read property 'bind' of undefined
sainlogic.0 2021-03-11 14:25:34.594 error at internal/main/run_main_module.js:17:47
sainlogic.0 2021-03-11 14:25:34.594 error at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
sainlogic.0 2021-03-11 14:25:34.594 error at Function.Module._load (internal/modules/cjs/loader.js:708:14)
sainlogic.0 2021-03-11 14:25:34.594 error at Module.load (internal/modules/cjs/loader.js:863:32)
sainlogic.0 2021-03-11 14:25:34.594 error at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
sainlogic.0 2021-03-11 14:25:34.594 error at Module._compile (internal/modules/cjs/loader.js:999:30)
sainlogic.0 2021-03-11 14:25:34.594 error at Object. (/opt/iobroker/node_modules/iobroker.sainlogic/main.js:281:5)
sainlogic.0 2021-03-11 14:25:34.594 error at new Sainlogic (/opt/iobroker/node_modules/iobroker.sainlogic/main.js:30:53)
sainlogic.0 2021-03-11 14:25:34.594 error (4457) TypeError: Cannot read property 'bind' of undefined
sainlogic.0 2021-03-11 14:25:34.591 error (4457) uncaught exception: Cannot read property 'bind' of undefined
host.raspberrypi 2021-03-11 14:25:33.416 info instance system.adapter.sainlogic.0 started with pid 4457

My system:

raspberrypi
Platform linux
Betriebssystem linux
Architektur arm
CPUs 4
Geschwindigkeit 700 MHz
Modell ARMv7 Processor rev 3 (v7l)
RAM 7.69 GB
Node.js v12.20.2 (Es gibt eine neuere Version: v12.21.0)
NPM 6.14.11
Festplatte Größe 58.25 GB
Festplatte frei 54.28 GB
Anzahl der Adapter 334
Aktive Instanzen 10

Can someone help me find the cause?
Thank you!

greeting
Franz

Feature request: Regen Variable

Hallo,

könnte vielleicht folgende Kleinigkeit integriert werden?
Bei Regen einen Variable auf true setzen und bei Trockenheit auf false?

Feature Request: Zeitpunkte der Min- und MaxWerte

Hallo,
bisher lese ich die WS980WIFI direkt aus.
Ich möchte aber jetzt gerne auf den Adapter umsteigen.

Frage:
Wäre es möglich, die Zeitpunkte der Min- und Maxwerte mit auszulesen?
Bei der WS980WIFI könnten diese ja als getrennte Stunden- und Minutenangabe direkt nach dem eigentlichen Wert aus der API mit ausgelesen werden?

$format =
'x7/' . # Override first 7 bytes
'n1Innentemp/' . # Get the next 2 bytes
'C1Innentemp_h/' . # Get the next 1 byte
'C1Innentemp_m/' . # Get the next 1 byte
'x1/' . # Override 1 byte
'n1Aussentemp/' . # Get the next 2 bytes
'C1Aussentemp_h/' . # Get the next 1 byte
'C1Aussentemp_m/' . # Get the next 1 byte
'x1/' . # Override 1 byte
'n1Taupunkt/' . # Get the next 2 bytes
'C1Taupunkt_h/' . # Get the next 1 byte
'C1Taupunkt_m/' . # Get the next 1 byte
...

Ansonsten weis ich ja gar nicht, wann am heutigen Tag die höchste Windgeschwindigkeit war usw.

Viele Grüße,
paulinchen

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.