Hello,
I’m fairly new to HA and your code here has turned me on to the “scrape” platform and sensor. I modified the url to match my area (quebec/st-romuald#_tides) and it is working perfectly.
I have two questions that i hope you can help me with.
The required “select” variable generally makes sense to me, but your string (#brujula_mareas_texto_movil) (which works just fine) mystifies me. Can you breakdown what I am looking at here?
The other question is about the “scan_interval”. what is the unit of measure, seconds, minutes?
I am in no great hurry, at your leisure please, it is most appreciated, thank you, Bob.
P.S. Many moons ago I lived in Whistler and often when traveling back and forth to Vancouver, i would stop and walk through Lighthouse Park.
Hi Bob, you are correct. When you look at the source HTML for the page it’s in Spanish. That just happens to be the tag where the tide value resides. #_tides is not needed, I just left it in case the website gets refactored in some way.
Scan interval is just to slow down bandwidth usage and site traffic a bit from the default 30 seconds to 120 seconds. From the HA documentation:
SCAN INTERVAL
Platforms that require polling will be polled in an interval specified by the main component. For example a light will check every 30 seconds for a changed state. It is possible to overwrite this scan interval for any platform that is being polled by specifying a scan_interval configuration key. In the example below we set up the your_lights platform but tell Home Assistant to poll the devices every 10 seconds instead of the default 30 seconds.
Example configuration.yaml entry to poll your_lights every 10 seconds.
@BarryHampants Did you use WillyWeather API in another project or for yourself for HA? I did a non-api scraper for Tasker on Android. I could port that to python as a tide sensor for HA if others are interested.
@jtitley - sorry, been caught up on other stuff for months. I am fairly sure I just used it for tasker to give me an alert when when wind, waves, tide and swell aligned but I can’t remember now.
Just getting into HA and trying to add this. Think it is correct but not pulling new tide info, when I run tideupdate.py still getting ‘Sandow’ (Default) even though I have changed URL. Anyone able to help?
Not sure if my location is correct as running HA in docker.
Has anybody attempted to integrate tidetimes.org.uk into HomeAssistant. I don’t think this can work if you have the Hass OS installation as no way of installing python or packages ?
I loved this until it started not working (to many api calls, I even tried it again 1 week ago and its already done, is there anyway in the folders py code I can get it to just pulll once a morning?