{"id":2607,"date":"2014-01-18T18:18:14","date_gmt":"2014-01-18T17:18:14","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=2607"},"modified":"2023-08-20T14:55:07","modified_gmt":"2023-08-20T12:55:07","slug":"wie-koennen-die-daten-von-einer-withings-waage-und-pulse-mit-einem-fhem-server-auf-einem-raspberry-pi-ausgelesen-werden","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=2607","title":{"rendered":"Wie k\u00f6nnen die Daten von einer Withings Waage und Pulse mit einem Fhem-Server auf einem Raspberry Pi ausgelesen werden?"},"content":{"rendered":"<p>Daf\u00fcr gibt es ein <a href=\"https:\/\/fhem.de\/commandref.html#withings\">fertiges<\/a> Modul in Fhem. Es m\u00fcssen nur die zwei Zeilen mit den device, userid und publickey aus der Web-Oberfl\u00e4che von Withings (alt)<br \/>\n<code><br \/>\ndefine withings withings [device]<br \/>\ndefine withings> withings [userid] [publickey]<br \/>\n<\/code><br \/>\nin der <strong>fhem.cfg<\/strong> erg\u00e4nzt werden und ein restart des Fhem-Servers durchgef\u00fchrt werden.<\/p>\n<p>Dann kamm es bei mir zu folgender Fehlermeldung:<br \/>\n<code><br \/>\n Can't locate <strong>JSON.pm<\/strong> in @INC (@INC contains: \/etc\/perl \/usr\/local\/lib\/perl\/5.14.2 \/usr\/local\/share\/perl\/5.14.2 \/usr\/lib\/perl5 \/usr\/share\/perl5 \/usr\/lib\/perl\/5.14 \/usr\/share\/perl\/5.14 \/usr\/local\/lib\/site_perl . .\/FHEM) at .\/FHEM\/32_withings.pm line 9, <> line 3.<br \/>\nBEGIN failed--compilation aborted at .\/FHEM\/32_withings.pm line 9, <> line 3.<br \/>\n<\/code><br \/>\nAn der Fehlermeldung kann man erkennen das JSON f\u00fcr Perl auf den Rasperry Pi nicht installiert war.<br \/>\nIn der Modulbeschreibung steht auch das &#8222;JSON, LWP::Simple and Digest::MD5 have to be installed on the FHEM host&#8220;. Also noch ein paar Module neu installieren mit<br \/>\n<code><br \/>\nsudo apt-get install libjson-perl libdigest-md5-file-perl liblwp-protocol-https-perl liblwp-protocol-http-socketunix-perl<br \/>\n<\/code><br \/>\nauf der Konsole. Nach einem Restart, super es wird mein Gewicht angezeigt \ud83d\ude41<br \/>\n<figure id=\"attachment_2608\" aria-describedby=\"caption-attachment-2608\" style=\"width: 587px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/01\/Bildschirmfoto-2014-01-18-um-17.57.06.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/01\/Bildschirmfoto-2014-01-18-um-17.57.06.png\" alt=\"Withings Daten in Fhem\" width=\"587\" height=\"506\" class=\"size-full wp-image-2608\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/01\/Bildschirmfoto-2014-01-18-um-17.57.06.png 587w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/01\/Bildschirmfoto-2014-01-18-um-17.57.06-300x258.png 300w\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" \/><\/a><figcaption id=\"caption-attachment-2608\" class=\"wp-caption-text\">Withings Daten in Fhem<\/figcaption><\/figure><\/p>\n<p>Wie bekomme ich diese Gewichts-Daten nun in ein sch\u00f6nes Diagramm? Hat schon jemand eine passende gplot Datei? Dann bitte hier posten.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Daf\u00fcr gibt es ein fertiges Modul in Fhem. Es m\u00fcssen nur die zwei Zeilen mit den device, userid und publickey aus der Web-Oberfl\u00e4che von Withings (alt) define withings withings [device] define withings> withings [userid] [publickey] in der fhem.cfg erg\u00e4nzt werden und ein restart des Fhem-Servers durchgef\u00fchrt werden. Dann kamm es bei mir zu folgender Fehlermeldung: &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?p=2607\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eWie k\u00f6nnen die Daten von einer Withings Waage und Pulse mit einem Fhem-Server auf einem Raspberry Pi ausgelesen werden?\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[852,79,1023],"tags":[693,1249,1256,1259,878,1258,137,1257,400,2190,1030,83,1255,725],"class_list":["post-2607","post","type-post","status-publish","format-standard","hentry","category-heimautomatisierung","category-programmierung","category-raspberry-pi","tag-fhem","tag-fhem-server","tag-gewicht","tag-gewichts-kurve","tag-gplot","tag-home","tag-installieren","tag-json","tag-module","tag-raspberry-pi","tag-rpi","tag-server","tag-waage","tag-withings"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/2607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2607"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/2607\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2607"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}