Using Variables in Node-Red. The Snore Counter

Тәжірибелік нұсқаулар және стиль

In this video I walk you through everything you need to know to use Local and Global variables in Node-Red. I'll include more tips on writing Function Node code and demo a practical example of a "SNORE COUNTER"
🎬 THE LINKS - Files / Help / Support:
- 🎁 Project Code: github.com/3ative/nr-variable...
- 🛒 Other files & Merch: store.3ative.com
- 💎 3ATIVE DISCORD: / discord
- ☕ Buy me a Coffee: www.buymeacoffee.com/3ative
- 💕 PATREON: / 3ative
- 💯 Get the Gadgets, Devices and Tools I use: Amazon UK: amzn.to/3uRw8fi
* As an Amazon Associate I earn from qualifying purchases. Using this link ⇈ provides small monetary support for my channel at no extra cost to you.💖
Chapters:
00:00 Into
00:16 Function Node Code
12:19 Duplicate the Setup
14:00 Global Version
15:51 Surviving a Re-Start
19:21 My Snore Counter!!!
21:14 Outro
#NodeRed #FunctionNode #tutorial
~-~~-~~~-~~-~
Check out: "IKEA Air Quality Sensor: 7-in-1 ESPHome Update Hack"
• Hack the IKEA Air Qual...
~-~~-~~~-~~-~

Пікірлер: 17

  • @IanTakats
    @IanTakats9 ай бұрын

    That's really useful just to see how to do the coding. Not quite sure what I will use it for yet but as a lesson it was excellent and you make it all seem so easy. Thanks Dave!

  • @3ATIVE

    @3ATIVE

    9 ай бұрын

    You are most welcome sir... Yeah see, ya may not need it now but, one day in the future you'll think... 🤔 Hmmm, how do I store a variable in Node-Red. Then you'll remember: The Dave and 3ATIVE. !!!! LMAO

  • @sven1858
    @sven18586 ай бұрын

    Thanks for this video, this is an area within node red that I really struggle with, the function nodes and [JSON]

  • @3ATIVE

    @3ATIVE

    6 ай бұрын

    Thank Sven, I hope this and some of my other NR tutorials help too. 🙏 If you need any further help or have any questions, feel free to sign up to my DISCORD server: discord.com/invite/3RbZgvHeJ9 and I'll be happy to help where I can.

  • @gadget1968
    @gadget19689 ай бұрын

    Greta content many thanks for this and all you video's

  • @3ATIVE

    @3ATIVE

    9 ай бұрын

    Aww thank you... You are most welcome. - It's comments like yours that make it all worth while. 🙏

  • @curtnorby875
    @curtnorby8754 ай бұрын

    Absolutely brilliant tutorial on node-red variables. I watch a lot of youtube videos on Home Assistant and Node-Red. Your video is spot on because of the fact that you explain details surrounding areas which can be very confusing. Well Done! I do have a question though....Since this video was produced and now, the updates in HA and NR have moved the contents of the Nodered folder. I can't seem to find the settings.js file. Do you have any update as to it's new location? Once again...Thanks for the Great Video.

  • @3ATIVE

    @3ATIVE

    4 ай бұрын

    Thank you for the kind words and feedback. I'm glad my li'tutorial was clear and useful for you 🙏 I've looked at my directory... my settings.js is: addon_configs>a0d7b954_nodered>settings.js This "addon_configs" folder is one up from the "config" directory, the same level as other folders, such as: * backup * media * share * ssl

  • @rasbe6863
    @rasbe68639 ай бұрын

    what are you using to get alexa to listen to your snoring. What node was that?

  • @3ATIVE

    @3ATIVE

    9 ай бұрын

    The Snore detector is an Alexa function you set in the Alexa APP. Make a new Routine, add a "when" >> Sound Detection >> Snoring. My routine simply turns on a a Node-Red Light, and I use that light's "on" to do the rest.

  • @3ATIVE

    @3ATIVE

    9 ай бұрын

    I just made a full tutorial: kzread.info/dash/bejne/iapouc96j6aTidY.html

  • @philharris9631
    @philharris96319 ай бұрын

    Dammit man … I’m not sure that Node Red has enough bits in a value to count mine… 😂

  • @3ATIVE

    @3ATIVE

    9 ай бұрын

    LMAO - Well, technically, you'd only need to first few to trigger something. - I'm not sure I'd like to know how many I made all night either! - "Feedback" _from the GF is bad enough_ 😁

  • @michaels5167
    @michaels51679 ай бұрын

    404 error on github link😢

  • @3ATIVE

    @3ATIVE

    9 ай бұрын

    Excellent 👍

  • @michaels5167

    @michaels5167

    9 ай бұрын

    Just seeing the note 😂

  • @3ATIVE

    @3ATIVE

    9 ай бұрын

    @@michaels5167 LOL you are not the first.

Келесі