Docs › Administration
Notifications
Omnibus can tell your household when something needs a person, by posting to a topic on an ntfy server. Anyone subscribed to that topic in the ntfy app gets a push notification on their phone or computer, with a link back into Omnibus.
- Works on
- Web
- iPhone
Where to find it
- On the web: Administration › Notifications.
- On iPhone: You › Server settings, then Connections and public URL under Notifications.
Only an admin can change these settings, and they apply to the whole server. There's no per-reader setting in Omnibus: a connection posts to one ntfy topic, and each person decides for themselves whether to subscribe to it in their ntfy app. The page needs a connection to the server; on iPhone the controls are greyed out while you're offline.
Right now there's one thing Omnibus notifies about: a book request waiting for someone to pick a version. So notifications are mostly useful once book requests are turned on. What sends a notification has the details.
Links in notifications
A notification's link opens the request at the server's public URL, the address your household reaches Omnibus at. On the web it's set in Administration › General; see Server address and sharing. On iPhone it's on this screen, as Public URL.
At the top of the Notifications section, Links in notifications shows the address in use, with Change it in General. If none is set it says No public server URL is set: notifications still arrive, just without a link.
Before you start: ntfy
ntfy is a free, open-source service for sending push notifications. You can use the public server at https://ntfy.sh or run your own. Each person who wants the notifications installs the ntfy app (Android, iPhone, or the web app) and subscribes to the topic you choose.
On the public server, anyone who knows a topic's name can read it, so pick a name that's hard to guess, or turn off Include book and requester details on the connection. On your own ntfy server you can lock the topic down and give Omnibus an access token or a username and password.
Add a connection
Choose Add connection. On iPhone, tap +, or Add a connection when there are none yet. The New ntfy connection form opens.
Fill in the fields below.
Choose Send test (on iPhone, Send a test) to check it before you save. See Test a connection.
Choose Save connection (on iPhone, Save). A new connection starts switched on.
- Name
- What the connection is called in the list, such as "Phone" or "Family". Up to 100 characters.
- Server URL
- The ntfy server's address, such as
https://ntfy.sh. A server under a path works too. - Topic
- 1 to 64 letters, digits, hyphens or underscores. Subscribe to this topic in the ntfy app to get the notifications.
- Sign-in
- None for an open topic, Access token for an ntfy token, or Username and password. Once saved, a token or password is never shown again; leave the field blank when editing to keep it.
- Priority
- ntfy's five levels, from Min (1) to Urgent (5). Default (3) is chosen to start with. The ntfy app decides how each level sounds and shows.
- Tags (optional)
- Separate tags with commas. A tag that names an emoji, such as
books, shows as that emoji. - Include book and requester details
- On to start with. Turned off, the message leaves out the book's title and who asked, for a topic other people can read.
- Send a notification when
- The events this connection is told about. A request needs a version picked is the only one, ticked for a new connection, and it's offered only while book requests are on.
What sends a notification
A request needs a version picked. When a reader asks for a book, Omnibus searches for versions. If the reader who asked isn't allowed to choose a version themselves, the request stops at Choose a version and waits for someone who is. That's when the notification goes out. It reads:
A request needs a version picked
Ada asked for the ebook of “Dune” by Frank Herbert. 4 versions to choose from.
With Include book and requester details off, the second line is "A book request is waiting for someone to pick a version." instead. Tapping the notification opens the request in Omnibus at the public server URL, where you sign in as usual.
If the version is picked, or the request is cancelled or deleted, before the notification has gone out, Omnibus drops it rather than send news that's no longer true. While book requests are turned off, a connection keeps the event ticked but nothing sends it.
Test a connection
There are two ways to send a test:
- Send test in the form (on iPhone, Send a test) sends the settings as they stand, without saving them. While editing, it uses the saved token or password if you left that field blank.
- On the web, Test on a connection in the list sends to the saved connection as it is.
The test arrives titled "Test notification from Omnibus", saying "This is a test. Notifications from Omnibus will arrive here." It links to the public server URL when one is set. Omnibus shows Test notification sent. once ntfy accepts it, or Test failed: with the reason, such as a wrong address or a refused token.
Turn off, edit or delete a connection
Each connection in the list shows its name, where it posts (such as ntfy.sh/omnibus-requests), an On/Off switch, and how its last notification went: No deliveries yet, Delivered with how long ago, or Failed with the reason underneath.
- Turn it off
- Flip its switch to Off. It sends nothing, and anything still waiting to go to it, retries included, is dropped. Turned back on, it sends only what happens from then on.
- Edit it
- Choose Edit (on iPhone, tap the connection, or touch and hold it and choose Edit), change the fields and save. Leave the token or password blank to keep the saved one. If you change the server URL, or the username, you have to type the token or password again, so a saved secret never goes to a new address.
- Delete it
- Choose Delete (on iPhone, touch and hold the connection and choose Delete), then Delete connection. Omnibus stops sending to it and drops anything still waiting. Nothing changes on the ntfy server, and anyone subscribed simply stops hearing from Omnibus.
Delivery and retries
Notifications are queued and sent in the background, so a slow ntfy server never holds anything up, and a queued notification survives a restart. If ntfy can't be reached or answers with an error worth retrying, Omnibus tries again after 30 seconds, then waits twice as long each time, up to an hour between tries, or longer if ntfy asks it to wait. After about five hours (twelve tries) it gives up and the connection shows Failed. An error that retrying won't fix, such as a refused password, fails at once.
Rarely, a notification can arrive twice: if the server stops just after ntfy accepted it, Omnibus sends it again when it starts. The record of each connection's deliveries is kept for 30 days.
Setting the public URL from the environment
The public server URL can come from the OMNIBUS_PUBLIC_URL environment variable instead; see Server address and sharing. Notification connections themselves can only be set up in the app.