Skip to content

Commit

Permalink
km200 recordings
Browse files Browse the repository at this point in the history
  • Loading branch information
tp1de committed Feb 23, 2024
1 parent d739e94 commit c27a355
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ German ioBroker forum: https://forum.iobroker.net/topic/45862/neuer-adapter-ems-
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### **WORK IN PROGRESS**
* change KM200 error messages for recordings

### 3.0.0 (2024-02-17)
* Node >= 18 required
* update heatdemand weight changes to be effective during active instance
Expand Down
6 changes: 3 additions & 3 deletions lib/km200.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ async function hours(r) {
for (let i=0;i<3;i++) {
const url1 = feld + datum.getFullYear()+"-"+ (datum.getMonth()+1) +"-"+datum.getDate();
try {data = await km200_get(url1);}
catch(error) {adapter.log.error("KM200 error reading recordings on hour"+data);data = " "; }
catch(error) {adapter.log.error("KM200 error reading recordings on hour ");data = " "; }
if (data != " ") {

if (i == 0) statename = adapt+r.km200+".km200.Hours.today";
Expand Down Expand Up @@ -627,7 +627,7 @@ async function days(r) {
for (let i=0;i<3;i++) {
const url1 = feld + jahr + "-" + monat;
try {data = await km200_get(url1);}
catch(error) {adapter.log.error("KM200 error reading recordings on days"+data);data = " "; }
catch(error) {adapter.log.error("KM200 error reading recordings on days ");data = " "; }
if (data != " ") {

if (i == 0) statename = adapt+r.km200+".km200.Days.actual_month";
Expand Down Expand Up @@ -691,7 +691,7 @@ async function months(r) {
for (let i=0;i<3;i++) {
const url1 = feld + jahr ;
try {data = await km200_get(url1);}
catch(error) {adapter.log.error("KM200 error reading recordings on months"+data);data = " "; }
catch(error) {adapter.log.error("KM200 error reading recordings on months ");data = " "; }
if (data != " ") {

if (i == 0) statename = adapt+r.km200+".km200.Months.actual_year";
Expand Down

0 comments on commit c27a355

Please sign in to comment.