A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • Node_helper and security key/certificate question

    1
    0 Votes
    1 Posts
    1k Views
    T
    I have gotten the AWS (Amazon Web Services) IOT mgtt client working on my raspberry pi 3. I would like to add this script to a custom module on my magic mirror to enable Echo voice control the Pi I/O’s and provide visual status of these I/O’s on the Magic Mirror. I think I almost understand how to set up my module’s node_helper file with the mqtt client, but I don’t understand how it will start correctly when I load up Magic Mirror. To start the mqtt client as currently installed outside the Magic Mirror app: you would use: npm start /example/sampleproject.js -f ~/certs/ The ~/certs/ folder contains the private key and CA certificate need for authentication with the Amazon services. I don"t understand how to do this within the Magic MIrror app. I have gone through all the scripts but don’t see/understand how to insure the npm cli args could be passed in when starting Magic Mirror. Would someone have the knowledge/experience to point me what I need to read/study/understand to enable this? Could it be as simple as hard-coding the path’s to these files in the script I will place in the node_helper folder? Point me in the direction I need to go and I will do my best to figure it out!
  • Calendar event dates enhancement

    14
    1 Votes
    14 Posts
    13k Views
    KirAsh4K
    Shouldn’t matter where it’s coming from. It was a guess on my part. So we’ll have to add an option to turn off the time display.
  • This topic is deleted!

    9
    0 Votes
    9 Posts
    103 Views
  • More Data

    1
    0 Votes
    1 Posts
    1k Views
    P
    delete…
  • Issue with sendSocketNotification and socketNotificationReceived

    Solved
    13
    0 Votes
    13 Posts
    11k Views
    paviroP
    Glad it helped! :)
  • NFL Scores module...

    1
    1 Votes
    1 Posts
    1k Views
    cowboysdudeC
    I have written and NFL Score module for joomla [my site] but have NO clue about writing anything in js and these files would have to be rewritten. It’s either that or add php to your pi setup… So if anyone is interested in doing this or helping greatly I will be happy to share what I have
  • Displaying a Black and White .png Image

    3
    0 Votes
    3 Posts
    3k Views
    L
    Thanks! I’ll definitely give this a try.
  • How to use "require" in a module?

    4
    0 Votes
    4 Posts
    4k Views
    KirAsh4K
    That’s how the node_helper method works, module sends a request, the node_helper.js script responds.
  • Weatherforecast Wunderground module question

    17
    0 Votes
    17 Posts
    14k Views
    cowboysdudeC
    @KirAsh4 Ok got it!! Thank you!!! :)
  • Hide Module (not deleting if from the config.js)

    3
    0 Votes
    3 Posts
    3k Views
    MichMichM
    also, you could just comment out the position part (I think).
  • from bash script to a module

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    R
    Thai you,
  • Help with tables?

    Solved
    7
    0 Votes
    7 Posts
    4k Views
    RedNaxR
    Well you did help me solve it, but not using divs. Turned out i had to put the icon in an inside the and not directly in the <td><i class="fa fa-fire"> </td> instead of <td class="fa fa-fire"></td> [image: 1464160042124-opemtherm2.png]
  • readFileSync

    17
    0 Votes
    17 Posts
    12k Views
    M
    @KirAsh4 Yeah, it is working for me as I want it. I figured it wouldn’t be overly useful to others anyhow since there was a lot of back-end work to do (namely setting up json streams that match the module code from the weather station, uploading to an appropriate location). Screenshot of my current display is below. It updates every 5 seconds using data from my local Davis weather station running Cumulus software. The rain information (total daily rain on top left, current rain rate at bottom left) only display if there has been rain today or it is currently raining respectively. It will also display winds like “12 G23” if the winds hit gust criteria (over 18MPH gusts and more than 10MPH over the wind speed). It is pretty trivial to put any information you can get into the json file to display. I’d be happy to try to properly modularize this if there is some interest, there’s just so many options and variations of stations/json exports/etc that I’m not sure I’d know where to start. [image: Capture.jpg]
  • Load data from json file

    7
    0 Votes
    7 Posts
    6k Views
    M
    @paviro Ah, well thanks for the feedback. I’m hoping to get a bit of a hybrid between that app and pulling data from my own weather station. I’d like to keep the sunrise/sunset and the current conditions coming in from openweathermap and put my own station’s temp/wind. Was thinking modifying his would be a little easier than from scratch. :) Maybe I’ll get lucky and he’ll see this and point me in the right direction.
  • Synchronous requests [solved]

    14
    0 Votes
    14 Posts
    10k Views
    paviroP
    And there comes the “Doh!” moment! :D Thanks completely overlooked that…
  • Rest API for layout switching

    2
    0 Votes
    2 Posts
    2k Views
    0
    Okay a bit later and I found this: http://electron.atom.io/docs/api/ I don’t know if it will help or if I should use anything on it so if you have any knowledge of this please advise.
  • Philips Hue Light Switches based wakeup

    utility
    3
    1 Votes
    3 Posts
    4k Views
    MichMichM
    Go for node. Adding a python solution would make no sense.
  • Camera / Motion based wake/sleep

    utility
    6
    0 Votes
    6 Posts
    5k Views
    A
    @paviro Nice. I’ll definitely try it
  • GPIO without root

    Solved gpio wiring-pi
    4
    0 Votes
    4 Posts
    6k Views
    paviroP
    Found a workaround! Use the shell within node to export the pins. Works without root if the user is added to the gpio group, to do that execute sudo useradd -g pi gpio. Setup the pins const exec = require('child_process').exec; exec("echo '22' > /sys/class/gpio/export", null); exec("echo 'in' > /sys/class/gpio/gpio22/direction", null); exec("echo '17' > /sys/class/gpio/export", null); exec("echo 'out' > /sys/class/gpio/gpio17/direction", null); Control the pins gpio.setup('sys'); gpio.wiringPiISR(22, gpio.INT_EDGE_BOTH, function(delta) { if (gpio.digitalRead(22) == 1) { console.log("High"); gpio.digitalWrite(17, 1) } else if (gpio.digitalRead(22) == 0) { console.log("Low"); gpio.digitalWrite(17, 0) } });
  • Usind date from one module to another

    core
    5
    0 Votes
    5 Posts
    3k Views
    paviroP
    Well that’s true :/