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.1.tar.gz (5.1 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.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for harlow_bindicator-3.0.1.tar.gz
Algorithm Hash digest
SHA256 58f362c9a62c81416a828e0ab1b4797da46103886f32271dbcdd736f181bbbea
MD5 f31287d0ddaa7aacf5374912c3f14812
BLAKE2b-256 4db066ccdb740a7f1137dad43d0225be14741963e8a1dd7276b3e5cb34bf3d52

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for harlow_bindicator-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98a549e4ed03b55d9a1206f1fda10ce51ee2efaecdd2050a2e063bf87ff94336
MD5 c903b8b952839605e86114701e726189
BLAKE2b-256 6c29e6492d0fbfe0f5fe3296c333b9a88fd7df4cdd8564a0d145f00ce24b7cec

See more details on using hashes here.

Provenance

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