Git Product home page Git Product logo

greenbutton-influxdb's People

Contributors

gauthig avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

greenbutton-influxdb's Issues

Grafana dashboard - #1

Dashboard with

  • Time series that shows both Revered power from SCE and Generated to SCE
  • 7 Day sums of Delivered
  • 7 Day Sums of Generated

Parse and create CSV file output

Create first python script to generate parsed SCE Green Button data into a CSV format to check and validate the parsing puls the file correctly.

Readme Request

Hi This is not an issue, Just trying to reach out to you for help. I am not a programmer but I found your while looking for a way to read from SCE Green button data. Your code provide excellent information and might be useful for a lot of user. But not being a programmer I couldn't understand how to use it. I have a Docker installed on my synology and am also using Grafana to get data from Teslamate. Can you help me with using your tool. I can then write detailed instructions for general community. Thanks.

Utility use start time for date

Program sets event time as end of the interval, but the utility daily tottals are derived form the start of each event. Changing to use Start interval for the time event.

Parse SCE non-Net metering Green Button CSV file (Non Solar)

Get copy of non-solar custom SCE csv and be able to parse.
Setup new parameter
FileType
sce-nem = SCE CSV in Net Metering format for solar, has both generated and delivered sections
sce-res = SCE CSV in Residential non-nem format, only shows delivered energy.

Datetime was not parsed

Datetime being sent split out by segment and was spending influxdb's cpu/prog wait time to ingest.

need to convert to string before loading into dictionary for data import

Does not use timezone conversion

SCE data is local time but influxdb is supposed to be UTC. So any reports in a tool like grafana which converts to your local time will be off by -8.

Add time zone conversion
default to Los Angeles time zone since the program is primary for SCE customers.

Add parameter file option

Currently only accepts command line parameters.
Desire is to have a parameter file to pull all options and parameters for database for quick reuse.

Need month tag

Since influxdb does not group by real month, need a tag for month.

Issue Bug

Windows 11
Latest version of python installed Python 3.11.5
Requirements satisfied

C:\Temp\SCEPython>python greenbutton_import.py -f SCE-Nemfile.sample --nodb
Traceback (most recent call last):
File "C:\Temp\SCEPython\greenbutton_import.py", line 165, in
(delivered, generated, metricsout) = parse_data(args.file, args.verbose,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Temp\SCEPython\utilparse.py", line 27, in parse_data
sce_tou_parse(csv_reader, verbose, metricsout)
File "C:\Temp\SCEPython\utilparse.py", line 54, in sce_tou_parse
dt_local = datetime.strptime(util_timestamp[0], '%Y-%m-%d %H:%M:%S')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib_strptime.py", line 352, in _strptime
raise ValueError("unconverted data remains: %s" %
ValueError: unconverted data remains: ร‚

Send parsed data to inlfuxdb v1

Setup first pass to sending influxdb data the parsed results.
Will be non-ssl, no password influxdb - private lab environment only due to no security

Create and use retention policy

  • Add policy to json parm file
    -use in createdb like
    client.create_retention_policy('awesome_policy', '3d', 3, default=True)
    -add policy name to write_points

Listing as bug as default policy may delete data

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.