set_meter_details: Set the details for your gas/electricity meter

View source: R/meter_details.R

set_meter_detailsR Documentation

Set the details for your gas/electricity meter

Description

Set the details for your gas/electricity meter. These will be stored as environment variables. You should add:

  • ⁠OCTOPUSR_MPAN = <electric MPAN>⁠

  • ⁠OCTOPUSR_MPRN = <gas MPRN>⁠

  • ⁠OCTOPUSR_ELEC_SERIAL_NUM = <electric serial number>⁠

  • ⁠OCTOPUSR_GAS_SERIAL_NUM = <gas serial number>⁠ to your .Renviron otherwise you will have to call this function every session. You can find your meter details (MPAN/MPRN and serial number(s)) on the developer dashboard.

Usage

set_meter_details(
  meter_type = c("electricity", "gas"),
  mpan_mprn = NULL,
  serial_number = NULL
)

Arguments

meter_type

Type of meter-point, electricity or gas

mpan_mprn

The electricity meter-point's MPAN or gas meter-point’s MPRN.

serial_number

The meter's serial number.

Value

No return value, called for side effects.


octopusR documentation built on July 9, 2023, 6:04 p.m.