This script scrapes tide data from the Niwa website and publishes it to an MQTT broker.
I wrote it to scrape info about tides and then use it in my Homeassist, but it can be used for any other purpose that requires data scraping and publishing to an MQTT broker.
To install this script, you can use uv:
uv sync-
Set up your environment: Create a
.envfile with the necessary configuration, take.env.exampleas a reference. -
Run the script: Execute the script using:
uv run main.py