Skip to content

Commit

Permalink
Merge pull request #166 from phifogg/dev
Browse files Browse the repository at this point in the history
0.10.4 update
  • Loading branch information
phifogg committed May 28, 2023
2 parents 50922dd + 4222781 commit fce4bec
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Fogg <foggch@gmail.com>
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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Lisa for her [code to translate wind degrees in a heading](https://www.programmi
## License
MIT License

Copyright (c) 2022 Fogg <foggch@gmail.com>
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
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.10.3",
"version": "0.10.4",
"news": {
"0.10.4": {
"en": "Bugfix for lightning count, new battery states for additional sensors",
"de": "Fehlerbehebung für Lightning Count, neue Batterie-Datenpunkte für weitere Sensoren"
},
"0.10.3": {
"en": "Bugfixes last listener update at Ecowitt and forwarder",
"de": "Fehlerbehebungen last listener update und forwarder bei Ecowitt"
Expand Down
36 changes: 35 additions & 1 deletion lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,23 @@ const DATAFIELDS = [
listener_conversion: null,
scheduler_conversion: null
},
{
id: 'wh26batt',
channels: [{
channel: 'weather.info',
name: 'WH26 Battery Voltage'
}],
type: 'number',
unit: 'V',
role: 'value.voltage',
min: 0,
max: 24,
wunderground: '^wh26batt([0-9])*',
ecowitt: '^wh26batt([0-9])*',
scheduler: null,
listener_conversion: null,
scheduler_conversion: null
},
{
id: 'tf_ch',
channels: [{
Expand Down Expand Up @@ -1274,6 +1291,23 @@ const DATAFIELDS = [
listener_conversion: null,
scheduler_conversion: null
},
{
id: 'batt1',
channels: [{
channel: 'weather.info',
name: 'External sensor battery'
}],
type: 'number',
unit: 'V',
role: 'value.voltage',
min: 0,
max: 24,
wunderground: '^batt([0-9])*',
ecowitt: '^batt([0-9])*',
scheduler: null,
listener_conversion: null,
scheduler_conversion: null
},
{
id: 'tf_co2',
channels: [{
Expand Down Expand Up @@ -1461,7 +1495,7 @@ const DATAFIELDS = [
unit: 'km',
role: 'value',
wunderground: null,
ecowitt: 'lightning',
ecowitt: 'lightning$',
scheduler: null,
listener_conversion: null,
scheduler_conversion: null
Expand Down
4 changes: 2 additions & 2 deletions lib/listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ class Listener {
const fwd_url = new URL(this.forward_url);

got(fwd_url, { method: 'POST', retry: {limit: 0} , body: my_body }).then(got_response => {
this.adapter.log.info(got_response.body.url);
this.adapter.log.info(got_response.body.explanation);
this.adapter.log.info('Forward URL: + ' + got_response.requestUrl);
this.adapter.log.info('Forward response body: ' + got_response.body);
}).catch(error => {
this.adapter.log.info(error);
});
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.10.3",
"version": "0.10.4",
"description": "Read data from a sainlogic based weather station",
"author": {
"name": "Daniel Draes",
Expand Down

0 comments on commit fce4bec

Please sign in to comment.