Watchers
A URL watcher checks a web page on a schedule and sends you an alert when it changes: a status page that goes from "Operational" to something else, a product page that says "In Stock", a release notes page that gets a fresh entry.
To add one, open the Tasks page, choose + Add, pick URL Watcher, and give it a URL, a mode, and a schedule. The settings are listed in Tasks, and schedules are explained in Scheduling.
The hub also watches files, folders, and RSS feeds for your phone's feeds. Those are set up on the Feeds page; see Server feeds.
Modes
| Mode | Shown as | Alerts when |
|---|---|---|
hash | Any change (hash) | Any of the page's visible text changes. Markup changes that don't change the text are ignored. |
selector | CSS selector | The text of the first element matching your CSS selector changes, for example .status-badge or #version. |
keyword | Keyword watch | Your keyword appears on the page or disappears from it. The match ignores upper and lower case. |
Pick the narrowest mode that does the job. Whole pages often carry dates, counters, or ads that change on every visit, and hash mode alerts on each of them.
What you'll see
The first check records the page as a baseline and doesn't alert. After that, each check compares with the last one:
| Result | Log entry |
|---|---|
| No change | debug: urlwatch: no change at https://example.com/status |
Change in hash mode | Alert level: urlwatch: page content changed at ... |
Change in selector mode | Alert level: urlwatch: .status-badge changed to 'Degraded' at ... |
Change in keyword mode | Alert level: urlwatch: 'In Stock' is now present at ... (or absent) |
| Nothing found | warning: urlwatch: nothing extracted from ..., for example when the selector matches nothing. |
All of these come from the source urlwatch on the private channel. The alert level is important unless you choose warning or error. Set up a rule in LemmeKnow to decide how each one notifies you.
If the page can't be fetched (it times out, or answers with an error status), the run is recorded as error on the task card and the hub publishes an error log entry saying the task failed.
The last value seen is kept in the hub's database, so a restart doesn't trigger an alert.
Pages that need JavaScript
By default the hub downloads the page and reads its HTML directly, which works for most pages and is quick. Pages that build their content with JavaScript can look empty that way.
Tick Use JS rendering (js) to load the page in a headless Chromium browser instead. The hub waits until the page stops loading, and if you fill in Wait for selector (wait_for), it also waits up to 10 seconds for that element to appear before reading the page. This needs the Chromium download described in Installing the hub, and takes noticeably longer than a plain fetch, so use it only where needed.
Examples
| Name | URL | Mode | Setting |
|---|---|---|---|
| Website check | https://example.com/status | selector | selector .status-badge |
| Back in stock | https://shop.example.com/item/42 | keyword | keyword In Stock |
| Release notes | https://example.com/changelog | hash | none |