{"id":1506,"date":"2013-03-18T23:04:08","date_gmt":"2013-03-18T22:04:08","guid":{"rendered":"http:\/\/sickel.net\/blogg\/?p=1506"},"modified":"2013-04-02T12:48:32","modified_gmt":"2013-04-02T10:48:32","slug":"reading-temperature-data-out-of-postgres","status":"publish","type":"post","link":"https:\/\/sickel.net\/blogg\/?p=1506","title":{"rendered":"Reading temperature data out of postgres"},"content":{"rendered":"<p>I have set up a system logging temperatures (and later hopefully also other parameters) to a <a href=\"http:\/\/sickel.net\/blogg\/?p=1492\">postgres database<\/a>. The data are now read out and presented as an svg-graph. (this may not work in some older browsers, i.e. msie< 9 - it is possible to use <a href=\"http:\/\/code.google.com\/p\/svgweb\/\">svgweb, but I have presently not implemented this)<\/p>\n<div id=\"attachment_1507\" style=\"width: 674px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/sickel.net\/blogg\/wp-content\/2013\/03\/measure_scsh.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1507\" data-attachment-id=\"1507\" data-permalink=\"https:\/\/sickel.net\/blogg\/?attachment_id=1507\" data-orig-file=\"https:\/\/sickel.net\/blogg\/wp-content\/2013\/03\/measure_scsh.png\" data-orig-size=\"664,638\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"measure_scsh\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Temperature graph. The number in the lower left corner is number of data points in the graph.&lt;\/p&gt;\n\" data-large-file=\"https:\/\/sickel.net\/blogg\/wp-content\/2013\/03\/measure_scsh.png\" src=\"http:\/\/sickel.net\/blogg\/wp-content\/2013\/03\/measure_scsh.png\" alt=\"The temperature data may be presented as a svg graph.\" width=\"664\" height=\"638\" class=\"size-full wp-image-1507\" srcset=\"https:\/\/sickel.net\/blogg\/wp-content\/2013\/03\/measure_scsh.png 664w, https:\/\/sickel.net\/blogg\/wp-content\/2013\/03\/measure_scsh-300x288.png 300w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/a><p id=\"caption-attachment-1507\" class=\"wp-caption-text\">Temperature graph. The number in the lower left corner is number of data points in the graph.<\/p><\/div>\n<p>The source code for the system is available at <a href=\"https:\/\/github.com\/sickel\/homelog\">my github account<\/a>. The version presented here, is at tag <a href=\"https:\/\/github.com\/sickel\/homelog\/tree\/passive_plot\">passive_plot<\/a> &#8211; in the last version it is possible to read out data, clicking in the chart. Later it will also be shown how to put more charts on one web page.<\/p>\n<p>Why not just use <a href=\"http:\/\/cosm.com\">cosm?<\/a> Well, in fact I am uploading <a href=\"https:\/\/cosm.com\/feeds\/102668\">my data to cosm<\/a> (in fact the intermediate json format used in this project is compatible with cosm), but on one side, I like to have control and know that I know where and in which format my data are, I also do not like the ways it is possible to present data on cosm (e.g. if a long time series is presented,points are thrown away, which may be strongly misleading if a point with a (local) minimum or maxima is removed &#8211; that happens quite often)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have set up a system logging temperatures (and later hopefully also other parameters) to a postgres database. The data are now read out and presented as an svg-graph. (this may not work in some older browsers, i.e. msie< 9 &hellip; <a href=\"https:\/\/sickel.net\/blogg\/?p=1506\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[33],"tags":[],"class_list":["post-1506","post","type-post","status-publish","format-standard","hentry","category-arduino"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnVtD-oi","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts\/1506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1506"}],"version-history":[{"count":6,"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts\/1506\/revisions"}],"predecessor-version":[{"id":1533,"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts\/1506\/revisions\/1533"}],"wp:attachment":[{"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}