Skip to content

Logic for creating web push notifications describing the current emission intensity forecast.

Notifications You must be signed in to change notification settings

groenstroem/web-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Grøn strøm web push

This repository contains the logic for creating web push notifications describing the current emission intensity forecast to all users currently subscribed to notifications.

Configuration

In order to send messages, we need to specify an email address for the subscriber; i.e. the administrative contact of the push message, as well as a VAPID private key corresponding to the public key used when new recipients are subscribed.

Running

The simplest way to run the script is to use Docker, specifying all configuration parameters as environment variables, and a Docker volume containing the database of subscriptions.

docker build -t groenstroem-web-push .
docker run -v some_volume:/data -e SUB_EMAIL=mail@example.com -e VAPID_KEY=... groenstroem-web-push

About

Logic for creating web push notifications describing the current emission intensity forecast.

Topics

Resources

Stars

Watchers

Forks