MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Alert' system as a call display

    Scheduled Pinned Locked Moved Development
    6 Posts 2 Posters 2.9k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      chef
      last edited by chef

      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

      1 Reply Last reply Reply Quote 2
      • C Offline
        chef
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • C Offline
          chef
          last edited by

          Darn can’t post all the code, forum won’t let me.

          If anyone is interested in this project I’ll give you the code.

          Anyway, once you have the caller identification, send that data as an Alert to Magic Mirror! Sweet! Works like a charm :)

          E 1 Reply Last reply Reply Quote 0
          • E Offline
            E3V3A @chef
            last edited by

            @chef said in How I used the ‘Alert’ system as a call display:

            Darn can’t post all the code, forum won’t let me.

            If anyone is interested in this project I’ll give you the code.

            why don’t you post it on github?

            "Everything I do (here) is for free – altruism is the way!"
            MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

            C 1 Reply Last reply Reply Quote 2
            • C Offline
              chef @E3V3A
              last edited by

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

              1 Reply Last reply Reply Quote 2
              • C Offline
                chef
                last edited by

                Added a more stable version to Github. I’m looking to build a .netcore version so it will run on a debian plateform.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy