Skip to content

Commit

Permalink
Added LDS Objects
Browse files Browse the repository at this point in the history
  • Loading branch information
phifogg committed Feb 6, 2025
1 parent 809cc83 commit 62eb5e6
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 2 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
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 62eb5e6

Please sign in to comment.