Skip to main content

Send alert the day before and on the day of bin collection in Harlow

Project description

Harlow Bindicator

GitHub Actions Workflow Status Coveralls Sonar Quality Gate GitHub Release GitHub commits since latest release GitHub License

Script when run goes the the Harlow Local Authority website collects the bin collection dates for a given UPRN then sends a notification to ntfy.sh if required. This script can either be run locally or as with this repository as a GitHub action.

Running Harlow Bindicator

This script can be run two ways either as a stand alone script that's scheduled using a cron job or as with this Repository a GitHub Action.

Running as a GitHub Action

There is a workflow within this repository check-binday.yaml which is scheduled for early morning each day to check for bin collections. This workflow requires two secrets, firsly the UPRN to be checked for, and the ntfy.sh topic to publish the message to. Then you'll start recieving notifications when you'll need to put bins out and which bin it is.

Running locally

The script requires additional tools to run, in order to load the webpage that provides the bin information from Harlow Local Authority which is the chromium-chromedriver, just run the command below.

sudo apt-get install chromium-chromedriver

Install Harlow Bindicator

pip install harlow-bindicator

The set up is very similar to how it's run on GitHub actions, with the requirement of a uprn and a ntfy.sh topic. Running the script is as simple as

harlow-bindicator--uprn "12379870" --topic "topic-name"

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".

Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

harlow_bindicator-2.2.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

harlow_bindicator-2.2.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file harlow_bindicator-2.2.3.tar.gz.

File metadata

  • Download URL: harlow_bindicator-2.2.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for harlow_bindicator-2.2.3.tar.gz
Algorithm Hash digest
SHA256 37b09076c32e103b170a2709b918b62be62c0e9b65d513985ec8903070e41c7c
MD5 4d9182cd5d56ae88e66b468e92c63817
BLAKE2b-256 fd767e902bd9f1a6bd40a831473fa9082b6ed422ab91db6acd7efc1c32172479

See more details on using hashes here.

Provenance

The following attestation bundles were made for harlow_bindicator-2.2.3.tar.gz:

Publisher: publish.yml on joe-mccarthy/harlow-bindicator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file harlow_bindicator-2.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for harlow_bindicator-2.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c7cc681ca68fe805accfd94ebfbe6024c5718d97a23d060fbcbb967590d72be0
MD5 55a26a57544c1d26b60c25c175eb6706
BLAKE2b-256 64607f7fbcd475b4c3e55cc0b014f92fa24fc97421c391aa7f8981716b63bdb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for harlow_bindicator-2.2.3-py3-none-any.whl:

Publisher: publish.yml on joe-mccarthy/harlow-bindicator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page