@Hein-Jan not a bad idea. I can probably just hardcore that in and have a config setting that can enable it to only show on Feb 14th. One possible drawback of that is that module is still going to be loaded in memory other 364 days of the year.
Read the statement by Michael Teeuw here.
Posts
-
RE: Replacing snow flakes with hearts in the MMM-SNOW module
-
RE: Replacing snow flakes with hearts in the MMM-SNOW module
@tamug1 Here you go. It’s running a little sluggish on my RasPi 2 and I don’t have RasPi 3 hooked up. Please let me know how well it performs on your system.
[card:morozgrafix/MMM-Valentine]
Thanks.
-
RE: Replacing snow flakes with hearts in the MMM-SNOW module
How is it his? There are 15 different Valentines themed icons and most of the code is shamelessly borrowed from MMM-Snow by @MichMich

Going to get some dinner and push it up to GitHub
-
RE: How to set ipWhitelist for all device can acess to MagicMirror v2?
@AAPS It’s totally your call. I don’t think it affects anything as long as your network is closed and secure.
-
RE: Replacing snow flakes with hearts in the MMM-SNOW module
@cowboysdude Yes exactly. Almost done with MMM-Valentine :heart:
-
RE: Replacing snow flakes with hearts in the MMM-SNOW module
@tamug1 that’s a fun idea. I think it would be easy to modify this module https://github.com/MichMich/MMM-Snow to do hearts. If I have time later tonight I will try to do it.
-
RE: How to set ipWhitelist for all device can acess to MagicMirror v2?
@Mykle1 Glad it all worked out!
@AAPS Theoretically you are fine but you are whitelisting a lot of IPs. Assuming you are talking about IPv6. Here is a brief explanation example:
192.168.1.1/24subnet mask on IPv4 network would cover IP256IP addresses ranging from192.168.1.0to192.168.1.255.Start IP: 192.168.1.0 End IP: 192.168.1.255 Addresses: 256 Class: Class C Netmask: 255.255.255.0. Binary: 11111111 11111111 11111111 00000000::ffff:192.168.1.1/120subnet mask on IPv6 network would also cover256IP addressesStart Range: 0:0:0:0:0:ffff:c0a8:100 (IPv4 equivalent of 192.168.1.0) End Range: 0:0:0:0:0:ffff:c0a8:1ff (IPv4 equivalent of 192.168.1.255) Addresses: 256Now if you have
::ffff:192.168.1.1/24subnet mask on IPv6 network, you would allow20282409603651670423947251286016IPs to access your mirror. Which seems to be alot, but remember that devices most likely have to be on your home network in the first place.Start Range: 0:0:0:0:0:0:0:0 End Range: 0:ff:ffff:ffff:ffff:ffff:ffff:ffff Addresses: 20282409603651670423947251286016Here is a helpful cheat sheet for IPv4 and IPv6 subnet masks: https://kthx.at/subnetmask/
Hope this helps.
-
RE: Garage Door Detectors
@istepgueu as far as I understand MMM-Buttons only sends notifications when button is triggered (long or short press). Your sensor is acting as a long button press and you got it working so far. What I think you need is a custom module to display status of your garage door(s) that is capable of accepting notification from MMM-buttons and then changing message displayed (or image) on the MM. One thing to keep in mind (as far as i know) is that MMM-buttons assumes that no buttons are pressed when MM starts, in your case you may need some additional logic to account for times when MM starts when your garage door is opened. @Jopyth is the original creator of MMM-buttons and may have some ideas on how to deal with that.
-
RE: Garage Door Detectors
@istepgueu thanks for the write up. I was just looking for similar sensors for my garage.
-
RE: How to set ipWhitelist for all device can acess to MagicMirror v2?
@Mykle1 Sorry about delay. It looks like your RasPi is using IPv6 and earlier I gave you instructions for IPv4. Sorry about misinformation.
For IPv6 setting ipWhitelist subnet mask to
::ffff:192.168.1.1/120will give you access to 256 IP addresses. So your setting foripWhitelistpart inconfig.jswould look like this:ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.1/120"]After making changes restart MM and try to access from browser on your computer.
Let me know if it worked. Thanks.
-
RE: How to set ipWhitelist for all device can acess to MagicMirror v2?
@Mykle1 I will try to reproduce it once I get home and will get back to you. Hang tight.
-
RE: Garage Door Detectors
@ooom416354 this may get you started http://docs.unofficialliftmastermyq.apiary.io
-
RE: Garage Door Detectors
@istepgueu Please share your findings and code if possible. I’m looking into modding my garage door and using project that I mentioned above. Would be interested in getting info on sensors hookup and anything that you find while building it.
-
RE: Garage Door Detectors
@istepgueu you may find this project relevant and interesting https://github.com/davidgeller/hodor
-
RE: Adding a jQuery Module
In addition to @strawberry-3.141 response. I wanted to chime in with option of running it locally on your dev machine and using
node serveronlyand pointing your browser athttp://localhost:8080using familiar tools while developing. One of the catches is it will not work well if you are developing module that needs to interact with GPIO or other proprietary RasPi functionality.My personal workflow is roughly outlined here: https://forum.magicmirror.builders/post/13272
-
RE: Module programming preview, jsfiddle?
@washichi Interesting idea for the module. And glancing at your code you seem to be on the right track.
I may be not understanding what you trying Sublime Text to do. It’s just a text editor with ability to add various packages on top of it. It’s not a full blown IDE. I don’t believe that you can compile or preview the JavaScript module directly in Sublime.
My general workflow for module creation is something like this:
- Create
MMM-mymoduledirectory insideMagicMirror/modules - Open
MagicMirrordirectory in sublime - Add barebones config for the module to
modulesarray inconfig.js, for example:
{ module: "MMM-mymodule", position: "bottom_right", config : { } },- Start
node serveronlyand point my Chrome with dev tools open to thehttp://localhost:8080 - Create/edit
MagicMirror/modules/MMM-mymodule/MMM-mymodule.js, save it. (or other files that you need for the module) - Refresh the browser to pickup my changes, debug etc.
- Repeat steps 5-6 as I go along. If adding/editing
node_helper.jsrepeat steps 4-6 since node needs to pickup that file.
Some of restarts/refreshes can be automated on file save with different tools, but I’m not going to get into that right now.
- Create
-
RE: MMM-horoscope - daily horoscope
@istepgueu no problem. Let me know if you find something that can be used.
-
RE: How to set ipWhitelist for all device can acess to MagicMirror v2?
@nobita are you looking to open access to MM from all of the devices on your local network? If that’s the case you can add subnet mask of your local network.
For example if your router gives you IP address of
192.168.1.XXX(last 3 digits aren’t important and used for example only) then you would editipWhitelistsetting inconfig.jsas follows:ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.1.1/24"],192.168.1.1/24is a subnet mask for all 256 IP addresses that your router can give out to devices. (this is the most common scenario and there is a chance that your setup may be different).Don’t forget to restart MM app after making this change.
-
RE: Looking for Beta-testers!
@ESOB Thanks for flagging the issue. @roramirez thanks for the fix