incredibly hacky script that automates checking SNAP balance in a browser with Selenium, then sends the data to Home Assistant.
Find a file
2025-02-12 16:02:47 -06:00
.dockerignore docker & home assistant support 2023-03-24 16:52:13 -05:00
.gitignore Update .gitignore and docker-compose.yml 2025-02-12 15:50:34 -06:00
docker-compose.yml Update .gitignore and docker-compose.yml 2025-02-12 15:50:34 -06:00
Dockerfile docker & home assistant support 2023-03-24 16:52:13 -05:00
main.py hopefully this makes it persist in HA 2025-02-12 15:36:26 -06:00
Pipfile docker & home assistant support 2023-03-24 16:52:13 -05:00
Pipfile.lock docker & home assistant support 2023-03-24 16:52:13 -05:00
readme.md fixed formatting 2023-04-02 16:02:59 -05:00
requirements.txt greatly minimized requirements.txt 2025-02-12 16:02:47 -06:00

snap balance checker

environment variables

required

USERNAME - your username for ebtedge.com
PASSWORD - your password
CARD_ID - 2-letter state code + last 4 digits (e.g. CA1234)

optional

FREQUENCY - how often in hours to check balance (default: 24)

DRIVER_URL - remote selenium driver URL (default: http://127.0.0.1:4444)
TIMEOUT - how many seconds to wait for pages to load (default: 10)

HA_URL - if you want to forward EBT balances to a Home Assistant instance
HA_TOKEN - go to your HA profile and generate a "long-lived access token"