Send push notifications from ioBroker to Gotify
- (Thomas Pohl) The token is stored now encrypted
- (Thomas Pohl) node.js 22 is supported
- (Thomas Pohl) Optimized startup behavior when adapter is not configured
- (Thomas Pohl) Add timeout for http calls
- (Thomas Pohl) Update dependency versions
- (Thomas Pohl) Update to adapter-core 2.5.1
- (Thomas Pohl) Update dependencies
- (Thomas Pohl) initial release
- Login with you user in gotify
- Create an application for ioBroker
- Note the token of your new application
- Goto Adapter
- Click on github-cat-icon
- Go to Custom tab
- Enter https://github.com/ThomasPohl/ioBroker.gotify
- Install
- Create a new instance for the gotify-adapter
- Enter the Url auf you installation
- Add the previously created token
To send messages using blockly. Just add the gotify block to your script:
If yoou choose Markdown as format you can use Markdown to format your messages.
sendTo("gotify.0", "send", {
title: "DG lüften",
message: "Luftfeuchtigkeit im DG zu hoch!",
});
The following diagramm illustrates how ioBroker sends push notifications to your smartphone.
Both the ioBroker and the smartphone app connect to the gotify server using REST. The mobile app keeps an open websocket to the gotify server to be able to receive new notification.
When the ioBroker-adapter wants to push a notification it send a POST request to the Gotify server. The gotify server takes care of pushing the notification to the client.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2024 Thomas Pohl post@thomaspohl.net