Skip to content

Commit

Permalink
fix: frige temperature not work because of misspelled mapping (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 authored and tkurki committed May 6, 2019
1 parent d91d532 commit 995b714
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion temperatureMappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {
path: 'tanks.baitWell.default.temperature',
pathWithIndex: 'tanks.baitWell.<index>.temperature'
},
'Refrigerator Temperature': {
'Refridgeration Temperature': {
path: 'environment.inside.refrigerator.temperature'
},
'Heating System Temperature': {
Expand Down
32 changes: 32 additions & 0 deletions test/130310-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -439,5 +439,37 @@
"testExpectConvertedValues": {
"environment.water.temperature": 15.2
}
},
"130312-frige": {
"timestamp": "2015-01-15-16:15:19.628Z",
"prio": "5",
"src": "36",
"dst": "255",
"pgn": "130312",
"description": "Temperature",
"fields": {
"Temperature Instance": "0",
"Temperature Source": "Refridgeration Temperature",
"Actual Temperature": "15.2"
},
"testExpectConvertedValues": {
"environment.inside.refrigerator.temperature": 15.2
}
},
"130312-frige-new": {
"timestamp": "2015-01-15-16:15:19.628Z",
"prio": "5",
"src": "36",
"dst": "255",
"pgn": "130312",
"description": "Temperature",
"fields": {
"Instance": "0",
"Source": "Refridgeration Temperature",
"Actual Temperature": "15.2"
},
"testExpectConvertedValues": {
"environment.inside.refrigerator.temperature": 15.2
}
}
}

0 comments on commit 995b714

Please sign in to comment.