Read data from a sainlogic based weather station
Basically any device working with the sainlogic hardware, the firmware usually reports as 'EasyWeather Vx.x.x)'.
Known working devices:
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.
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:
Use the 'WS View'app on your mobile device to configure the weatherstation. Configure the following settings for customized server settings:
In the instance configuration choose the tab 'Listener' and set the following:
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.
If your weather station supports pulling for data you can configure the scheduler to do so. The protocol used is based on WS980 documentation.
In the instance configuration choose the tab 'Scheduler' and set the following:
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.
It seems this station does not send any data when WeatherUnderground is selected as protocol. It works correctly with Ecowitt.
Station does not answer to scheduler commands, so only listener mode is supported.
Station does not answer to scheduler commands, so only listener mode is supported.
Latest version
For detailed change log or previous versions check io-package.json
Credits go to: lemuba, StrathCole, Glasfaser, Latzi: for relentless testing of my bugs :) Lisa for her code to translate wind degrees in a heading
MIT License
Copyright (c) 2023 Fogg foggch@gmail.com
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.