A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • 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>

    0_1464160002764_opemtherm2.png

  • readFileSync

    17
    0 Votes
    17 Posts
    9k 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.

    alt text

  • 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
    7k 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

    3
    1 Votes
    3 Posts
    3k Views
    MichMichM

    Go for node. Adding a python solution would make no sense.

  • Camera / Motion based wake/sleep

    6
    0 Votes
    6 Posts
    5k Views
    A

    @paviro Nice. I’ll definitely try it

  • GPIO without root

    Solved
    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

    5
    0 Votes
    5 Posts
    3k Views
    paviroP

    Well that’s true :/