{"id":812,"date":"2014-04-29T09:43:43","date_gmt":"2014-04-29T07:43:43","guid":{"rendered":"http:\/\/paluweb.nl\/?p=812"},"modified":"2014-04-29T09:51:45","modified_gmt":"2014-04-29T07:51:45","slug":"the-first-real-thunderstorm","status":"publish","type":"post","link":"https:\/\/www.paluweb.nl\/?p=812","title":{"rendered":"Video: The first real Thunderstorm"},"content":{"rendered":"<p><BR><\/p>\n<blockquote><p>After running some tests, today for the first time there was an actual thunderstorm in the paludarium!<\/p><\/blockquote>\n<p><BR><br \/>\n<strong>How the paludarium figures there should be a thunderstorm<\/strong><\/p>\n<p>I could have made the weather inside the paludarium choosen by random, but that wouldn&#8217;t have been any fun. Instead, the paludarium fetches live data from the <a href=\"http:\/\/www.ots.ac.cr\/index.php?option=com_content&#038;task=view&#038;id=162&#038;Itemid=348\" title=\"La Selva Biological Station\" target=\"_blank\">La Selva Biological station<\/a> in Costa Rica.<\/p>\n<p>Using a 1,5 day delay this meteorological data is &#8220;replayed&#8221; inside the paludarium. Why 1,5 day? Well, one day to <!--more--><\/p>\n<p>cope with any downtime of the LA Selva database, and half a day to make sure that the sunrise and sunset are at times convenient for my timezone \ud83d\ude42<\/p>\n<p>So how is determined if a thunderstorm should occur? Simple: As soon as the Canopy (which is the smart lighting hood on the paludarium) detect there was over 5mm of rainfall within half an hour, it deducts that should have been a thunderstorm. This initiated the thunder.py script.<br \/>\n<BR><br \/>\n<strong>thunder.py: Python script that simulates a thunderstorm<\/strong><\/p>\n<p>The thunder.py script was made especially to simulate a thunderstorm. It controls timing, lighting, sounds and rainfall. The script will actually make the thunderstorm get close, drop rain and leave again like this:<\/p>\n<p>1) Ten flashes that get brighter every time, sound played with less and less delay through the right speaker;<br \/>\n2) Ten flashes that are at maximum brightness, sound played with zero delay through both speakers;<br \/>\n3) Ten flashes that get less bright every time, sound played with more and more delay through the left speaker.<\/p>\n<p>On top of that there are also bird sounds that stop as the thunder gets to the maximum, and frogs singing in the background.<br \/>\n<BR><br \/>\n<strong>What the end result looks like<\/strong><\/p>\n<p>This is a youtube video what the end result looks like:<\/p>\n<p><iframe loading=\"lazy\" title=\"Thunderstorm inside the Paludarium for the first time!\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/igZdSlmKw0o?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>Cool right?!?!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After running some tests, today for the first time there was an actual thunderstorm in the paludarium! How the paludarium figures there should be a thunderstorm I could have made the weather inside the paludarium choosen by random, but that &hellip; <a href=\"https:\/\/www.paluweb.nl\/?p=812\">Read more <span class=\"meta-nav\">&raquo;<\/span><\/a><\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17,8,3,9],"tags":[18,136,211,212],"class_list":["post-812","post","type-post","status-publish","format-standard","hentry","category-automation","category-lighting","category-paludarium","category-rain-and-mist","tag-automation-2","tag-rain","tag-thunder","tag-thunderstorm"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.paluweb.nl\/index.php?rest_route=\/wp\/v2\/posts\/812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.paluweb.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.paluweb.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.paluweb.nl\/index.php?rest_route=\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.paluweb.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=812"}],"version-history":[{"count":4,"href":"https:\/\/www.paluweb.nl\/index.php?rest_route=\/wp\/v2\/posts\/812\/revisions"}],"predecessor-version":[{"id":819,"href":"https:\/\/www.paluweb.nl\/index.php?rest_route=\/wp\/v2\/posts\/812\/revisions\/819"}],"wp:attachment":[{"href":"https:\/\/www.paluweb.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.paluweb.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.paluweb.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}