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 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

python src/main.py --uprn "12379870" --topic "topic-name"

However before running the script be sure to installe the requirements for python with

pip install -r requirements

The script also 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

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.1.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.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: harlow_bindicator-2.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 869eeaab4679ec31f9b3845c4e580e804daea4addbdbe2f0c4b300a67bc8f752
MD5 bbd6c8568d9bbdc73af1d55fcc693473
BLAKE2b-256 871600d75fb1f129cc145b90cc9f3ebf171e1c2ce3471d41ea5b2895b7748a6a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for harlow_bindicator-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 978a0fe483cc82f7d94475b9a1f01fe7c0b4954ba2a6cbb112791c8ee65dcc8a
MD5 5702a251cc89fd67d0a62f144d370782
BLAKE2b-256 72b2a6d12e0751cf987183122698578cedacb7325cbf11ebf3e73bfa5cdca048

See more details on using hashes here.

Provenance

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