{"id":185,"date":"2012-01-07T15:31:19","date_gmt":"2012-01-07T21:31:19","guid":{"rendered":"http:\/\/www.netfluvia.org\/layer8\/?p=185"},"modified":"2015-01-10T09:31:21","modified_gmt":"2015-01-10T15:31:21","slug":"scraping-data-from-the-netbotz-500","status":"publish","type":"post","link":"https:\/\/www.netfluvia.org\/layer8\/?p=185","title":{"rendered":"Scraping Data from the Netbotz 500"},"content":{"rendered":"<p>A datacenter decommissioning last year gave me access to some old <a href=\"http:\/\/www.netbotz.com\/products\/appliances.html\" target=\"_blank\">Netbotz<\/a> (now APC) monitoring gear. I jumped at the chance to save it from the garbage, as I remembered it being a pretty slick way to get basic environmental data (temp, door switches, etc.) and it was a small physical footprint way to control a number of networked cameras at once.<\/p>\n<p>My recollection was right, and while the management server appliance proved both annoying to work with and massive overkill for my home projects, I&#8217;ve had some luck scraping data out of its web UI.<\/p>\n<p>I wrote a few python classes to make it reasonable to programmatically access the data generated by the cameras and sensors in my backyard chicken coop; you can <a href=\"https:\/\/pachube.com\/feeds\/42803\" target=\"_blank\">see the end result at pachube<\/a>.<\/p>\n<p>The <a href=\"https:\/\/github.com\/jrheling\/pybotz\" target=\"_blank\">code is available here<\/a>. \u00c2\u00a0It&#8217;s driven by a small db schema that holds basic location info for the monitoring gear and metadata about sensors being watched (e.g. polling intervals and alert thresholds), and produces simple name\/value pairs with sensor data satisfying given conditions. \u00c2\u00a0By &#8220;conditions&#8221; here I mean things like &#8220;it&#8217;s time to report this sensor value&#8221; or &#8220;this value changed too much, so I&#8217;m reporting on it&#8221; &#8212; this is by no means meant to replace actual monitoring systems (though it could easily be used to interface with them).<\/p>\n<p>While I wrote fairly thorough pydoc, the overall documentation is hardly extensive, so I&#8217;d be happy to answer questions if getting at netbotz data from python is interesting to anybody else.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A datacenter decommissioning last year gave me access to some old Netbotz (now APC) monitoring gear. I jumped at the chance to save it from the garbage, as I remembered it being a pretty slick way to get basic environmental data (temp, door switches, etc.) and it was a small physical footprint way to control <a href='https:\/\/www.netfluvia.org\/layer8\/?p=185'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[23,25],"class_list":["post-185","post","type-post","status-publish","format-standard","hentry","category-tech","tag-code","tag-netbotz","category-6-id","post-seq-1","post-parity-odd"],"_links":{"self":[{"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=\/wp\/v2\/posts\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=185"}],"version-history":[{"count":6,"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=\/wp\/v2\/posts\/185\/revisions"}],"predecessor-version":[{"id":195,"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=\/wp\/v2\/posts\/185\/revisions\/195"}],"wp:attachment":[{"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}