The 2nd version of my DIY smart mirror project
npm install
npm run electron:serve
npm run electron:build
npm run lint
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,
},
});