Skip to content

Bot listening to openstreetmap changeset stream and posting them to slack

License

Notifications You must be signed in to change notification settings

rustyb/slack-changesets

Repository files navigation

Slack Changesets

Post changesets within certain bounding box to a slack webhook of your choice.

Usage

Got a redis instance

If you have an instance of redis already running all you need to do is run the index.js with the --slackWebhook & --bbox switches. Following is an example for Lesotho:

 node index.js --slackWebhook=https://hooks.slack.com/services/... --bbox=[26.74072265625,-30.751277776257812,29.487304687499996,-28.53144]

Note: do not add spaces in the bbox switch.

Docker

After cloning the repository, first copy the sample env file and update the slack web hook url and the bounding box for the country you wish to monitor.

cp sample.env > .env

Start docker and slack webhooks should start ringing in.

docker-compose run -d app

To Do

  • Add cmd line args to supply webhook
  • Use geojson polygon to rather than bounding box for filtering (see turfjs/intersect)

Inspired by

About

Bot listening to openstreetmap changeset stream and posting them to slack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages