Very nice start, I have had a look at it already, made a PR with a few things I stumbled upon. Let me know what you think on Github.
Read the statement by Michael Teeuw here.
Posts
-
RE: Module template
-
RE: Python Shell not working properly on MM
@zichao92 Looks fine, not sure why it doesn’t work. You do not start he module multiple times, do you?
-
RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror
@ottobot This is why I initially made my module display the URL on the mirror (if the module is visible). No need for an app here. The functionality itself could be refined, since it apparently does not work 100% of the time.
-
RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror
@fox I like the idea. Added it to my list.
@AAPS Don’t know the reason for the “false” error messages, yet. Running commands would be nice, however without proper authentication, guests can just do whatever they want on your Raspberry and therefore potentially on your entire network. At the moment the stuff they can do is much more limited.
-
RE: [MMM-PIR-Sensor] Install failing
-
RE: Python Shell not working properly on MM
-
RE: Controlling Embedded Youtube Video on MM
@zichao92 You can not send notifications from the
node_helper.js(they are running in the back end), they can only be send from the modules in the front end, i.e.MMM-Remote-Control.js.Edit: Also the method I described above should already do all the forwarding of the nofification until it is broad cast to the other modules. Did you change anything in the other files?
Edit2: These are the lines which should make everything work: In the node_helper.js and in the MMM-Remote-Control.js.
-
RE: Module: iFrame! Starting Video automatically!
Have you been able to solve it? Is there anything missing you would need in the Buttons or Remote Control module?
-
RE: Sending notification from MMM-Remote-Control to MMM-ProfileSwitcher
It looks like it should work. Are you trying this from a javascript, or are you just trying to figure out the static URL you need to call?
Please have a look at this example: https://jsfiddle.net/5yzw2zrb/6/
On the left you can see javascript code you could use to build the needed URL, and on the left you can see an example. Adapt the variables in the code to build some other kind of notification. Dont forget to run the script, e.g., with CTRL+Return, to see the the new result.
Edit: Another example which should be working out of the box is building an alert notification.
-
RE: Defining a module configuration schema standard
@strawberry-3.141 Good idea to get this issue out here.
I think JSON Schema (as suggested by @roramirez) seems like a reasonable solution, and if I am right, it is compatible with the JSON Editor the MMM-Admin-Interface already uses.
As a file name I think it should end with
.json, e.g.config.schema.json. This file should include the configuration options for the module.After we find a good solution, we could add this to the MagicMirrorModule-Template?
-
RE: [MMM-Buttons] Connect multiple buttons to send configurable notifications
@Mar Glad you got it work. :) Did you switch back to the default (regarding the 0 and 1)? Or is it now different than in the main code? Not yet possible to switch between multiple profiles. Could maybe be implemented as an array of notification definitions, instead of a single notification definition and then it cycles through these notifications on each press?
-
RE: [MMM-Buttons] Connect multiple buttons to send configurable notifications
@Mar Well its not, as if it were documented anywhere in my readme. :( Should probably add this somewhere.
How long are you pressing the button? For a very short time? Note, that if the press is longer than 500ms it will not be registered as a (short) press (it is the
maxShortPressTimeand can be configured).If this is not the case, I am sorry, but I have no real idea how to fix it, without having the same situation on my Pi.
-
RE: Controlling Embedded Youtube Video on MM
@zichao92 Try something like this:
var notification = "EXAMPLE"; var payload = "some payload, could be an object"; var encoded = encodeURIComponent(JSON.stringify(payload)); Remote.getWithStatus("action=NOTIFICATION&n"+"otification=" + notification + "&payload=" + encoded);Edit: Added “+” to remove strange replacement with ¬.
-
RE: [MMM-Buttons] Connect multiple buttons to send configurable notifications
@Mar @istepgueu The library (
onoff) I am currently using does not directly allow configuring pull up and pull down resistors, and I was not able to make it consistently work (see Readme).Therefore I myself made use of the “right” pins for my setup, as the readme says:
The defaults can be seen in Table 6-31 on pages 102 and 103 of the BCM2835 ARM Peripherals documentation.
There I simply used buttons with the correct default pull-up/pull-down resistor configuration (second column of that table), and I wanted a few pins close together on the board, so I chose GPIO 22,23,24 and 25 (connected 4 buttons), since they all have the default of a low input.
-
RE: [MMM-Buttons] Not recognizing button presses
@Mar Good thing you found this error. Very strange, that it did not complain on my Pi before.
-
RE: [MMM-Buttons] Not recognizing button presses
@istepgueu Can I add the snippet and instructions to the readme?
-
RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror
@schlachtkreuzer6 I have no idea. Is there anything in the logs?
-
RE: not able to profileswitch/schedule LocalTransport module
-
RE: Module: iFrame! Starting Video automatically!
@roramirez is right I think.
@lolobyte I thought you guys were talking about this module: https://github.com/ptrbld/MMM-Podcast? Does it not work?