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

    Posts

    Recent Best Controversial
    • Alert' system as a call display

      Thought I’d share how I used the ‘Alert/Notification’ system in MagicMirror2 as a call display.

      0_1522565038413_20180331_193447.jpg

      First I set up the MagicMirror2 Module: MMM-RestApi.

      What is important to configure the API module properly in the ‘config.js’ is the ip of the MagicMirror node server.

      By default it is set to ‘localhost’, this will need to be changed to the ip address of the raspberry pi.

      Next is setting up IP addresses to the MagicMirrors whitelist.

      To be honest, I set my whitelist to ‘[]’, which allows any connection.

      Here is the fun part:

      I used one of these:

      alt text

      Yeah, remember waaaay back when all we had was dial-up internet connection?

      Well, it would seem that these dial-up usb modems may still have a purpose.

      Instead of trying to call out to the internet, we are going to monitor call data on a landline telephone system.

      There are many different ways to set up this device to the magic mirror. You could probably even connect it directly to a raspberry pi.

      Because I host a home server for media and automation/security… okay I can’t help myself I’m posting a picture of the server and network wall:

      0_1522567995817_IMG_2757.JPG

      … i digress …

      I decided I would attach the phone modem to my server, so I could manipulate the data and send it to whatever device I wanted.

      I read up on ‘AT’ commands (the commands that dial-up modems understand and found some useful information from Google.

      I created a console app in visual studio, I’ll post the code on GitHUB, in case anyone is interested. I’ll post a link here shortly.

      In any case, it works great!

      EDIT: Here is the initial commit to Git:
      Windows Console App…
      Maybe I’ll code it in .netCore so it’ll be cross-platform.

      HomePhoneModemController

      posted in Development
      C
      chef
    • RE: Alert' system as a call display

      @E3V3A many thanks, I think it is a cool project so I will :)

      posted in Development
      C
      chef
    • Hi There

      Hi! I have been following these projects for quite a while and decided it was finally time to create one of these smart mirrors.

      I have created a custom module for my Emby Media Server (I am a plugin developer over at emby.media)

      My mirror now connects to Emby and tells me about ‘nextup’ tv episodes and new movies available in my library to watch… cool!

      I’m going to install my custom Alexa skills as well so it will control my smart home just like the echos around the house.
      Tapping into Embys DLNA server, the mirror will start playback of media on all the devices around just like the echos do.

      I’m also going to add motion detection to the mirror to get it to come alive when someone is in front of it.

      I’m interested in the IpCam modules because I have also created a custom Alexa skill/Server which allows Alexa to describe people in Security Camera footage, by way of Microsoft Cognitive Sense API.

      When I ask Alexa who is at the door, it returns a string description of the person/people in the footage {Approx Age}/{Gender}/{Accessories}. I would also like to have the mirror show footage during this time as well.

      Here are some pics so far!

      alt text

      alt text

      alt text

      alt text

      posted in Show your Mirror
      C
      chef
    • RE: So ... to update MagicMirror I would ... ??

      many thanks ;)

      posted in Troubleshooting
      C
      chef
    • Quick Question regarding Magic Mirror cache

      Hi!
      Recently I have been using Magic Mirrors alert system, along with the RESTful(ish) Api to show an image from my home security camera.

      Example API POST request:

      "http://192.168.2.48:8080/api/v1/modules/alert/show_ALERT?timer=10500&imageUrl=http://192.168.2.18:9920/security/values/2&imageHeight=220px";
      
      

      Where the image is being served on a custom security web server.

      Everything is working quite nicely using the API module, however, it would seem that the magic mirror server is keeping an image in a cache and will repeat the same image over and over despite the POST request sending it a more current image.

      Is there a way to clear the Magic Mirrors cache?
      Perhaps a command I can send through the API prior to giving the Alert module the new image?

      I hope this question is making sense to the lead developers.

      I can go into more detail and explain the workflow further if this isn’t making sense to anyone.

      Many thanks!

      posted in General Discussion
      C
      chef
    • RE: Long running tasks - json parsing from url

      Thank you for the direction. It would seem that after a full day of mucking about, I have finally got it. Horray!
      Emby Media Server now has a place on my mirror.

      I’ll have to go tell the guys over there about. I have a feeling this Magic Mirror might catch on over there, especially now that there will be an official Emby plugin for it.

      Thank you again @E3V3A for taking the time to show some direction.

      Chef

      posted in Development
      C
      chef
    • RE: Quick Question regarding Magic Mirror cache

      Upon further research, perhaps it is Electron which is cache the image.

      And I might be wrong but it looks as though clearing cache has to happen in the core of the application.

      Something like “session.Clear()”

      posted in General Discussion
      C
      chef
    • 1 / 1