feat: Migrate to new waste portal authentication system for fylde_gov_uk#5300
Open
j-webb wants to merge 1 commit intomampfes:masterfrom
Open
feat: Migrate to new waste portal authentication system for fylde_gov_uk#5300j-webb wants to merge 1 commit intomampfes:masterfrom
j-webb wants to merge 1 commit intomampfes:masterfrom
Conversation
Fylde Council migrated from a simple API endpoint to a new authenticated waste portal. This updated source now authenticates via email/password and extracts collection data from embedded JavaScript, from a "Syncfusion Schedule" component. Changes: - Add email/password auth logic - Extract schedule data from server-rendered JavaScript - Make UPRN optional (only required if user has multiple properties in the waste portal) - Add GUI configuration helpers for better UX (inspired by the `greyhound.ie` source) - Improved regex for flexible bin type extraction
bbr111
reviewed
Jan 6, 2026
| icon=ICON_MAP.get(jobName), | ||
| date=collection_date, | ||
| t=bin_type, | ||
| icon=ICON_MAP.get(bin_type), |
Collaborator
There was a problem hiding this comment.
Is the ICON_MAP still valid?
the regexp searches for :GREY|GREEN|BROWN|BLUE)\s+(?:BIN|BAG|BOX
but
ICON_MAP = {
"Grey Bin": "mdi:trash-can",
"Green Bin": "mdi:leaf",
"Green Box": "mdi:recycle",
}
contains only 3 Items.
maybe use default Icon?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fylde Council migrated from a simple API endpoint to a new authenticated waste portal. This updated source now authenticates via email/password and extracts collection data from embedded JavaScript, from a "Syncfusion Schedule" component.
Changes:
greyhound.iesource)Test output:
Also tested on my local HA instance.
Note: There are some breaking changes.
Users will need to update their configuration to use email/password instead of just UPRN. To create a username and password, they must:
The original
uprnparameter is still supported, but is now optional.