{"id":1241,"date":"2019-03-24T19:50:06","date_gmt":"2019-03-24T18:50:06","guid":{"rendered":"https:\/\/www.honey-pi.de\/?p=1241"},"modified":"2020-03-09T22:22:57","modified_gmt":"2020-03-09T21:22:57","slug":"push-benachrichtigungen-auf-das-smartphone-senden","status":"publish","type":"post","link":"https:\/\/honey-pi.de\/en\/push-benachrichtigungen-auf-das-smartphone-senden\/","title":{"rendered":"Display push notifications on your phone"},"content":{"rendered":"\n<p>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&#8217;s weight is higher or lower than certain values, for example.<\/p>\n\n\n\n<p>Note: To receive push notifications with the HoneyPi Android app, you need at least App version 1.1.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Set up push notifications<\/h2>\n\n\n\n<p>To get push notifications on your phone, the following steps are necessary:<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Log in with your ThingSpeak account: <a rel=\"noreferrer noopener\" aria-label=\" (\u00f6ffnet in neuem Tab)\" href=\"https:\/\/thingspeak.com\/login\" target=\"_blank\">https:\/\/thingspeak.com\/login<\/a><\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Click Apps > ThingHTTP > New ThingHTTP. The following fields should be configured:<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-7.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-7.png\" alt=\"Neuen \" class=\"wp-image-1290\" width=\"425\" height=\"754\" srcset=\"https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-7.png 567w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-7-169x300.png 169w\" sizes=\"auto, (max-width: 425px) 100vw, 425px\" \/><\/a><figcaption>Neuen &#8220;ThingHTTP&#8221; erstellen<\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Name: <\/strong>Enter any name<\/li><li><strong>URL:<\/strong> https:\/\/honey-pi.de\/backend\/push.php<\/li><li><strong>Method:<\/strong> POST<\/li><li><strong>Content Type: <\/strong>application\/x-www-form-urlencoded<\/li><li><strong>Body: <\/strong>The request body, which must consist of the following three parts. The three parameter parts are linked with <strong>&amp;-characters<\/strong>, as is usual for URLs:<ol><li><strong>channel:<\/strong> 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 <a rel=\"noreferrer noopener\" aria-label=\" (\u00f6ffnet in neuem Tab)\" href=\"https:\/\/de.mathworks.com\/help\/thingspeak\/thinghttp-app.html#bvtzy2y-5\" target=\"_blank\">here<\/a>.<\/li><li><strong>title:<\/strong> Title of your push notification on the smartphone. If only &#8220;title=&#8221; is specified, i.e. an empty title, then &#8220;HoneyPi&#8221; is used as the title.<\/li><li><strong>body: <\/strong>Text of your push notification on the smartphone, e.g. <strong><em>&#8220;channel=%%channel_id%%&amp;title=Temperature low &amp;body=In the hive with channel-ID %%channel_id%% it is too cold with %%trigger%% degrees celsius. Time stamp: %%datetime%%&#8221;<\/em><\/strong><em><strong>.<\/strong><\/em><ul><li>Here <a rel=\"noreferrer noopener\" aria-label=\"variables (\u00f6ffnet in neuem Tab)\" href=\"https:\/\/de.mathworks.com\/help\/thingspeak\/thinghttp-app.html#bvtzy2y-5\" target=\"_blank\">variables<\/a> were used again. For example, the triggering measured value (%%trigger%%), the channel ID (%%channel_id%%) or the time (%%datetime%%) can be given dynamically.<\/li><\/ul><\/li><\/ol><\/li><\/ul>\n\n\n\n<p>Finally save the ThingHTTP entry via the &#8220;Save ThingHTTP&#8221; button.<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> Click Apps > React > New React. The following fields should be configured:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>React Name: <\/strong>Enter any name<\/li><li><strong>Condition Type: <\/strong>Numeric<\/li><li><strong>Test Frequency: <\/strong>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.<\/li><li><strong>Condition:<\/strong><ul><li><strong>If channel: <\/strong>Select the desired channel for whose field the notification is to be sent. <\/li><li><strong>field:<\/strong> Select the ThingSpeak field for which the notification should be sent.<\/li><li>Selection of the condition, e.g. is less than or equal to<\/li><li>Measured value from which the condition is to take effect<\/li><\/ul><\/li><li><strong>Action:<\/strong> Select ThingHTTP<ul><li><strong>then perform ThingHTTP:<\/strong> Selecting ThingHTTP created in step 2<\/li><\/ul><\/li><li><strong>Options:<\/strong> As a rule, &#8220;Run action each time condition is met&#8221; can be selected here if the notification is to be sent every time the measured value corresponds to the condition.<\/li><\/ul>\n\n\n\n<p>Finally save the React with the &#8220;Save React&#8221; button. <\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-2.png\" alt=\"Neuen \" class=\"wp-image-1259\" width=\"444\" height=\"620\" srcset=\"https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-2.png 592w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-2-215x300.png 215w\" sizes=\"auto, (max-width: 444px) 100vw, 444px\" \/><\/a><figcaption>Neuen &#8220;React&#8221; erstellen<\/figcaption><\/figure>\n\n\n\n<p><strong>Step 4:<\/strong> 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.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-3.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-3.jpg\" alt=\"Benachrichtigungen \u00f6ffnen\" class=\"wp-image-1261\" width=\"270\" height=\"480\" srcset=\"https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-3.jpg 1080w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-3-169x300.jpg 169w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-3-768x1365.jpg 768w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-3-576x1024.jpg 576w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-3-660x1173.jpg 660w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a><figcaption>Benachrichtigungen \u00f6ffnen<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-4.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-4.jpg\" alt=\"Benachrichtigungen konfigurieren\" class=\"wp-image-1262\" width=\"270\" height=\"480\" srcset=\"https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-4.jpg 1080w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-4-169x300.jpg 169w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-4-768x1365.jpg 768w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-4-576x1024.jpg 576w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-4-660x1173.jpg 660w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a><figcaption>Benachrichtigungen konfigurieren<\/figcaption><\/figure>\n\n\n\n<p>If everything is configured correctly, the push notifications on your phone should look like the picture below:<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-8.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-8.jpg\" alt=\"Benachrichtigung auf dem Smartphone\" class=\"wp-image-1293\" width=\"270\" height=\"480\" srcset=\"https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-8.jpg 1080w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-8-169x300.jpg 169w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-8-768x1365.jpg 768w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-8-576x1024.jpg 576w, https:\/\/honey-pi.de\/wp-content\/uploads\/Benachrichtigungen-konfigurieren-8-660x1173.jpg 660w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a><figcaption>Benachrichtigung auf dem Smartphone<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Reuse ThingHTTP<\/h2>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n<p style=\"text-align: right;\"><!--EndFragment--><em>Translated 19.10.2019 by JK<\/em><br \/><br \/><\/p>","protected":false},"excerpt":{"rendered":"<p>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&#8217;s weight is higher or lower than\u2026 <span class=\"read-more\"><a href=\"https:\/\/honey-pi.de\/en\/push-benachrichtigungen-auf-das-smartphone-senden\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":1318,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[17],"class_list":["post-1241","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-smart","tag-tutorial"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"en","enabled_languages":["de","en"],"languages":{"de":{"title":true,"content":true,"excerpt":false},"en":{"title":true,"content":true,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/posts\/1241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/comments?post=1241"}],"version-history":[{"count":40,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/posts\/1241\/revisions"}],"predecessor-version":[{"id":1746,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/posts\/1241\/revisions\/1746"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/media\/1318"}],"wp:attachment":[{"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/media?parent=1241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/categories?post=1241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/honey-pi.de\/en\/wp-json\/wp\/v2\/tags?post=1241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}