// Detele the persist file | // Detele the persist file | ||||
var _node = RED.nodes.getNode(_nodeid); // Gets node object from nodeit, because when called from the config html, the node object is not defined | var _node = RED.nodes.getNode(_nodeid); // Gets node object from nodeit, because when called from the config html, the node object is not defined | ||||
try { | try { | ||||
fs.unlinkSync("states/" + _nodeid.toString()); | |||||
if (fs.existsSync("states/" + _nodeid.toString())) fs.unlinkSync("states/" + _nodeid.toString()); | |||||
_node.status({fill: "red",shape: "ring",text: "Persistent states deleted ("+_nodeid.toString()+")."}); | _node.status({fill: "red",shape: "ring",text: "Persistent states deleted ("+_nodeid.toString()+")."}); | ||||
} catch (error) { | } catch (error) { | ||||
_node.status({fill: "red",shape: "ring",text: "Error deleting persistent file: " + error.toString()}); | _node.status({fill: "red",shape: "ring",text: "Error deleting persistent file: " + error.toString()}); |
# node-red-contrib-boolean-logic-ultimate | |||||
<p> | |||||
<b>Version 0.0.9 LTS (Long term stable)</b><br/> | |||||
- For invert node, changed the category in the palette list to match the boolean logic ultimate's category<br/> | |||||
</p> | |||||
<p> | |||||
<b>Version 0.0.8</b><br/> | |||||
- Delete persistent states when a new unexpected topic arrrives<br/> | |||||
- Better status representation<br/> | |||||
- Better and clearer configuration UI <br/> | |||||
</p> | |||||
<p> | |||||
<b>Version 0.0.7</b><br/> | |||||
- Fixed decimal error in the "Invert" node.<br/> | |||||
</p> | |||||
<p> | |||||
<b>Version 0.0.6</b><br/> | |||||
- Fixed crappy "Invert" node.<br/> | |||||
</p> | |||||
<p> | |||||
<b>Version 0.0.5</b><br/> | |||||
- Bypass persistency if node-red user hasn't permissions to write to the filesystem.<br/> | |||||
</p> | |||||
<p> | |||||
<b>Version 0.0.4</b><br/> | |||||
- Fixed conflict issue if you have the old boolean logic installed<br/> | |||||
</p> | |||||
<p> | |||||
<b>Version 0.0.3</b><br/> | |||||
- Fixed status display<br/> | |||||
</p> | |||||
<p> | |||||
<b>Version 0.0.2</b><br/> | |||||
- Fixed persistent state deletion upon node update/delete<br/> | |||||
</p> | |||||
<p> | |||||
<b>Version 0.0.1</b><br/> | |||||
- Initial release<br/> | |||||
</p> |
<script type="text/javascript"> | <script type="text/javascript"> | ||||
RED.nodes.registerType('InvertUltimate',{ | RED.nodes.registerType('InvertUltimate',{ | ||||
category: 'boolean logic', | |||||
category: 'boolean logic ultimate', | |||||
color: '#ff8080', | color: '#ff8080', | ||||
defaults: { | defaults: { | ||||
name: { | name: { |
{ | |||||
"name": "node-red-contrib-boolean-logic-ultimate", | |||||
"version": "0.0.9", | |||||
"description": "A set of Node-RED enhanced boolean logic, with persisten values after reboot and more", | |||||
"author": "Supergiovane (https://github.com/Supergiovane)", | |||||
"dependencies": { | |||||
"fs": "0.0.1-security" | |||||
}, | |||||
"keywords": [ | |||||
"node-red", | |||||
"boolean", | |||||
"logic" | |||||
], | |||||
"license": "MIT", | |||||
"repository": { | |||||
"type": "git", | |||||
"url": "https://github.com/Supergiovane/node-red-contrib-boolean-logic-ultimate" | |||||
}, | |||||
"node-red": { | |||||
"nodes": { | |||||
"BooleanLogicUltimate": "boolean-logic-ultimate/BooleanLogicUltimate.js", | |||||
"InvertUltimate": "boolean-logic-ultimate/InvertUltimate.js" | |||||
} | |||||
} | |||||
} |