MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. chef
    3. Posts
    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: MMM-Api - port specifics

      Make sure in the config.js that the IP address is not ‘localhost’, but is the IP address of the raspi.

      Default port is 8080. This is how the plugin will accept URL commands.

      Also, make sure any other PC or computers ip is added to the ‘white list’.

      That is how it is done

      posted in Troubleshooting
      C
      chef
    • MMM-Api - port specifics

      Good day,

      After installing the MM-Api module, I was having issues returning info from the server.

      reading the documentation, it would seem as though port 3001 is used (from the examples).

      I can see the endpoints being created in the “node-helper.js”

      this.expressApp.get("/api/v1/modules", (req, res) => {
      	res.send({'success': 'true', 'modules': this.moduleData});
      });
      

      But I don’t see any specifics on the actual port to use or forward through my router inorder to hit these endpoints.

      Is it indeed port 3001?

      unfortunately, any testing I’ve done doesn’t seem to return any information or control the server in any way… so far.

      My goal is to have the “MMM-RSTP” module show it’s camera stream when I post to an endpoint through the “MMM-Api”, for a particular amount of time.

      The endpoint would be requested by ‘unityhome.online’ Alexa Cognitive Security Service

      Anyway, I digress…

      Has anyone got the Api Endpoints working on MagicMirror?

      Many thanks!

      posted in Troubleshooting
      C
      chef
    • RCWL-0516 Person Detection Chip - Anyone used these before?

      When I was coding Arduino last year I ended up with quite a few left-over person detection chips.
      I guess they use microwaves to detect people.

      Has anyone else ever used them with raspberry pi?

      posted in Hardware
      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
    • Long running tasks - json parsing from url

      Good day,
      I’ve been spending some time reviewing the module development page.
      Reading through the MMM-JSON-Feed module documentation in the 3rd party modules section of the github, I was hoping to get some insight into why parsing json through the module is giving me trouble.

      I have created an endpoint plugin form my emby media server which returns a json object as follows:

      {"MediaNames":["Family Guy","Nashville","Stargate: Origins","Stargate Atlantis","Stargate Universe","Lethal Weapon","Black Lightning","Arrow","Young Sheldon","This Is Us","Legion","Marvel's Agents of S.H.I.E.L.D.","The Flash","Supergirl","Gotham","Agents of S.H.I.E.L.D.","Archer (2009)","The Big Bang Theory","The Walking Dead","Supernatural","Legends of Tomorrow"]}
      

      I believe I have run into problems because the json object returned from my server endpoint may need to parse asynchronously. No matter how many attempts to request info from my url, no json is parsed from the feed module.

      I’ve attempted to rewrite the request portion of the 'helper module", several different ways to parse the json from the url properly, but alas no joy.
      My brain hurts now from reading so much Stackoverflow… lol!
      I have two questions that might help me:

      1. is there a log available for MM, or a way to show the console readout, to help search for errors.

      2. Does the version of Nodejs that the MM is built on allow for async/await operators in functions? If not does anyone have an example of using promises in module development to return a long-running task and have the information return back to the modules primary js file, to display on the mirror?

      Many thanks,

      chef

      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
    • 1 / 1