{"id":1585,"date":"2013-04-15T10:42:24","date_gmt":"2013-04-15T17:42:24","guid":{"rendered":"http:\/\/www.little.org\/blog\/?p=1585"},"modified":"2013-04-15T10:42:24","modified_gmt":"2013-04-15T17:42:24","slug":"easy-data-visualizations-for-your-arduino-data","status":"publish","type":"post","link":"https:\/\/www.little.org\/blog\/2013\/04\/15\/easy-data-visualizations-for-your-arduino-data\/","title":{"rendered":"Easy visualizations for your Arduino data"},"content":{"rendered":"<p>Over the years I&#8217;ve had several different time &amp; temperature weather stations which gave the current outdoor temperature and humidity but were a bit thin on capturing historic data. I&#8217;ve considered buying a fancier weather station which connects to\u00a0a PC for logging&#8230; but those are pricy and require a PC be connected and on. An Arduino, on the other hand, is wicked cheap and tons of people use them as the brains behind their weather stations (IOW: lots of example code is out there to be had).<\/p>\n<p>It&#8217;s fairly common to log data from an Arduino to an SD card, but that would require periodically pulling the card and downloading the data for review. I knew I didn&#8217;t want that level of effort so went looking for a way to push the data up to some place on the interwebs. I had all but given up on finding an easy solution when I came across <a href=\"http:\/\/xively.com\">COSM<\/a>.<\/p>\n<figure id=\"attachment_1587\" aria-describedby=\"caption-attachment-1587\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.little.org\/blog\/wp-content\/uploads\/2013\/04\/temperatureFeed.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1587 size-medium\" src=\"http:\/\/www.little.org\/blog\/wp-content\/uploads\/2013\/04\/temperatureFeed-300x180.png\" alt=\"Graph of temperature data from xlively\" width=\"300\" height=\"180\" \/><\/a><figcaption id=\"caption-attachment-1587\" class=\"wp-caption-text\">Screenshot of graph from the dashboard<\/figcaption><\/figure>\n<p><a href=\"http:\/\/xively.com\">COSM <\/a>is a nifty web service which allows developers to push data to the cloud and visualize the result. The service is free to use for basic logging and visualizations but their true\u00a0r<span dir=\"auto\">aison d&#8217;\u00eatre<\/span>\u00a0is a cloud service for the mythical coming of the IoT (internet of things). Hardware developers can use COSM to onboard and manage devices in their product line. I&#8217;m unlikely to ever need their cool pay services, but I do appreciate the ability to put meteorological data in the side bar of my website.<\/p>\n<p>COSM has a chunk of sample code that makes it really easy to get started pushing data to them from an Arduino. Because you can push the data directly from your Arduino (provided you have a network interface of some sort) you don&#8217;t need to be running a power-hungry PC 24\/7 to indulge your inner data nerd. Keeping an eye on your data is easy too with nice data presentation via their dashboard (picture above) or you can embed live, auto updating graphs using nifty image tags. Here are a couple of graphs, first\u00a0for temperature and second for air pressure:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/api.cosm.com\/v2\/feeds\/125532\/datastreams\/Temperature_outside.png?width=200&amp;height=140&amp;colour=%23f15a24&amp;duration=24hours&amp;show_axis_labels=true&amp;detailed_grid=true&amp;timezone=Pacific%20Time%20(US%20%26%20Canada)\" alt=\"\" \/>\u00a0\u00a0 <img decoding=\"async\" src=\"https:\/\/api.cosm.com\/v2\/feeds\/125532\/datastreams\/Pressure.png?width=200&amp;height=140&amp;colour=%23f15a24&amp;duration=24hours&amp;show_axis_labels=true&amp;detailed_grid=true&amp;timezone=Pacific%20Time%20(US%20%26%20Canada)\" alt=\"\" \/><\/p>\n<p>Now, if I can just figure out a way to use the anemometer from the cheap weather station I bought off Woot&#8230;<\/p>\n<p>[Edit: <a href=\"http:\/\/blog.xively.com\/2013\/05\/14\/cosm-is-now-xively\/\">as of May 14, 2013, COSM has changed its name to Xively<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the years I&#8217;ve had several different time &amp; temperature weather stations which gave the current outdoor temperature and humidity but were a bit thin on capturing historic data. I&#8217;ve considered buying a fancier weather station which connects to\u00a0a PC for logging&#8230; but those are pricy and require a PC be connected and on. An [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1591,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16],"tags":[47],"class_list":["post-1585","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-arduino"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/posts\/1585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/comments?post=1585"}],"version-history":[{"count":0,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/posts\/1585\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/media?parent=1585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/categories?post=1585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/tags?post=1585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}