Das tolle an NodeRed ist neben der einfachen Programmierung, dass es allerhand Plugins (In NodeRed „nodes“ genannt) gibt mit denen sich der Funktionsumfang von NodeRed erweitern lässt.
A list of the currently – officially – available nodes can be found at: https://flows.nodered.org/
Habt Ihr eine Node gefunden die Ihr installieren wollt könnt Ihr dies über den, in jeder NodeRed-Installation vorhandenen, „Palette Manager“ machen.
How this works is described in the following article.
Safety instructions
I know the following notes are always kind of annoying and seem unnecessary. Unfortunately, many people who knew "better" have lost eyes, fingers or other things due to carelessness or injured themselves. Data loss is almost negligible in comparison, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Because even the coolest project is not worth injury or other trouble.
https://www.nerdiy.de/sicherheitshinweise/
Affiliate links/advertising links
The links to online shops listed here are so-called affiliate links. If you click on such an affiliate link and make a purchase via this link, Nerdiy.de will receive a commission from the relevant online shop or provider. The price does not change for you. If you make your purchases via these links, you support Nerdiy.de in being able to offer other useful projects in the future. 🙂
Requirements
Helpful articles:
So that you can install new nodes, NodeRed should of course already be installed.
How to prepare a RaspberryPi and then install NodeRed on it is described in the following articles.
The following three articles describe what needs to be done to prepare the RaspberryPi:
RaspberryPi – setup for nerdiys!
RaspberryPi – The first configuration!
RaspberryPi – Control the RaspberryPi via SSH
NodeRed – Installing NodeRed on the RaspberryPi
Required tool:
-no-
Required material:
In the following list you will find all the parts you need to implement this article.
Log into the NodeRed configuration interface
Before you can edit your NodeRed configuration, you must - if activated - first log into the NodeRed configuration interface.
Install new nodes via the configuration interface
Open the configuration interface of your NodeRed installation.
Have fun with the project
I hope everything worked as described for you. If not or you have questions or suggestions please let me know in the comments. I will then add this to the article if necessary.
Ideas for new projects are always welcome. 🙂
PS Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do this because I enjoy it, but if you think it's cool that I share the information with you, I would be happy about a small donation to the coffee fund. 🙂
So far I have used this module for my MagicMirror: https://github.com/Jopyth/MMM-Buttons
Unfortunately, this no longer works with the current version of MagicMirror. Apparently you also use the touch function together with a MagicMirror.
How can I use your code to make it work with the MagicMirror?
Thanks for your help
Nemul
Hi Nemul,
what exactly do you want to do with the button press? 🙂
Or what do you mean by "touch function"?
Best regards
Fab
I send "notifications" to the following module:
https://github.com/tosti007/MMM-ProfileSwitcher
This allows me to display different pages as needed. As mentioned earlier, this has to do with this module: https://github.com/PatriceG/MMM-MPR121 works reliably. Unfortunately not with the current version of MagicMirror.
Many thanks in advance!
Hi Nemul,
Unfortunately, I have never used the direct control of the MagicMirror modules. The only thing I do in terms of "control-wise" is turn the screen on and off. In addition, I have connected an MPR121, which is evaluated via NodeRed.
You should then actually be able to send commands to the MagicMirror instance. I have stored information on how to use the MPR121 with NodeRed here: https://nerdiy.de/howto-raspberry-pi-mpr121-touchsensor-via-i2c-und-node-red-auswerten/
Best regards
Fabian