Skip to content

JSON Config File Explained

Garrett edited this page Dec 29, 2022 · 1 revision

Details for greenbutton.json config file

Mandatory fields

util_format

What format the input csv file is from your local utility

  • sce-tou = Southern California Edison Time of Use or Net Metering (NEME). SCE TOU provides seperate sections for generated and delivered. Zero value rows are not loaded into the database
    SCE normal rate plans (non-solar or time of use) will not work with this format.
  • pep = Pepco Maryland utility. Their csv includes cost and also delivered/generated as net in 1 hour intervals

host

The full URL or IP address for your influxdb

port

The port for influxdb, usually 8086

dbname

Database name. Please use --createdb command line option the first time or when you want to clear out the database

user

Influxdb userid with access to the database Even if you setup influxdb as open input, a value is needed here. Also shame on you if you did so.

password

No explanation needed


Future use

ssl_enable

Will convert to SSL for security. In the meantime do not run this program across the internet without a secure VPN. Running locally will be fine unless your local network is compromised.

ssl_verify

Will convert to SSL for security. In the meantime do not run this program across the internet without a secure VPN. Running locally will be fine unless your local network is compromised.

influx_ver

Provides ability to post to influxdb V1 and V2, Only V1 works at the moment. Dashboards and any queries must be re-written for V2.

batchsize

Soon adding functionality to limit batch size while posting to influxdb to increase performance.