This article shows how you can easily receive push notifications from your smartphone using the HoneyPi Android app and ThingSpeak. You can configure which ThingSpeak channels and fields you want to receive notifications for and under what conditions. This allows you to react quickly when you receive a notification that the hive’s weight is higher or lower than certain values, for example.
Note: To receive push notifications with the HoneyPi Android app, you need at least App version 1.1.
Set up push notifications
To get push notifications on your phone, the following steps are necessary:
Step 1: Log in with your ThingSpeak account: https://thingspeak.com/login
Step 2: Click Apps > ThingHTTP > New ThingHTTP. The following fields should be configured:

- Name: Enter any name
- URL: https://honey-pi.de/backend/push.php
- Method: POST
- Content Type: application/x-www-form-urlencoded
- Body: The request body, which must consist of the following three parts. The three parameter parts are linked with &-characters, as is usual for URLs:
- channel: Channel ID for which the notification is to be sent. The variable %channel_id% can also be used here, which automatically inserts the ID of the channel for which this ThingHTTP entry is used. For more information about the variables, see here.
- title: Title of your push notification on the smartphone. If only “title=” is specified, i.e. an empty title, then “HoneyPi” is used as the title.
- body: Text of your push notification on the smartphone, e.g. “channel=%%channel_id%%&title=Temperature low &body=In the hive with channel-ID %%channel_id%% it is too cold with %%trigger%% degrees celsius. Time stamp: %%datetime%%”.
- Here variables were used again. For example, the triggering measured value (%%trigger%%), the channel ID (%%channel_id%%) or the time (%%datetime%%) can be given dynamically.
Finally save the ThingHTTP entry via the “Save ThingHTTP” button.
Step 3: Click Apps > React > New React. The following fields should be configured:
- React Name: Enter any name
- Condition Type: Numeric
- Test Frequency: Check the measured values while writing or every 10, 30 or 60 minutes. It is better to select every 10, 30 or 60 minutes, as the push notifications also appear every minute on the smartphone at a measurement interval of one minute, for example.
- Condition:
- If channel: Select the desired channel for whose field the notification is to be sent.
- field: Select the ThingSpeak field for which the notification should be sent.
- Selection of the condition, e.g. is less than or equal to
- Measured value from which the condition is to take effect
- Action: Select ThingHTTP
- then perform ThingHTTP: Selecting ThingHTTP created in step 2
- Options: As a rule, “Run action each time condition is met” can be selected here if the notification is to be sent every time the measured value corresponds to the condition.
Finally save the React with the “Save React” button.

Step 4: Enable notifications in the HoneyPi-Android app: Simply click on the Notifications icon and on the next page enable/disable the channels for which you want to receive notifications.


If everything is configured correctly, the push notifications on your phone should look like the picture below:

Reuse ThingHTTP
As described above you have to create a ThingHTTP and a React on your smartphone to get a notification. You have to create a React for each desired notification (= ThingSpeak-Field), because it has to be selected there.
But you can reuse a ThingHTTP for as many fields as you like, because the same ThingHTTP can be selected in as many reactions as you like. For example, you can create a ThingHTTP for too low a temperature and a ThingHTTP for too high a temperature. These two ThingHTTPs can now be used in several channels for temperature monitoring.
Translated 19.10.2019 by JK
Hallo Javan,
Danke für deine rasche Antwort und deinen link.
Ich werde mir das anschauen bzw. versuchen es umzusetzen, bin leider im dieser Art der Programmierung nicht so zu Hause.
Übrigens ich find euer honeypi Projekt super !
Schöne Grüße
Alfred
Hallo Melissa,
Ist es möglich einen Schwarmalarm nicht mit einem fixen Grenzwert, sondern mit einen Vergleich akt. Wert zum vorletzten Messwert auszuführen ?
Dies würde meiner Meinung nach ein ständiges Anpassen des Grenzwertes ersparen.
LG
Alfred
Hallo Alfred,
das geht aber ist etwas komplizierter umzusetzen. Bei ThingSpeak kann man out of the box absolute Werte für die Benachrichtung einstellen. Es geht aber auch sowas wie 10% Gewichtsabweichung.
Wir hatten hier diese veraltete Anleitung bereitgestellt: https://docs.google.com/document/d/1NUo_w4SJPpncgfs40p4jhjbCXaTYxnRLSRjjhcUEFPA/edit?usp=sharing Kannst du diese nutzen und gegebenenfalls für uns anpassen?
Vielen Dank und Grüße
Javan
Hallo Melissa,
vorab soviel: ich habe eine Bienenstockwaage gebaut (HoneyPi-Projekt), ein ThingSpeak-Konto eingerichtet, wo ich 5 Sensoren abfrage: Gewicht, Außentemperatur, -Luftfeuchtigkeit, Temperatur Brutraum + Batteriespannung.
Dann habe ich nach Ihrem Beispiel bei “meinem” ThingSpeak” eine Testabfrage “Aupßentemperatur zu hoch” erstellt und extra HoneyPi PRO abboniert. Es funktioniert alles bis auf den letzten Schritt gemäß Ihrer Dokumentation: BENACHRICHTIGUNG AUF DEM SMARTPHONE, d.h. dieses Bild kann ich bei mir nicht sehen.
Auf meinem Handy (Huawei nova 5T) ist in der schmalen Statusleiste das HoneyPi-Symbol. Ziehe ich dann die Statusleiste nach unten, kann ich folgendes sehen:
————————————————————–
HoneyPi 16:00
Außentemperatur
in H… Bienenstock mit Channel-Id 1234567…
——————————————————————–
Aber in meinem “Body” steht ja noch weiterer Text/Infos, die nicht angezeigt werden.
Wie bekomme ich die Push-Benachrichtigung korrekt + zeitnah angezeigt?
Können Sie mir einen Tipp geben? Vielen Dank.
Mit freundlichem Gruß
Karl
Hallo Karl,
Android zeigt die Benachrichtigungen immer eingeklappt an, deshalb siehst du nur einen Teil deiner Nachricht. Normalerweise sollte bei der Benachrichtigung ein kleines “Pfeil/Dach nach unten” Icon sein, mit dem man aufklappen kann und den vollen Text anzeigen kann. Das habe ich auch für den Screenshot von oben gemacht. Falls dein Handy dieses Icon jedoch nicht anzeigt, musst du deine Benachrichtigung in ThingSpeak auf die Zeichen, die du in deiner Benachrichtigung zur Verfügung hast, kürzen. Z.B. würde ja reichen: 1234567 = 8,14 °C; ZEITSTEMPEL
Gruß Melissa
Hallo Melissa,
vielen Dank für Deine prompte Antwort. Nachdem ich diese gelesen hatte, wurde mir klar, dass ich Deinen Screenshot bisher falsch interpretiert habe. Ich war bisher davon ausgegangen, dass die Nachricht von HoneyPi soooo aussehen muss.
Nach einem erneuten Test ist es auch so wie von Dir beschrieben.
Vielen Dank nochmals für Deine Mühe.
Gruß Karl
Hi, ist diese Funktion nur in der App pro Version verfügbar?
VG Florian
Hi, ja die Benachrichtigungen sind nur in der Pro Version verfügbar.
Über IFTTT (auch eine Anleitung hier verfügbar) oder die iOS-WebApp geht es aber auch ohne die Pro-Variante.
Gruß
Melissa