Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.
/ smart-mirror_v2 Public archive

The 2nd edition of my DIY smart mirror project

License

Notifications You must be signed in to change notification settings

mrksbnc/smart-mirror_v2

Repository files navigation

smart-mirror

The 2nd version of my DIY smart mirror project

Project setup

npm install

Compiles and hot-reloads for development

npm run electron:serve

Compiles and minifies for production

npm run electron:build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

First rename sample.config.js to config.js in src/config folder then provide the necessary values and api keys This Project requires openWeatherMap, here developer api apiKey by defaut. Please note, that IMAP login may require generated app password in case two factor authentication is enabled.

export const weather = Object.freeze({
  location: {
    city: null,
    latitude: null,
    longitude: null,
  },
  api: {
    apiKey: null,
    baseURL: 'http://api.openweathermap.org',
  },
});

export const traffic = Object.freeze({
  location: {
    origin: {
      latitude: null,
      longitude: null,
    },
    destination: {
      latitude: null,
      longitude: null,
    },
    originAlias: null,
    destinationAlias: null,
    defaultOriginAlias: 'Home',
    defaultDestinationAlias: 'Work',
  },
  travelModes: ['car', 'pedestrian', 'bus'],
  api: {
    apiKey: null,
    baseURL: 'https://router.hereapi.com/v8',
  },
});

export const email = Object.freeze({
  imap: {
    user: null,
    password: null,
    host: null,
    port: null,
    tls: null,
    authTimeout: null,
  },
});