Skip to content

bhwood/wealden-council-bindicator-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wealden Council Bindicator

Functionality

  • Retrieves bin collection information for a given Unique Property Reference Number (UPRN) specifically for the Wealden Council website.
  • Identifies the dates for the next bin collection and next recycling collection.
  • Formats the dates in a human-readable format (DD/MM/YYYY).
  • Provides a message indicating the type of bin for the next collection.

Important Note: This script is currently only designed to work with the Wealden Council website.

Dependencies

  • Flask: Web framework for building the Flask version.
  • requests: Used for making HTTP requests to the Wealden Council website.
  • json: Used for decoding JSON data from the response.
  • dotenv: Used for loading environment variables (for storing UPRN securely).

Usage

Prerequisites:

  1. Install the required libraries:

    pip install -r requirements.txt
  2. Create a .env file in the project directory.

  3. Add the line UPRN=YOUR_UPRN to the .env file, replacing YOUR_UPRN with your actual UPRN.

Run the Flask version:

  1. Open a terminal or command prompt and navigate to the project directory.

  2. Run the Flask application using:

    python main.py
  3. Open a web browser and go to http://127.0.0.1:5000 to access the application.

  4. You should see the bin collection information displayed in a webpage.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published