Jump to content

KoekenbakkerNL

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by KoekenbakkerNL

  1. This info is for the people who have JBruce's solution or want to make it happen. I created a little Node Red flow so i get a Telegram message on my phone in case anything happens with my kiln. In short, this gives a telegram message when: 1. The kiln-controller service starts/stops, 2. When and which schedule is started, 3, If a stop command is received, 4, when the schedule is finished. Besides that, there are 2 other currently unused functions, the current temp and the target temp. I left these out of scope, since i am going to use these values to send them to my home automation dashboard with some other stats. Some info: Node Red itself: https://nodered.org/ Node Red (raspberry howto): https://nodered.org/docs/getting-started/raspberrypi Required Node: node-red-contrib-telegrambot-home How to use this ? Get Node Red up and running, ad the node node-red-contrib-telegrambot-home and restart node red (see howto above). Adjust the text in the "switch" node accordingly to what's in your daemon.log file (tail -f -n 30 /var/log/daemon.log) on your Pi. Since i'm a Dutchman, you probably have to change some values ;-). For Telegram you have to use Google, but it's not hard to accomplish. After that, you have to import the following flow in Node Red: [{"id":"5ac7f985.3ec418","type":"tab","label":"Kiln Control Info","disabled":false,"info":""},{"id":"2b57b4be.0c99bc","type":"debug","z":"5ac7f985.3ec418","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":730,"y":180,"wires":[]},{"id":"37f25f28.17203","type":"tail","z":"5ac7f985.3ec418","name":"tail","filetype":"text","split":"[\\r]{0,1}\\n","filename":"/var/log/daemon.log","x":90,"y":200,"wires":[["417cc45c.90389c"]]},{"id":"417cc45c.90389c","type":"switch","z":"5ac7f985.3ec418","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"Stopping kiln-controller","vt":"str"},{"t":"cont","v":"Started kiln-controller","vt":"str"},{"t":"regex","v":"(?<=temp=)[0-9]*.[0-9]","vt":"str","case":false},{"t":"regex","v":"(?<=target=)[0-9]*.[0-9]","vt":"str","case":false},{"t":"regex","v":"INFO oven: Running schedule.*","vt":"str","case":false},{"t":"regex","v":"Stop command received","vt":"str","case":false},{"t":"regex","v":"INFO oven: schedule ended, shutting down","vt":"str","case":false}],"checkall":"true","repair":false,"outputs":7,"x":250,"y":200,"wires":[["3e931766.8cf3b8"],["3832b2a7.b0484e"],["2b57b4be.0c99bc"],["2b57b4be.0c99bc"],["2b57b4be.0c99bc","d23247ab.d57328"],["d23247ab.d57328"],["d23247ab.d57328"]]},{"id":"3832b2a7.b0484e","type":"change","z":"5ac7f985.3ec418","name":"Oven Service gestart","rules":[{"t":"set","p":"payload","pt":"msg","to":"Oven Service gestart","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":140,"wires":[["d23247ab.d57328","2b57b4be.0c99bc"]]},{"id":"3e931766.8cf3b8","type":"change","z":"5ac7f985.3ec418","name":"Oven Service gestopt","rules":[{"t":"set","p":"payload","pt":"msg","to":"Oven Service gestopt","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":100,"wires":[["d23247ab.d57328","2b57b4be.0c99bc"]]},{"id":"d23247ab.d57328","type":"telegrambot-notify","z":"5ac7f985.3ec418","name":"","bot":"xxxx","chatId":"xxxx","message":"","parseMode":"","x":740,"y":260,"wires":[]},{"id":"765afbc.1ab1704","type":"telegrambot-config","z":"","botname":"xxxx","usernames":"","chatIds":"xxxx","pollInterval":"300"}] If you have any questions, feel free to ask. Cheers
  2. Thanks a lot for your great work on this! Can you give me a hint on how to access the API? I tried to get the know how by reading Github info, but could not get it figured out.... edit: mea culpa, just after this post, i found it on Github. If you wonder where to find it: https://github.com/jbruce12000/kiln-controller/blob/master/docs/api.md
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.