Web application for a Smart/Magic mirror
Application is designed to run on a stationary Smart/Magic Mirror and displays current date, time and weather information in the desired language.
The application uses an API from https://openweathermap.org/api
To run this applictation you need to have your own API key from https://openweathermap.org/api
Setting up:
-
Create a file called ".env" in your root folder (Next to this ReadMe)
-
Now you need to input these variables into .env and use your own values for them
REACT_APP_CITY_LOCATION=YourCity REACT_APP_LANG=DesiredLanguage REACT_APP_WEATHER_API_KEY=YourAPIKey
For all the available languages and their country codes, visit: https://openweathermap.org/api/one-call-3#multi
-
Install node.js https://nodejs.org/en/download
Restart your computer after installation! -
Run the following commands:
npm i
npm start
-
Application should start running on https://localhost:3000/
If you are using VSCode you should also get a message like this in your terminal
You can now view smartmirror in the browser
Local: https://localhost:3000 On Your Network: xxxxxxxxxxxxxxxxxxxxx
-
Now you can build it using the command
npm run build
Then copy the build folder into a server where you can host the application
You can use this: https://github.com/Appekip/smartMirrorServer