Skip to content

Latest commit

 

History

History
72 lines (57 loc) · 2.04 KB

gasusage.md

File metadata and controls

72 lines (57 loc) · 2.04 KB

Gas Usage History

This message provides the gas usage history.

Values are in kWh with 32 days of history per page.
As there are 32 entries per page, the current gasusage pointer needs to be divided by 32 to have the current day page.

To convert to m3, the Easy uses a conversion factor of 0.12307692F (kWh * 0.12307692f = m3) for natural gas (which means a calorific value of 29MJ/m3).
For LPG usage, the conversion factor is 0.040742416F.

Endpoint

Info Details
URL /ecus/rrc/recordings/gasusage
Recordable False
Writable False
Parameters page=PAGE#

Detailed Content

Key Example Description
id /ecus/rrc/recordings/gasusage Message ID (URL)
recordable 0 Recordable parameter (0=No)
type recordings Data type of value
value [{u'ch': 0, u'T': 226, u'hw': 3.8, u'd': u'29-05-2017'}, {u'ch': 0, u'T': 211, u'hw': 7.2, u'd': u'30-05-2017'}, {u'ch': 6553.5, u'T': -1, u'hw': 6553.5, u'd': u'255-256-65535'}] Gas Usage Records for each day formatted in JSON
writeable 0 Writable parameter (0=No)

recordings type details

Key Example Description
ch 0 Central Heating
T 226 average outdoor temperature (*10)
hw 3.8 Hot Water
d 29-05-2017 Date formatted as DD-MM-YYYY

Example Message Content

{
    "id": "/ecus/rrc/recordings/gasusage",
    "recordable": 0,
    "type": "recordings",
    "value": [
        {
            "T": 226,
            "ch": 0,
            "d": "29-05-2017",
            "hw": 3.8
        },
        {
            "T": 211,
            "ch": 0,
            "d": "30-05-2017",
            "hw": 7.2
        },
        {
            "T": -1,
            "ch": 6553.5,
            "d": "255-256-65535",
            "hw": 6553.5
        }
    ],
    "writeable": 0
}