List of all different widgets currently available:
Shows todays weather. Data retrieved from SMHI (Swedish Meteorological and Hydrological Institute).
Calendar showing your next 20 events retrieved from your google calendar.
Temperatures retrived from your sector alarm sensors.
Status for your house sector alarm. Activates partial alarm when touching the house.
Latest news retrieved from Dagens Nyheter.
In the project directory, you can run:
Runs the app in the development mode. Both client and server.
Open http://localhost:3000 to view it in the browser.
Starts the node server only on port 4000.
Launches the test runner in the interactive watch mode.
Builds the app for production to the build
folder.
There are also build scripts to only build server or client, npm run build:server
and npm run build:client
.
To run the application you will need a .env
-file with the following properties
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GOOGLE_REDIRECT_URI=https://<app_server_deploy_location>:4000/auth/google
GOOGLE_CALENDAR_ID=your_google_calendar_id
SA_USERNAME=your_sector_alarm_username
SA_PASSWORD=your_sector_alarm_password
SA_DEVICE_ID=your_sector_alarm_device_id
SA_PIN=your_sector_alarm_pin_code(if you want partial alarm activatation)
USER_LOCATION=your_weather_location(lat,lon)
To enable SSL, put certificate.pem
and key.pem
in the root-folder (along with the .env
-file). On start the ssl-server will listen on port 4001.