MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. Tags
    3. coding
    Log in to post
    • All categories
    • O

      Code a MagicMirror by myself?
      General Discussion • help coding • • oddo

      3
      0
      Votes
      3
      Posts
      248
      Views

      O

      @sdetweil Thanks for your answer! I will look behind the documents and try my best to get something going. 😉

    • sranj

      LIRC AUTOMATION
      Development • automation coding gpio lirc pir python sensor • • sranj

      4
      0
      Votes
      4
      Posts
      131
      Views

      S

      @sranj ok, so u receive the trigger in the node_helper, and need to launch/exec/spawn your python pgm

      so you need the child_process library
      https://nodejs.org/en/knowledge/child-processes/how-to-spawn-a-child-process/

      PIR uses the same library to launch the tvservice command, or vgencmd to blank the screen

    • B

      Modules again.....
      Development • module modules smart mirror smart mirror coding code quotes • • Brenj

      11
      0
      Votes
      11
      Posts
      2270
      Views

      idoodler

      @sdetweil Actualy JSON requires quotation of the key and of the value (if the value is a string)

      Example of a JSON file:

      { "string": "This is a string", "bool": true, "int", 1, "float": 3.14, "arrayOfStrings": [ "string1", "string2" ], "arrayOfInts": [ 1, 2 ] }

      The same can be used in a Javascript file, but as an object. You can also throw away the quotation of the keys.

    • B

      I cant load 3rd party modules to my smart mirror.
      Troubleshooting • coding module modules smart mirror magicmirror magic mirror • • Brenj

      8
      0
      Votes
      8
      Posts
      1870
      Views

      V

      If you have config file copy config.sample
      Start again copy the sample file to your documents and downloads.
      Remove sample from the configuration file
      Start again
      Remember start with {
      Code
      Ends in },

      It’s not always easy to see what’s wrong as the code you are using could be wrong .

      as l’ve not used this module l cannot say
      Keep trying your get their in the end
      If it go wrong it’s easy to start again.

    • D

      Request for help: LED Control module for and 5050smd strip
      Requests • led module smd5050 mosfet coding • • disease

      5
      0
      Votes
      5
      Posts
      1811
      Views

      metalldetector

      habe alles nach anleitung verkabelt… die pins geändert vom pir …
      habe pigpio installiert und rebootet
      der pir reagiert auch aber bildschirm bleibt grau… dh ohne bild… monitor ist aber an.
      led streifen leuchtet aber nicht…

      was kann das sein
      thx

    • 1 / 1