Skip to content

Commit

Permalink
Merge pull request #228 from phifogg/dev
Browse files Browse the repository at this point in the history
Added LDS Objects
  • Loading branch information
phifogg authored Feb 6, 2025
2 parents c0076db + 76de66e commit a2859d1
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 37 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ Station does not answer to scheduler commands, so only listener mode is supporte

Latest version

### 0.12.1 Added Laser Distance Sensor (LSD) states

#### 0.11.6 Adapater checker related updates

#### 0.11.5 ECOWITT forwarding fixed
Expand Down
6 changes: 5 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"common": {
"name": "sainlogic",
"version": "0.11.6",
"version": "0.12.1",
"news": {
"0.12.1": {
"en": "Added Laser Distance sensor (LDS) Objects",
"de": "Attribute für Laser Distance Sensor (LDS) hinzugefügt"
},
"0.11.6": {
"en": "Responsinve design checked, added translations, dependencies updated",
"de": "Responsinve design überprüft, Übersetzungen, Abhängigkeiten"
Expand Down
68 changes: 68 additions & 0 deletions lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -1736,6 +1736,74 @@ const DATAFIELDS = [
scheduler: null,
listener_conversion: null,
scheduler_conversion: null
},
{
id: 'air_ch',
channels: [{
channel: 'weather.current',
name: 'Air Distance'
}],
type: 'number',
unit: 'mm',
role: '',
min: 0,
max: 500,
wunderground: '^air_ch([0-9])*',
ecowitt: '^air_ch([0-9])*',
scheduler: null,
listener_conversion: null,
scheduler_conversion: null
},
{
id: 'thi_ch',
channels: [{
channel: 'weather.current',
name: 'Total Distance'
}],
type: 'number',
unit: 'mm',
role: '',
min: 0,
max: 500,
wunderground: '^thi_ch([0-9])*',
ecowitt: '^thi_ch([0-9])*',
scheduler: null,
listener_conversion: null,
scheduler_conversion: null
},
{
id: 'depth_ch',
channels: [{
channel: 'weather.current',
name: 'Depth Distance'
}],
type: 'number',
unit: 'V',
role: 'value.voltage',
min: 0,
max: 5,
wunderground: '^depth_ch([0-9])*',
ecowitt: '^depth_ch([0-9])*',
scheduler: null,
listener_conversion: null,
scheduler_conversion: null
},
{
id: 'ldsbatt',
channels: [{
channel: 'weather.info',
name: 'Depth Distance'
}],
type: 'number',
unit: 'mm',
role: '',
min: 0,
max: 500,
wunderground: '^ldsbatt([0-9])*',
ecowitt: '^ldsbatt([0-9])*',
scheduler: null,
listener_conversion: null,
scheduler_conversion: null
}
];

Expand Down
64 changes: 29 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.sainlogic",
"version": "0.11.6",
"version": "0.12.1",
"description": "Read data from a sainlogic based weather station",
"engines": {
"node": ">=18"
Expand Down

0 comments on commit a2859d1

Please # to comment.