MicrosoftEdge / magic-mirror-demo

A :zap:Magic Mirror:zap: powered by a UWP Hosted Web App :rocket:
Other
1.23k stars 225 forks source link

Configuration #28

Open tonyzolnoski opened 8 years ago

tonyzolnoski commented 8 years ago

I had the app up and running rather quickly but the installation instructions stop at the configuration process. How do you configure the app with your own settings? I can browse to "http://webreflections.azurewebsites.net/create" on the Pi but the configuration is incredibly slow and unusable with the animations enabled.

Maybe I am misunderstanding how this works, are these instructions just to get a demo of your app with your configuration settings running on my pi? Do I have to sign up for azure and configure my own instance? I noticed in your youtube video you do the "setup" process on your laptop, I tried running same setup process on my laptop and the snapshot doesnt work on any of my 4 computers. Am I missing something?

andypavia commented 8 years ago

@ajzolnoski, you need to create a hosted web app with http://webreflections.azurewebsites.net/mirror as the start page and deploy that app to the Pi. The mirror subdomain is the UI of the mirror. The create subdomain is to create your profile and is meant to run on your desktop.

You are not supposed to have to create your own Azure instance. You should be able to use ours. What are you seeing when you go through the create profile process?

ReevesL commented 8 years ago

I'm not sure if @ajzolnoski was struggling with the exact same issue as I was, but I couldn't figure out how to get to the configuration experience to begin with.

Here's what I did ( @andypavia , please let us know if this is the expected method or if there's an easier way):

  1. Follow the instructions for setting up visual studio and deploy the app to your Pi.
  2. In visual studio, change the start page to http://webreflections.azurewebsites.net/create
  3. Still in visual studio, change the target CPU to your PC's
  4. Change the run/debug target from device to local machine
  5. Run the app from within visual studio

At this point you'll have the create experience running locally on your PC (hopefully you have a web cam). Fill in the information and submit to save your face profile information to the cloud (make sure you throw away your anti-big brother tin foil hat first, it will interfere with the saving of the image).

tomjaimz commented 8 years ago

@andypavia Andy - is it possible to host the web application locally on the Pi rather than on the Azure instance? I would assume this means that Windows 10 IoT on the Pi would need to run NodeJS as a web server. Is it possible?

Gr8Gatsby commented 8 years ago

@tomjaimz - it is possible to run node.js locally on the Pi - https://blogs.windows.com/buildingapps/2015/05/12/bringing-node-js-to-windows-10-iot-core/ While we didn't build the project this way, you can run the web server portion locally. Likely there is a bit more work.