{"id":1789,"date":"2022-02-04T01:51:57","date_gmt":"2022-02-03T23:51:57","guid":{"rendered":"https:\/\/iot-devices.com.ua\/?p=1789"},"modified":"2022-02-04T09:24:49","modified_gmt":"2022-02-04T07:24:49","slug":"lua-code-example-for-ggreg20-with-nodemcu-firmware-esp8266-esp32","status":"publish","type":"post","link":"https:\/\/iot-devices.com.ua\/en\/lua-code-example-for-ggreg20-with-nodemcu-firmware-esp8266-esp32\/","title":{"rendered":"Lua code example for GGreg20_V3 with NodeMCU firmware with ESP8266 \/ ESP32 controller"},"content":{"rendered":"\n<p>Kyiv. Ukraine. The IoT-devices LLC team has developed and made available on GitHub an example in Lua for its GGreg20_V3 product, which can be used for ESP8266 and ESP32 controllers with NodeMCU firmware. <\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/iot-devices.com.ua\/wp-content\/uploads\/2022\/02\/ggreg20_v3_luaexample_iot-deviceslogo.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/iot-devices.com.ua\/wp-content\/uploads\/2022\/02\/ggreg20_v3_luaexample_iot-deviceslogo-1024x683.png\" alt=\"lua code example ggreg20_v3 \" class=\"wp-image-1787\" srcset=\"https:\/\/iot-devices.com.ua\/wp-content\/uploads\/2022\/02\/ggreg20_v3_luaexample_iot-deviceslogo-1024x683.png 1024w, https:\/\/iot-devices.com.ua\/wp-content\/uploads\/2022\/02\/ggreg20_v3_luaexample_iot-deviceslogo-300x200.png 300w, https:\/\/iot-devices.com.ua\/wp-content\/uploads\/2022\/02\/ggreg20_v3_luaexample_iot-deviceslogo-768x512.png 768w, https:\/\/iot-devices.com.ua\/wp-content\/uploads\/2022\/02\/ggreg20_v3_luaexample_iot-deviceslogo-454x303.png 454w, https:\/\/iot-devices.com.ua\/wp-content\/uploads\/2022\/02\/ggreg20_v3_luaexample_iot-deviceslogo.png 1500w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n<p>The script allows you to receive pulses from the ionizing radiation detection module GGreg20_V3, accumulate pulses and calculate the moving average (MA5) radiation power (uSV\/h) with a five-minute buffer.<br\/>You can find the repository at the following link:<\/p>\n\n<p><a href=\"https:\/\/github.com\/iotdevicesdev\/ggreg20-v3-nodemcu-lua-example\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/iotdevicesdev\/ggreg20-v3-nodemcu-lua-example<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kyiv. Ukraine. The IoT-devices LLC team has developed and made available on GitHub an example in Lua for its GGreg20_V3 product, which can be used for ESP8266 and ESP32 controllers with NodeMCU firmware. The script allows you to receive pulses from the ionizing radiation detection module GGreg20_V3, accumulate pulses and calculate the moving average (MA5) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1787,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","omw_enable_modal_window":"enable","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[],"footnotes":""},"categories":[89,88],"tags":[93,94,96,101,104],"class_list":["post-1789","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","category-tips-en","tag-esp32-en","tag-esp8266-en","tag-ggreg20_v3-en","tag-lua-en","tag-nodemcu-en","entry","has-media","owp-thumbs-layout-horizontal","owp-btn-normal","owp-tabs-layout-horizontal","has-no-thumbnails","has-product-nav"],"_links":{"self":[{"href":"https:\/\/iot-devices.com.ua\/en\/wp-json\/wp\/v2\/posts\/1789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iot-devices.com.ua\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iot-devices.com.ua\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iot-devices.com.ua\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iot-devices.com.ua\/en\/wp-json\/wp\/v2\/comments?post=1789"}],"version-history":[{"count":2,"href":"https:\/\/iot-devices.com.ua\/en\/wp-json\/wp\/v2\/posts\/1789\/revisions"}],"predecessor-version":[{"id":1799,"href":"https:\/\/iot-devices.com.ua\/en\/wp-json\/wp\/v2\/posts\/1789\/revisions\/1799"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iot-devices.com.ua\/en\/wp-json\/wp\/v2\/media\/1787"}],"wp:attachment":[{"href":"https:\/\/iot-devices.com.ua\/en\/wp-json\/wp\/v2\/media?parent=1789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iot-devices.com.ua\/en\/wp-json\/wp\/v2\/categories?post=1789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iot-devices.com.ua\/en\/wp-json\/wp\/v2\/tags?post=1789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}