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 PyPI - Version 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-3.0.2.tar.gz (4.9 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-3.0.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: harlow_bindicator-3.0.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for harlow_bindicator-3.0.2.tar.gz
Algorithm Hash digest
SHA256 b64488128b5e78653decdd52df37d36e8deb740ec9ca30c8ff35e96dcd895ab0
MD5 3127be24a4329ce97a08bdc0a2e9b107
BLAKE2b-256 7c2d0df3c8d1c22081ded1c254fcc2cb819cc0da120bd7ac06a476a97db2e8f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for harlow_bindicator-3.0.2.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-3.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for harlow_bindicator-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfeb8f47a420a2b945d81b931fd75447af4fe7a2a72de6fd98e7a17c9843eddf
MD5 d94736b2b9762df105db39b987084e87
BLAKE2b-256 3de24d40a3836e1d0bb211cadd949a8f648c0ab0c34838df9536ed6f8322139e

See more details on using hashes here.

Provenance

The following attestation bundles were made for harlow_bindicator-3.0.2-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