{"id":124,"date":"2017-01-24T15:34:14","date_gmt":"2017-01-24T14:34:14","guid":{"rendered":"http:\/\/emariete.com\/?p=124"},"modified":"2017-01-24T15:34:14","modified_gmt":"2017-01-24T14:34:14","slug":"sending-radio-activity-data-from-madrid-to-the-network","status":"publish","type":"post","link":"https:\/\/emariete.com\/en\/enviando-datos-de-radioactividad-de-madrid-a-la-red\/","title":{"rendered":"Real-time radioactivity data from Madrid"},"content":{"rendered":"<h2 class=\"wp-block-heading\" id=\"h-datos-de-radiaci-n-beta-y-gamma-en-madrid-en-tiempo-real\"><strong>Real-Time Beta and Gamma Radiation Data in Madrid<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, the graph below, barring unexpected problems,\u00a0<strong>has been generated right now<\/strong>in real time. Note the times.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[wpdatachart id=1]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There is a page on the website where you can see various graphs. You can see it&nbsp;<a href=\"https:\/\/emariete.com\/en\/radioactivity\/\">by clicking here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I will now tell you how the detector works.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2017\/01\/Radiation.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"180\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2017\/01\/Radiation-300x180.png\" alt=\"\" class=\"wp-image-133\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2017\/01\/Radiation-300x180.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2017\/01\/Radiation-768x461.png 768w, https:\/\/emariete.com\/wp-content\/uploads\/2017\/01\/Radiation.png 855w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">After having my detector&nbsp;<a href=\"https:\/\/emariete.com\/en\/detecting-radioactivity\/\">Geiger<\/a>&nbsp;finished and working, the next step is to send this radioactivity information to the network. I have not been able to find in the internet a single station in Madrid sending Beta\/Gamma radiation data in real time, so this may be the first station in Madrid to send this kind of data (and I am very excited, because it is difficult to be the first in something in the internet nowadays :-)).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Geiger counter I have built has a serial port through which the detected radiation data is transmitted every 15 seconds. This has made things much easier, as all I have had to do is provide it with \"something\" that reads the data and sends it to my home automation system and to the network.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-espeasy\">EspEasy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">As in other occasions, I have used a NodeMCU with the ESPEASY firmware. This time there was no ESPEASY plugin to read the serial output of my Geiger counter, but it was not very difficult to adapt another plugin, already existing, to read them.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img decoding=\"async\" src=\"https:\/\/i.postimg.cc\/qqQsjK6r\/screenshot-1.png\" alt=\"EspEasy Geiger Counter\"\/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The new device reads the serial output of the Geiger counter, processes it to extract the specific Pulses Per Minute data and sends this data via MQTT to my broker.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-enviar-a-radmon-con-node-red\">Send to Radmon with Node-Red<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A node in&nbsp;<a href=\"https:\/\/nodered.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Nore-Red<\/a>&nbsp;receives the radioactivity data sent by the device and forwards it to the&nbsp;<a href=\"https:\/\/radmon.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Radmon.org<\/a>. Radmon.org is a site where hundreds of volunteers from all over the world send, in real time, the data obtained by their detectors to facilitate their visualisation, generation of graphs, etc.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/s27.postimg.cc\/thsn348v7\/screenshot_103.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The \"Build Radmon url\" function is very simple and simply builds a url, following the Radmon API specifications with my username, password and the last measure.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/s27.postimg.cc\/77ar30fs3\/screenshot_104.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-guardando-datos-en-influxdb\">Saving data in InfluxDB<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Another Node-Network node inserts the data into an InfluxDB database, which allows me to subsequently create graphs of this data in&nbsp;<a href=\"https:\/\/grafana.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Grafana<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>How to connect the Geiger counter via wifi and send to the internet, easily and in real time, the Beta and Gamma radioactivity data generated by the counter.<\/p>","protected":false},"author":1,"featured_media":235538,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","_lmt_disableupdate":"yes","_lmt_disable":"","footnotes":""},"categories":[14,17],"tags":[44],"class_list":["post-124","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-domotica","category-proyectos-arduino","tag-radiactividad"],"modified_by":"Mariete","uagb_featured_image_src":{"full":["https:\/\/emariete.com\/wp-content\/uploads\/2017\/01\/gas-mask-2545867_1920.jpg",1920,1280,false],"thumbnail":["https:\/\/emariete.com\/wp-content\/uploads\/2017\/01\/gas-mask-2545867_1920-150x150.jpg",150,150,true],"medium":["https:\/\/emariete.com\/wp-content\/uploads\/2017\/01\/gas-mask-2545867_1920-300x200.jpg",300,200,true],"medium_large":["https:\/\/emariete.com\/wp-content\/uploads\/2017\/01\/gas-mask-2545867_1920-768x512.jpg",768,512,true],"large":["https:\/\/emariete.com\/wp-content\/uploads\/2017\/01\/gas-mask-2545867_1920-1024x683.jpg",1024,683,true],"1536x1536":["https:\/\/emariete.com\/wp-content\/uploads\/2017\/01\/gas-mask-2545867_1920-1536x1024.jpg",1536,1024,true],"2048x2048":["https:\/\/emariete.com\/wp-content\/uploads\/2017\/01\/gas-mask-2545867_1920.jpg",1920,1280,false],"trp-custom-language-flag":["https:\/\/emariete.com\/wp-content\/uploads\/2017\/01\/gas-mask-2545867_1920.jpg",18,12,false]},"uagb_author_info":{"display_name":"Mariete","author_link":"https:\/\/emariete.com\/en\/author\/admin_xlyz052h\/"},"uagb_comment_info":9,"uagb_excerpt":"C\u00f3mo conectar el contador Geiger mediante wifi y enviar a internet, de forma sencilla y en tiempo real, los datos de radiactividad Beta y Gamma generados por el contador.","_links":{"self":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts\/124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/comments?post=124"}],"version-history":[{"count":1,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts\/124\/revisions"}],"predecessor-version":[{"id":241506,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts\/124\/revisions\/241506"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/media\/235538"}],"wp:attachment":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/media?parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/categories?post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/tags?post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}