Skip to content
This repository was archived by the owner on Jul 21, 2026. It is now read-only.
alxwrdPublic archive

About

A slack bot for traffic alerts in the UK

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

Traffic Bot 🚘

Traffic Bot is a slack bot for traffic alerts in the UK. Data is pulled from an xml feed from highways.gov.uk, and then pushed to your slack webhook.

data.gov.uk link

example image

Installation

Simply download this project:

git clone https://github.com/alxwrd/slack-traffic.git
cd slack-traffic

Initialise a settings file by running :

python settings.py

Edit the settings.json file that was produced:

{  
   "max_distance": 1,
   "webhook": "https://hooks.slack.com/your-url",
   "location":{  
      "latitude": 51.500152,
      "longitude": -0.126236
   }
}

Then run traffic_bot.py

python traffic_bot.py

Traffic Bot will run once, and post any new items to your webhook. To run automatically, add it to your crontab.

Contributors

Contributions are welcome! Please raise an issue with any problems or suggestions. Or submit a pull request!

About

A slack bot for traffic alerts in the UK

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages