{"id":305,"date":"2008-10-01T22:25:17","date_gmt":"2008-10-01T22:25:17","guid":{"rendered":"http:\/\/dalelane.co.uk\/blog\/?p=305"},"modified":"2008-10-01T22:35:16","modified_gmt":"2008-10-01T22:35:16","slug":"comparing-your-currentcost-data-with-others","status":"publish","type":"post","link":"https:\/\/dalelane.co.uk\/blog\/?p=305","title":{"rendered":"Comparing your CurrentCost data with others"},"content":{"rendered":"<p><a href=\"http:\/\/www.flickr.com\/photos\/dalelane\/2811527759\/\" title=\"a Python CurrentCost app by dalelane, on Flickr\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/farm4.static.flickr.com\/3095\/2811527759_4b5c3b0353_m.jpg\" align=\"left\" style=\"border: thin black solid\" hspace=\"10\" vspace=\"5\" width=\"240\" height=\"180\" alt=\"a Python CurrentCost app\" \/><\/a>Between holidays, meetings, work and other stuff, I put CurrentCost stuff to one side for a few weeks. <\/p>\n<p>I&#8217;m back now, and thought I&#8217;d share my plans for the app. If nothing else, I figure it&#8217;s useful for me to refresh my memory and plan my next step!<\/p>\n<p><!--more--><a href=\"http:\/\/dalelane.co.uk\/blog\/?p=297\">My CurrentCost app<\/a> is a desktop application, written in Python so that it can be used on Windows or Linux (and presumably Mac OS, although I&#8217;ve not tried that). It reads data from a CurrrentCost meter, and displays it to the user. <\/p>\n<p>The interface has a number of tabs:<br \/>\n<a href=\"http:\/\/www.flickr.com\/photos\/dalelane\/2841883225\/\" title=\"What info would people want from CurrentCost? by dalelane, on Flickr\"><img loading=\"lazy\" decoding=\"async\" style=\"border: thin black solid\" hspace=\"10\" vspace=\"10\" align=\"right\" src=\"http:\/\/farm4.static.flickr.com\/3191\/2841883225_1ac058edc8_m.jpg\" width=\"240\" height=\"126\" alt=\"What info would people want from CurrentCost?\" \/><\/a><\/p>\n<ul>\n<li>&#8220;Trends&#8221; &#8211; displays textual descriptions of patterns noticed\n<\/li>\n<li>&#8220;Hourly&#8221; &#8211; shows a bar graph of electricity usage where each bar shows electricity used in a two hour period\n<\/li>\n<li>&#8220;Daily&#8221; &#8211; shows a bar graph of electricity usage where each bar shows electricity used in a day<\/li>\n<li>&#8220;Monthly&#8221; &#8211; shows a bar graph of electricity usage where each bar shows electricity used in a month<\/li>\n<li>&#8220;Average day&#8221; &#8211; shows a bar graph showing a &#8220;typical weekday&#8221; &#8211; showing average electricity usage for each two hour period<\/li>\n<li>&#8220;Average week&#8221; &#8211; shows a bar graph showing a &#8220;typical week&#8221; &#8211; showing average electricity usage for each day<\/li>\n<\/ul>\n<p>I&#8217;ve now created an accompanying website, where users can create a profile and log-in with a username\/password. Profiles are used to create and join\/leave groups. These could be groups such as &#8220;three bedroom houses&#8221; or &#8220;one bedroom flats&#8221;. However, to be honest, it&#8217;s fairly free-form. It&#8217;s just a collection of users with a group name and description.<\/p>\n<p>The desktop app now includes a &#8220;Upload data to web&#8221; button which will upload the user&#8217;s historical electricity usage data to a web service sitting behind the website. <\/p>\n<p>The next step is for the desktop app to add some new tabs which display data received from web services on the site. This will probably mean at least one tab for each group that the user is a member of. E.g. if you are a member of a &#8220;three bedroom houses&#8221; group, then the desktop app will have a &#8220;three bedroom houses&#8221; tab which shows your electricity usage compared with the average for this group. <\/p>\n<p>I hope this will make the desktop app broader. Rather than just showing you what you use, it will start letting you see how your usage compares with other people&#8217;s.<\/p>\n<p>I&#8217;m not sure how much longer this will take &#8211; my website is certainly fairly ugly at the moment, and could do with a visual makeover. <\/p>\n<p>And I have other things I want to do before getting much further. For example, I&#8217;m thinking of shifting the way that electricity usage data is persisted by the desktop app, from a python dictionary that gets written to disk using pickle, to a database approach using sqllite. <\/p>\n<p>Even so, I should have something that shows the basic idea pretty soon.<\/p>\n<p>Feedback, as always, is very welcome. And if you have a CurrentCost meter and fancy being a tester for this when it&#8217;s ready to share, please do get in touch!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Between holidays, meetings, work and other stuff, I put CurrentCost stuff to one side for a few weeks. I&#8217;m back now, and thought I&#8217;d share my plans for the app. If nothing else, I figure it&#8217;s useful for me to refresh my memory and plan my next step!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,3],"tags":[194,212],"class_list":["post-305","post","type-post","status-publish","format-standard","hentry","category-code","category-tech","tag-currentcost","tag-python"],"_links":{"self":[{"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=305"}],"version-history":[{"count":0,"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/305\/revisions"}],"wp:attachment":[{"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalelane.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}