MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Beh
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 3
    • Followers 3
    • Topics 12
    • Posts 96
    • Groups 1

    Posts

    Recent Best Controversial
    • Beh's Mirror

      Hey guys! Here’s my mirror:

      It’s a mirror with a 27’’ display.

      I wrote a blog post about my mirror here. You can find some more pictures and a more or less detailed explanation of how I built it. :)
      I also added a detailed list of the parts to the blog post and added some links to where I bought them.

      I used WAGO connectors for the wiring - to save space in the body. Here’s a photo from the back side of my mirror:

      0_1478812694949_img_9484.jpg

      Here’s a picture of the final mirror:

      0_1478812579339_img_9493.jpg

      The mirror is right next to the entry door of my flat, so I have alle the necessary informations right there before I leave.

      For detailed information please read the blog post or ask me in this thread. ;)

      Greetings!
      B.

      posted in Show your Mirror
      BehB
      Beh
    • Integrate logging framework

      What do you think about using a logging framework like winston (the fork in the link seems to work with electron)?

      I don’t know if my debugging methods are wrong, but currently I’m debugging with a ssh session, having tail -f for error and out logs (or pm2 log) and via web browser console to my mirror’s IP on port 8080 to catch logs from the main application, the node_helper and a fetcher class.

      In my opinion this method kinda inconvenient. I’d like to have all logs (even the ones from fetcher modules and node_helper modules) in one place.

      If anyone has a better debugging method I’d appreciate any help and advice.
      If all of you are doing it like me, I’d start integrating a logging framework for the whole node.js application, which covers global logging over modules and make a PR when ready (and of course if @MichMich wants this).

      What do you think? Or do you have any advices for me?

      posted in Feature Requests
      BehB
      Beh
    • RE: Independent display controller based on PIR sensor.

      @bibi No, it’s more like having it added to the autostart (like on windows). Then it’s running as a service in the background, which can be controlled via systemd’s systemctl command.

      posted in Utilities
      BehB
      Beh
    • RE: Independent display controller based on PIR sensor.

      Example configurations for wiring are shown here:

      http://www.raspberrypi-spy.co.uk/2013/01/cheap-pir-sensors-and-the-raspberry-pi-part-1/

      and here:

      https://www.raspberrypi.org/learning/parent-detector/worksheet/

      I can’t really tell you the jumper and knob configurations, because I’m using a simple sensor like this:
      https://www.amazon.de/Keyestudio-Pyroelektrische-Infrarot-Bewegungssensor-Bewegungs-Sensor-Arduino/dp/B01GCRQJ0Y/ref=sr_1_9?ie=UTF8&qid=1478275900&sr=8-9&keywords=PIR+sensor

      Maybe you look in the PIR HOWTO thread or ask a question there:
      https://www.amazon.de/Keyestudio-Pyroelektrische-Infrarot-Bewegungssensor-Bewegungs-Sensor-Arduino/dp/B01GCRQJ0Y/ref=sr_1_9?ie=UTF8&qid=1478275900&sr=8-9&keywords=PIR+sensor

      posted in Utilities
      BehB
      Beh
    • Independent display controller based on PIR sensor.

      This is not really a module for the MagicMirror application itself, but I wrote it for my own mirror and I want to share it, if anybody has use for it.

      I wanted a turn-off-my-display-control that is independent from the MagicMirror application. It turns off the display after a given countdown time from the last time a motion was detected by a PIR sensor.
      So every time a motion is recognized, the countdown is set to the maximum countdown time. When no motion is noticed for that time, the display is set to sleep. When then a motion is detected, the display is turned on.

      I also provide a systemd service file, if you want to use it as a service.

      If you have use for it, I put it on GitHub:
      [card:deg0nz/MagicMirror-Display-Controller]

      NOTE:
      If you’re looking for an integrated (and probably easier to use) solution, please take a look at paviro’s awesome PIR-Sensor module.

      posted in Utilities
      BehB
      Beh
    • RE: MMM-PublicTransportBerlin - Public transport for Berlin and Brandenburg (departures)

      Hey @done,

      I’ll look into this tomorrow night. maybe this issue can be solved… I’ve got some ideas… I’ll keep you updated!

      posted in Transport
      BehB
      Beh
    • RE: MMM-PublicTransportBerlin - Public transport for Berlin and Brandenburg (departures)

      Thank you @done :)

      currently, you can’t look for multiple IDs, but:

      Usually, the module gets data for all transportation systems and stations around a main station. For example, if you enter Alexanderplatz, it shows data for the s-bahn, underground, bus and tram stations as well, even if the station IDs for the real tram and bus stations are different than the ID for Alexanderplatz.

      And I think, I don’t get your question right… Can you give me an example? Which stations would you like to have in the radius?

      posted in Transport
      BehB
      Beh
    • RE: MMM-PublicTransportBerlin - Public transport for Berlin and Brandenburg (departures)

      I added a marquee effect for direction descriptions which would be too long for the table width. Unfortunately it renders quite slow on the Pi. The transition of the text is not very fluid, but I think it’s ok if you need the long directions.

      Here is a video of the marquee effect rendered by my computer connected to the mirror via wifi.

      posted in Transport
      BehB
      Beh
    • RE: MMM-PublicTransportBerlin - Public transport for Berlin and Brandenburg (departures)

      Thanks :)

      It seems that there exists data by DB, as they are mentioned on the HAFAS website as a costumer here.

      I was able to find a REST API for Deutsche Bahn on programmableweb.com and GitHub.

      Unfortunately it doesn’t seem to have a function to get just the departures. I’ll look into it. Maybe I can just switch the Fetcher for my module and make some tweaks to make it work.

      EDIT:

      OpenLok looks promising, btw.

      posted in Transport
      BehB
      Beh
    • MMM-PublicTransportBerlin - Public transport for Berlin and Brandenburg (departures)

      Hi,

      I wrote a module that shows departures in Berlin and the surrounding state Brandenburg. The module uses a REST API that fetches data from the “Verkehrsverbund Berlin Brandenburg” (VBB). A guy named Jannis Redmann wrote it. So these credits go to him. It provides live data with departure delays. You can have a look at it here.

      You can give a delay time for like “How long does it take to my next station?”. Delay times of the lines are considered and part of the calculation for the delay. A line is drawn at the time now + delay, so the focus is on the departures you’re able to reach in the given delay time.

      It looks like this:

      example from Alexanderplatz

      You can configure how many reachable and unreachable departures should be shown and turn the fading of both parts on and off. Some more options and multiple use of the module are available.

      It’s working for now, but needs some more tests and UI tweaks.

      Download :

      [card:deg0nz/MMM-PublicTransportBerlin]

      posted in Transport
      BehB
      Beh
    • RE: Smartphone App for configuring MagicMirror

      @Jopyth Yeah, that is pretty much the direction I thought about, too. :)

      @strawberry-3-141 Okay. Nice! Please let us know, how you decide. And maybe we can help you in some points?

      Or if @strawberry-3-141 does something different, we can start coding and he’ll join us in spring :)

      posted in Development
      BehB
      Beh
    • RE: Smartphone App for configuring MagicMirror

      Yeah, you’re right. It would be a good reason to just start coding and gain knowledge.

      The RemoteControl module looks very nice, I’ll look into it. It looks like that it solves the convenience problem quite good. And platform independance is a good point.

      I’ll dig into it’s code a bit. It would be nice to have configurable per-module parameters in it as well.

      posted in Development
      BehB
      Beh
    • Smartphone App for configuring MagicMirror

      Hi,

      i don’t know, if this is the right thread for this, but I’ll just write it here:

      I just finished my own mirror and I almost finished coding my first module. Yaay! :) (Blog post and forum post with photos will follow soon! ;) )

      In the procedure of buildung the mirror, some of my friends and family asked, if I could build other mirrors for them. Since the configuration is quite hacky by writing into a JSON file, I had the idea, that one could create a simple smartphone app, which allows the configuration of the mirror and the modules.

      First - for our own convenience (the mirror builders) and second - for the convenience for the not-so-DIY-style people (like our parents and friends for example).

      I am willing to write a prototype app for iOS, since I am interested in learning Swift in the long way. But yet I have nearly no experience in coding smartphone apps whatsoever (I participated a 1-day Swift crash course at my university some months ago).
      Also, since I’m quite busy with studying and work, I’d see this as a long term project.

      I just wanted to know what you guys think about this and if some of you are in the mood to help me with that project. Maybe by helping me code for iOS or writing an equal app for Android or whatever…

      What do you think?

      posted in Development
      BehB
      Beh
    • RE: Fade-in/Fade-out with Electron

      yes, already got them :) thanks!

      Do I have to mark this topic as solved? (And if yes, how?) Or is this done by the admins?

      posted in Development
      BehB
      Beh
    • RE: Fade-in/Fade-out with Electron

      @strawberry-3-141
      Yeah, after digging the code, I think that is what I was looking for :=)
      I didn’t think it was THAT easy ^^’
      Thank you very much!

      posted in Development
      BehB
      Beh
    • Fade-in/Fade-out with Electron

      Hi,
      I’m currently building my own mirror. I’ll start building the frame tomorrow.
      I’m also writing a module which will give you current information for public transport departures in Berlin and Brandenburg (using the HAFAS realtime data by VBB).
      For the list with the departures I’d like to fade the old list items out and the new items in, so that there is some kind of “rolling” effect.

      It should look something like this when the module gets updated:

      (time) (list item)
      -2min item1 <------ fade out
      -1min item2 <------ fade out
      now item3
      +1min item4
      …
      +9min itemX
      +10min itemY <----- fade in

      Does Electron have such a feature? Or can I just import jQuery and use the fadeIn() and fadeOut() from there? Or does anyone of you has an idea which node framework provides such UI features?

      Thanks and Greetings
      Beh

      posted in Development
      BehB
      Beh
    • 1 / 1