Skip to content

Commit 00cf435

Browse files
Merge pull request #12 from Tom-Hirschberger/development
Development
2 parents 5a47fb0 + c35c790 commit 00cf435

File tree

8 files changed

+570
-62
lines changed

8 files changed

+570
-62
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
MagicMirror² module which periodically calls configured scripts and sends the output as value of configurable notifications. The values can be displayed in modules like [MMM-ValuesByNotification](https://github.com/Tom-Hirschberger/MMM-ValuesByNotification).
44

5-
Example scripts to read the temperature values of DHT11, DHT22, DS18B20, HTU21 or BME280 connected to the raspbarry or Miflora sensors in reach of bluetooth are included in the scripts directory. There is a documentation in the [scripts directory](./scripts/README.md), too.
5+
Example scripts to read the temperature values of DHT11, DHT22, DS18B20, HTU21, SHT31d, SHTC3 or BME280 connected to the raspbarry or Miflora sensors in reach of bluetooth are included in the scripts directory. There is a documentation in the [scripts directory](./scripts/README.md), too.
66

77
## Basic installation
88

node_helper.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ module.exports = NodeHelper.create({
153153
if((typeof curCmdConfig["skips"] === "undefined") ||
154154
(curCmdConfig["skips"] < self.cmdSkips[cmdIdx])
155155
){
156-
156+
157157
self.cmdSkips[cmdIdx] = 1
158158

159159
let curCommand = curCmdConfig["script"]
160-
160+
161161
let modCommand = self.validateAndModifyPath(curCommand)
162162

163163
if ((modCommand.testPath == null) || fs.existsSync(modCommand.testPath)){
@@ -169,7 +169,7 @@ module.exports = NodeHelper.create({
169169
isExecutable = false
170170
}
171171
}
172-
172+
173173
if (isExecutable){
174174
let curArgs = curCmdConfig["args"]
175175
if(typeof curCmdConfig["args"] !== "undefined"){
@@ -207,7 +207,7 @@ module.exports = NodeHelper.create({
207207
if (self.config.debug){
208208
console.log(self.name+": Running "+ modCommand.thePath + " synchronous")
209209
}
210-
210+
211211
let spawnOutput = spawnSync(modCommand.thePath, curArgs, options)
212212
returnCode = spawnOutput.status
213213
output = spawnOutput.stdout
@@ -257,9 +257,9 @@ module.exports = NodeHelper.create({
257257
console.log(self.name+": Postprocessing cmdIdx: "+cmdIdx)
258258
console.log(self.name+": curCmdConfig: "+JSON.stringify(curCmdConfig))
259259
console.log(output)
260-
console.log(returnCode)
260+
console.log("Return code: "+returnCode)
261261
}
262-
262+
263263
if(output !== null){
264264
if (typeof curNotifications !== "undefined"){
265265
if (self.validateConditions(curCmdConfig, output, returnCode)){

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "MMM-CommandToNotification",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "A MagicMirror² module which calls system-commands or scripts periodically and sends the output as notifications.",
55
"main": "MMM-CommandToNotification",
66
"dependencies": {},

0 commit comments

Comments
 (0)