Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
todbot committed Aug 24, 2024
1 parent 6ef2e30 commit 65d0fce
Show file tree
Hide file tree
Showing 4 changed files with 10,466 additions and 18,344 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Blink1Control2",
"version": "2.2.9",
"version": "2.3.0",
"author": "ThingM <[email protected]> (https://blink1.thingm.com/)",
"description": "Blink1Control2 GUI app for blink(1) devices",
"productName": "Blink1Control2",
Expand Down
14 changes: 10 additions & 4 deletions app/server/mqttService.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ var MqttService = {
self.errorLogged = true;
});
client.on('message', function (topic, message) {
self.parse(rule, message.toString()); // message is Buffer, thus .toString()
// Eventer.addStatus( {type:'trigger', source:rule.type, id:rule.name, text:message.toString()} );
Eventer.addStatus( {type:'info', source:rule.type, id:rule.name, text:message.toString()} );
log.msg("MqttService: message: topic:", topic, "message:",message.toString());
log.msg("MqttService: message: topic:", topic, "message:",message.toString());
// parse() will fill out Eventer.addStatus() for us
self.parse(rule, message.toString()); // message is Buffer, thus .toString()
// Eventer.addStatus( {type:'trigger', source:rule.type, id:rule.name, text:message.toString()} );
//Eventer.addStatus( {type:'info', source:rule.type, id:rule.name, text:message.toString()} );
});
rule.client = client;
});
Expand All @@ -114,6 +115,7 @@ var MqttService = {
},

/**
* (FIXME: Copied from scriptService.parse(), pull these out into single common one)
* Parse the output from a MQTT response.
* Plays patterns if match.
* Sends log messages with source & id of rule.
Expand Down Expand Up @@ -172,7 +174,11 @@ var MqttService = {
Eventer.addStatus( {type:'error', source:rule.type, id:rule.name, text:'invalid color '+json.color});
}
}
else {

}
} catch(error) {
log.msg("error:", error)
Eventer.addStatus( {type:'error', source:rule.type, id:rule.name, text:error.message});
}
}
Expand Down
Loading

0 comments on commit 65d0fce

Please sign in to comment.