| |
Due to the openness of XMPP, many other things can be done in addition to normal message exchange. The Internet of Things (IoT) is a treasure trove here.
Content
Nationwide civil protection alerts are provided via the federal government’s “Emergency Information and News App” (NINA). However, these can also be received [directly via Messenger**] (#direct-in-messenger) or via the free Android app FOSS-Warn, which uses the “Unified Push”** function from Conversations and does not require Google services.
NINA provides important warnings for various hazardous situations:
To receive the relevant information, you need to “subscribe” to the areas or locations for which you want to receive alerts. You can choose counties, municipalities, or areas of one or nine square kilometers around a location of your choice. It is best to subscribe to your place of residence and your place of work or training, for example.
The NINA warning app also provides information for your current location if desired. The following two options, on the other hand, are not official federal applications, but they do have other advantages…
The advantages are that alerts are not only possible on smartphones but also on PCs (desktops/laptops/tablets) and without an extra app.
The subscribed alerts appear directly in Messenger like messages from a normal contact. However, the setup is not quite as convenient, as you have to determine the desired coordinates (rounded to two decimal places) in advance in a map app or online, e.g., at Openstreetmap.
Setup:
Commands that can be sent to the NINA bot/contact (wait a few seconds for a response) are:
The app is completely open source! Other advantages of the app version include the graphical representation of the affected areas combined with a modern user interface and corresponding settings options.
Setup on Android:
… for Android control / notifications.
The Modular Android XMPP Suite (MAXS) consists of a set of open source licensed (GPLv3) Android applications that allow to control an Android device and receive notifications via XMPP. For example, an SMS message can be created and sent on the desktop/laptop by sending a command message from any standards-compliant XMPP client to MAXS on the smartphone.
For example, the ring mode can be changed, SMS sent, contacts queried - but also notifications from this device such as incoming SMS, last location, battery status, etc. can be received.
MAXS is therefore an interesting way to use the XMPP system with added value.
MAXS attaches particular importance to the protection of privacy. It has a modular structure so that users can choose the functions they need. This means that the functionality is divided into components that are themselves standard Android applications.
These components can be divided into three types: Modules, transports and the main component. Modules provide the notifications and commands that are exchanged between MAXS and the user via so-called transports. MAXS modules and transports are controlled by the MAXS main application.
More information on this can be found on the project page: http://projectmaxs.org (external).
The individual modules are described here: http://projectmaxs.org/docs (external)
As this is an open project, all information (including the source code) is publicly available.
English-language project page on Github: https://github.com/ProjectMAXS/maxs (external)
Quelle: MAXS
… Social network with XMPP,
Movim (external) is a decentralized social network that works with the XMPP protocol. You can use it with any chat account; it supports group messages, group chats and has the standard end-to-end encryption (OMEMO).
Source: https://www.hasecke.eu/post/movim (external)
A simple command interface:
With the help of the Jabber module for FHEM you can not only send messages from FHEM to your cell phone, but also use the opposite direction to send commands and instructions to the server.
Description: https://wiki.fhem.de/wiki/FHEM_spricht_jabber (external)
FHEM-Wiki: https://wiki.fhem.de/wiki/Hauptseite (external)
FHEM forum: https://forum.fhem.de (external)
If you want to monitor your home’s indoor climate (temperature, humidity, CO2 value, air pressure, etc.) or the condition of your houseplants, this is actually quite easy to do. With the help of a Raspberry Pi and the corresponding modules from Tinkerforge (external), you can be informed at regular intervals about the climatic conditions in the house and yard. The climate values are then simply sent to the cell phone via XMPP.
Source: https://www.jabber.de/raspberry-pi-xmpp-einfache-heim-und-klimaueberwachung (external)
“The last few years have been very eventful for home automation. Everyone is talking about IoT and many manufacturers are offering solutions for it.
However, the initial enthusiasm is usually followed by disillusionment: there are an infinite number of standards and solutions, many are managed in a cloud and it is not uncommon for products to become useless and incompatible with each other if the manufacturer discontinues the service. Then there are the many different programs and apps for controlling the individual devices.
Home Assistant is the solution to all these problems for you as a DIYer. You can install your own powerful home automation software on your own server - and in the simplest case, a Raspberry Pi will easily suffice - and not only use it for devices you have developed yourself, but also access integrations for all conceivable IoT manufacturers. And it’s all open source._”
Source and setup instructions: reichelt.de (external)
Documentation: https://www.home-assistant.io/integrations/xmpp (external)
Automated helpers are so-called “ro’bots”—applications/scripts that usually run in the background and are designed to facilitate operation and use.
Examples that can also be used by developers as a basis for their own ideas:
With “Gtrans,” English can be translated into over 50 other languages. However, Google Translate is used in the background for this.
A service that allows you to create bots to translate text using Google Translate. A total of 133 languages are available; the complete list can be viewed in the service browser or via the registration dialog.
jabberworld.info shows how this works:
Simply add “ru2en@gtans.jabberworld.info” or “en2ru@gtans.jabberworld.info” as a contact and all texts sent will be returned to the chat as a response after being translated by Google. For example, if an English text is sent to the bot “en2ru@gtrans.jabberworld.info”, you will receive a translation into Russian.
Source code:
Have incidence figures for Germany or individual districts sent to you daily.
Add as contact: xmpp:rkistats@impfpush.de?add;name=Incidence rates
Help with: “help”
Chat room for development: xmpp:dev@conference.impfpush.de?join Internet: https://www.impfpush.de (external)
Retrieve RSS news from the NINA warning system.
Add as contact: xmpp:nina@litza.de?add;name=Warninfos
Help with: “help”
Source code: https://github.com/jplitza/nina_xmpp (external)
It is possible to have RSS feeds sent via chat (external).
Add as contact: “xmpp:jabrss@cmeerw.net”
Help with: “help”
Other RSS bots:
Display information about Jabber (XMPP) servers. Add as contact: xmpp:magicbot@magicbroccoli.de?add;name=Server information Help with: “!help” e.g.:
Source code: https://github.com/mightyBroccoli/xmpp-chatbot (external)
XMPP Bot is a small bot that establishes the connection between XMPP conversations and ‘webhooks’.
Digression/technical term: “Webhooks” make it possible to notify server software that a specific event has occurred and trigger a response to the event.
Source code: https://github.com/nioc/xmpp-bot (external)
Add as contact:
Help with: “help”
Overview of over 40 bots: https://github.com/topics/xmpp-bot (external)
And even more …
Miscellaneous information about XMPP: https://salsa.debian.org/public?name=xmpp (external)