incredibly hacky script that automates checking SNAP balance in a browser with Selenium, then sends the data to Home Assistant.
Find a file
2023-04-02 16:02:59 -05:00
.dockerignore docker & home assistant support 2023-03-24 16:52:13 -05:00
.gitignore working scraper, no update loop yet 2023-03-02 19:42:20 -06:00
Dockerfile docker & home assistant support 2023-03-24 16:52:13 -05:00
main.py docker & home assistant support 2023-03-24 16:52:13 -05: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 dumped pipfile to requirements.txt 2023-03-24 17:35:37 -05: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"