Giter Site home page Giter Site logo

adx-git / iobroker.sainlogic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phifogg/iobroker.sainlogic

0.0 0.0 0.0 525 KB

An IoBroker Adapter for Sainlogic based weather stations

License: MIT License

HTML 13.30% CSS 0.23% JavaScript 86.47%

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

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
  • Port: any number between 1024 and 65000 (default is 45000), needs to be unique and free on your IOBroker system
  • Station ID: not used
  • Station Key: not used
  • 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.

Changelog

Latest version

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) 2020 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.

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.