{"id":23,"date":"2015-05-28T13:26:19","date_gmt":"2015-05-28T13:26:19","guid":{"rendered":"http:\/\/stateoftheartsoftware.com\/docs\/?page_id=23"},"modified":"2015-05-28T13:26:39","modified_gmt":"2015-05-28T13:26:39","slug":"file-format-measurand","status":"publish","type":"page","link":"https:\/\/stateoftheartsoftware.com\/docs\/technical-documents\/file-format-measurand\/","title":{"rendered":"File Format: Measurand"},"content":{"rendered":"<h2>\n\tMeasurand.cnf &amp; Measurand.json<br \/>\n<\/h2>\n<h3 style=\"text-decoration: underline;\">\n\tMeasurand.cnf (Original Format)<br \/>\n<\/h3>\n<p>\n\tThe original file format is based on INI files and looks like this :-\n<\/p>\n<pre id=\"mycode\">\r\n{EnergyTypes}\r\netElectric|Elec|Electric\r\netGas|Gas|Gas\r\n\r\n{EnergyUnits:etElectric}\r\neukW|kWh~kilowatt hour~kW~kilowatt|Y|Y\r\neukVA|kVAh~kVAh~kVA~kVA|Y|Y\r\neukVAr|kVArh~kVArh~kVAr~kVAr|Y|Y\r\neukVArl|kVArlh~kVArlh~kVArl~kVArl|Y|Y\r\neuAmps|A~Amps|N|N\r\neuVolts|V~Volts|N|N\r\neuFrequency|Hz~Frequency (Hz)|N|N\r\neuPF|PF~Power Factor|N|N\r\neuPC|%~Percentage|N|N\r\neukgCO2|kg CO2~kg CO2~kg CO2\/h~kg CO2\/h|Y|Y\r\neukgCO2e|kg CO2e~kg CO2e~kg CO2e\/h~kg CO2e\/h|Y|Y\r\n\r\n{EnergyUnits:etGas}\r\neuCM|m&sup3;~Cubic Metre~m&sup3;\/h~Cubic Metre per Hour|Y|Y\r\neuCF|ft&sup3;~Cubic foot~ft&sup3;\/h~Cubic Foot per Hour|Y|Y\r\neuTherms|Thm~Therms~Thm\/h~Therms per Hour|Y|Y\r\neukW|kWh~kilowatt hour~kW~kilowatt|Y|Y\r\neuPC|%~Percentage|N|N\r\neukgCO2|kg CO2~kg CO2~kg CO2\/h~kg CO2\/h|Y|Y\r\neukgCO2e|kg CO2e~kg CO2e~kg CO2e\/h~kg CO2e\/h|Y|Y\r\n<\/pre>\n<p>\n\tThis is only a small part of the original file to explain the rules of the format. The original has many more energy types.\n<\/p>\n<h3 style=\"text-decoration: underline;\">\n\tMeasurand.json (New format adopted in July 2012)<br \/>\n<\/h3>\n<p>\n\tJSON is a standard cross-platform data exchange format based on Java. &nbsp;It can be read by many programming languages and is particularly useful for exchanging web data as it is read natively by Javascript. &nbsp;For more details see <a href=\"http:\/\/en.wikipedia.org\/wiki\/JSON\">this Wikipedia article<\/a>. The JSON version looks like this :-\n<\/p>\n<pre id=\"mycode\">\r\n{\r\n    &quot;Energy Types&quot;:{\r\n        &quot;etElectric&quot;:{\r\n            &quot;Internal Name&quot;:&quot;etElectric&quot;,\r\n            &quot;Short Name&quot;:&quot;Elec&quot;,\r\n            &quot;Long Name&quot;:&quot;Electric&quot;,\r\n            &quot;Unit Types&quot;:{\r\n                &quot;eukW&quot;:{\r\n                    &quot;Internal Name&quot;:&quot;eukW&quot;,\r\n                    &quot;Short Name&quot;:&quot;kWh&quot;,\r\n                    &quot;Long Name&quot;:&quot;kilowatt hour&quot;,\r\n                    &quot;Can Be Demand&quot;:true,\r\n                    &quot;Demand Short Name&quot;:&quot;kW&quot;,\r\n                    &quot;Demand Long Name&quot;:&quot;kilowatt&quot;,\r\n                    &quot;Can Be Totalled&quot;:true\r\n                },\r\n                &quot;eukVA&quot;:{\r\n                    &quot;Internal Name&quot;:&quot;eukVA&quot;,\r\n                    &quot;Short Name&quot;:&quot;kVAh&quot;,\r\n                    &quot;Long Name&quot;:&quot;kVAh&quot;,\r\n                    &quot;Can Be Demand&quot;:true,\r\n                    &quot;Demand Short Name&quot;:&quot;kVA&quot;,\r\n                    &quot;Demand Long Name&quot;:&quot;kVA&quot;,\r\n                    &quot;Can Be Totalled&quot;:true\r\n                },\r\n                &quot;eukVAr&quot;:{\r\n                    &quot;Internal Name&quot;:&quot;eukVAr&quot;,\r\n                    &quot;Short Name&quot;:&quot;kVArh&quot;,\r\n                    &quot;Long Name&quot;:&quot;kVArh&quot;,\r\n                    &quot;Can Be Demand&quot;:true,\r\n                    &quot;Demand Short Name&quot;:&quot;kVAr&quot;,\r\n                    &quot;Demand Long Name&quot;:&quot;kVAr&quot;,\r\n                    &quot;Can Be Totalled&quot;:true\r\n                },\r\n                &quot;eukVArl&quot;:{\r\n                    &quot;Internal Name&quot;:&quot;eukVArl&quot;,\r\n                    &quot;Short Name&quot;:&quot;kVArlh&quot;,\r\n                    &quot;Long Name&quot;:&quot;kVArlh&quot;,\r\n                    &quot;Can Be Demand&quot;:true,\r\n                    &quot;Demand Short Name&quot;:&quot;kVArl&quot;,\r\n                    &quot;Demand Long Name&quot;:&quot;kVArl&quot;,\r\n                    &quot;Can Be Totalled&quot;:true\r\n                },\r\n                &quot;euAmps&quot;:{\r\n                    &quot;Internal Name&quot;:&quot;euAmps&quot;,\r\n                    &quot;Short Name&quot;:&quot;A&quot;,\r\n                    &quot;Long Name&quot;:&quot;Amps&quot;,\r\n                    &quot;Can Be Demand&quot;:false,\r\n                    &quot;Can Be Totalled&quot;:false\r\n                },\r\n                &quot;euVolts&quot;:{\r\n                    &quot;Internal Name&quot;:&quot;euVolts&quot;,\r\n                    &quot;Short Name&quot;:&quot;V&quot;,\r\n                    &quot;Long Name&quot;:&quot;Volts&quot;,\r\n                    &quot;Can Be Demand&quot;:false,\r\n                    &quot;Can Be Totalled&quot;:false\r\n                },\r\n                &quot;euFrequency&quot;:{\r\n                    &quot;Internal Name&quot;:&quot;euFrequency&quot;,\r\n                    &quot;Short Name&quot;:&quot;Hz&quot;,\r\n                    &quot;Long Name&quot;:&quot;Frequency (Hz)&quot;,\r\n                    &quot;Can Be Demand&quot;:false,\r\n                    &quot;Can Be Totalled&quot;:false\r\n                },\r\n                &quot;euPF&quot;:{\r\n                    &quot;Internal Name&quot;:&quot;euPF&quot;,\r\n                    &quot;Short Name&quot;:&quot;PF&quot;,\r\n                    &quot;Long Name&quot;:&quot;Power Factor&quot;,\r\n                    &quot;Can Be Demand&quot;:false,\r\n                    &quot;Can Be Totalled&quot;:false\r\n                },\r\n                &quot;euPC&quot;:{\r\n                    &quot;Internal Name&quot;:&quot;euPC&quot;,\r\n                    &quot;Short Name&quot;:&quot;%&quot;,\r\n                    &quot;Long Name&quot;:&quot;Percentage&quot;,\r\n                    &quot;Can Be Demand&quot;:false,\r\n                    &quot;Can Be Totalled&quot;:false\r\n                },\r\n                &quot;eukgCO2&quot;:{\r\n                    &quot;Internal Name&quot;:&quot;eukgCO2&quot;,\r\n                    &quot;Short Name&quot;:&quot;kg CO2&quot;,\r\n                    &quot;Long Name&quot;:&quot;kg CO2&quot;,\r\n                    &quot;Can Be Demand&quot;:true,\r\n                    &quot;Demand Short Name&quot;:&quot;kg CO2\\\/h&quot;,\r\n                    &quot;Demand Long Name&quot;:&quot;kg CO2\\\/h&quot;,\r\n                    &quot;Can Be Totalled&quot;:true\r\n                },\r\n                &quot;eukgCO2e&quot;:{\r\n                    &quot;Internal Name&quot;:&quot;eukgCO2e&quot;,\r\n                    &quot;Short Name&quot;:&quot;kg CO2e&quot;,\r\n                    &quot;Long Name&quot;:&quot;kg CO2e&quot;,\r\n                    &quot;Can Be Demand&quot;:true,\r\n                    &quot;Demand Short Name&quot;:&quot;kg CO2e\\\/h&quot;,\r\n                    &quot;Demand Long Name&quot;:&quot;kg CO2e\\\/h&quot;,\r\n                    &quot;Can Be Totalled&quot;:true\r\n                }\r\n            }\r\n        },\r\n&quot;etGas&quot;:{\r\n    &quot;Internal Name&quot;:&quot;etGas&quot;,\r\n    &quot;Short Name&quot;:&quot;Gas&quot;,\r\n    &quot;Long Name&quot;:&quot;Gas&quot;,\r\n    &quot;Unit Types&quot;:{\r\n        &quot;euCM&quot;:{\r\n            &quot;Internal Name&quot;:&quot;euCM&quot;,\r\n            &quot;Short Name&quot;:&quot;m\\u00B3&quot;,\r\n            &quot;Long Name&quot;:&quot;Cubic Metre&quot;,\r\n            &quot;Can Be Demand&quot;:true,\r\n            &quot;Demand Short Name&quot;:&quot;m\\u00B3\\\/h&quot;,\r\n            &quot;Demand Long Name&quot;:&quot;Cubic Metre per Hour&quot;,\r\n            &quot;Can Be Totalled&quot;:true\r\n        },\r\n        &quot;euCF&quot;:{\r\n            &quot;Internal Name&quot;:&quot;euCF&quot;,\r\n            &quot;Short Name&quot;:&quot;ft\\u00B3&quot;,\r\n            &quot;Long Name&quot;:&quot;Cubic foot&quot;,\r\n            &quot;Can Be Demand&quot;:true,\r\n            &quot;Demand Short Name&quot;:&quot;ft\\u00B3\\\/h&quot;,\r\n            &quot;Demand Long Name&quot;:&quot;Cubic Foot per Hour&quot;,\r\n            &quot;Can Be Totalled&quot;:true\r\n        },\r\n        &quot;euTherms&quot;:{\r\n            &quot;Internal Name&quot;:&quot;euTherms&quot;,\r\n            &quot;Short Name&quot;:&quot;Thm&quot;,\r\n            &quot;Long Name&quot;:&quot;Therms&quot;,\r\n            &quot;Can Be Demand&quot;:true,\r\n            &quot;Demand Short Name&quot;:&quot;Thm\\\/h&quot;,\r\n            &quot;Demand Long Name&quot;:&quot;Therms per Hour&quot;,\r\n            &quot;Can Be Totalled&quot;:true\r\n        },\r\n        &quot;eukW&quot;:{\r\n            &quot;Internal Name&quot;:&quot;eukW&quot;,\r\n            &quot;Short Name&quot;:&quot;kWh&quot;,\r\n            &quot;Long Name&quot;:&quot;kilowatt hour&quot;,\r\n            &quot;Can Be Demand&quot;:true,\r\n            &quot;Demand Short Name&quot;:&quot;kW&quot;,\r\n            &quot;Demand Long Name&quot;:&quot;kilowatt&quot;,\r\n            &quot;Can Be Totalled&quot;:true\r\n        },\r\n        &quot;euPC&quot;:{\r\n            &quot;Internal Name&quot;:&quot;euPC&quot;,\r\n            &quot;Short Name&quot;:&quot;%&quot;,\r\n            &quot;Long Name&quot;:&quot;Percentage&quot;,\r\n            &quot;Can Be Demand&quot;:false,\r\n            &quot;Can Be Totalled&quot;:false\r\n        },\r\n        &quot;eukgCO2&quot;:{\r\n            &quot;Internal Name&quot;:&quot;eukgCO2&quot;,\r\n            &quot;Short Name&quot;:&quot;kg CO2&quot;,\r\n            &quot;Long Name&quot;:&quot;kg CO2&quot;,\r\n            &quot;Can Be Demand&quot;:true,\r\n            &quot;Demand Short Name&quot;:&quot;kg CO2\\\/h&quot;,\r\n            &quot;Demand Long Name&quot;:&quot;kg CO2\\\/h&quot;,\r\n            &quot;Can Be Totalled&quot;:true\r\n        },\r\n        &quot;eukgCO2e&quot;:{\r\n            &quot;Internal Name&quot;:&quot;eukgCO2e&quot;,\r\n            &quot;Short Name&quot;:&quot;kg CO2e&quot;,\r\n            &quot;Long Name&quot;:&quot;kg CO2e&quot;,\r\n            &quot;Can Be Demand&quot;:true,\r\n            &quot;Demand Short Name&quot;:&quot;kg CO2e\\\/h&quot;,\r\n            &quot;Demand Long Name&quot;:&quot;kg CO2e\\\/h&quot;,\r\n            &quot;Can Be Totalled&quot;:true\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\tAgain, this is only a small sample, but the format is obviously much more verbose!&nbsp; So why use it?&nbsp; It is easier to read by a human and is practically self-documenting, whereas the previous format was positively hieroglyphic in places.&nbsp; It is also an interchangeable standard format and allows the addition of new data without breaking old code &#8211; something which should make future changes quicker to implement.\n<\/p>\n<p>\n\t<strong>Guide to adding energy types and units to JSON format file<\/strong>\n<\/p>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Measurand.cnf &amp; Measurand.json Measurand.cnf (Original Format) The original file format is based on INI files and looks like this :- {EnergyTypes} etElectric|Elec|Electric etGas|Gas|Gas {EnergyUnits:etElectric} eukW|kWh~kilowatt hour~kW~kilowatt|Y|Y eukVA|kVAh~kVAh~kVA~kVA|Y|Y eukVAr|kVArh~kVArh~kVAr~kVAr|Y|Y eukVArl|kVArlh~kVArlh~kVArl~kVArl|Y|Y euAmps|A~Amps|N|N euVolts|V~Volts|N|N euFrequency|Hz~Frequency (Hz)|N|N euPF|PF~Power Factor|N|N euPC|%~Percentage|N|N eukgCO2|kg CO2~kg CO2~kg CO2\/h~kg CO2\/h|Y|Y eukgCO2e|kg CO2e~kg CO2e~kg CO2e\/h~kg CO2e\/h|Y|Y {EnergyUnits:etGas} euCM|m&sup3;~Cubic Metre~m&sup3;\/h~Cubic Metre per Hour|Y|Y euCF|ft&sup3;~Cubic foot~ft&sup3;\/h~Cubic Foot per Hour|Y|Y euTherms|Thm~Therms~Thm\/h~Therms per Hour|Y|Y<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":19,"menu_order":12,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/stateoftheartsoftware.com\/docs\/wp-json\/wp\/v2\/pages\/23"}],"collection":[{"href":"https:\/\/stateoftheartsoftware.com\/docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/stateoftheartsoftware.com\/docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/stateoftheartsoftware.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stateoftheartsoftware.com\/docs\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":1,"href":"https:\/\/stateoftheartsoftware.com\/docs\/wp-json\/wp\/v2\/pages\/23\/revisions"}],"predecessor-version":[{"id":24,"href":"https:\/\/stateoftheartsoftware.com\/docs\/wp-json\/wp\/v2\/pages\/23\/revisions\/24"}],"up":[{"embeddable":true,"href":"https:\/\/stateoftheartsoftware.com\/docs\/wp-json\/wp\/v2\/pages\/19"}],"wp:attachment":[{"href":"https:\/\/stateoftheartsoftware.com\/docs\/wp-json\/wp\/v2\/media?parent=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}