Coder Social home page Coder Social logo

sdebruyn / inzight Goto Github PK

View Code? Open in Web Editor NEW
19.0 1.0 1.0 1.56 MB

analyse your electricity usage data from Belgian smart meters with dbt, duckdb and evidence

Home Page: https://sdebruyn.github.io/inzight

License: MIT License

dbt duckdb electricity data evidence

inzight's Introduction

in⚡️ight

A simple data project using dbt, DuckDB and Evidence to analyse your electricity data from Belgian smart meters.

Thanks to Jacob Matson for his blog post which inspired all of this.

Available in⚡️ights

Available models & documentation

The dbt documentation is available at https://sdebruyn.github.io/inzight.

Included dashboards

Quick in⚡️ights

Capacity tariff

Requirements

  • Python 3.8 or newer (dbt & DuckDB)
  • NPM 7 or newer and Node.JS 14 or newer (Evidence)
  • Your source data (see below)

Setup

  1. Clone the repo: git clone https://github.com/sdebruyn/inzight.git

  2. Install the dependencies:

    pip install -r requirements.txt
    npm install
  3. Create a profile named inzight in ~/.dbt/profiles.yml with the following content:

    inzight:
      target: dev
      outputs:
        dev:
          type: duckdb
          threads: 12 # should be the number of cores in your system (or double if you have hyperthreading)
          database: /path_to_the_project/inzight.duckdb # point to the project folder

Source data

The project expects an export from Mijn Fluvius with Kwartierwaarden. The export should go in assets/fluvius.csv.

My column names are in Dutch, I have no idea what you get if you have a different language setting for Fluvius. Please create an issue with your column names if yours are not in Dutch.

Analyzing

  1. Make sure your source data has been added as a file named assets/fluvius.csv
  2. Run dbt deps to install the dbt package dependencies
  3. Run dbt build to create all models
  4. Run npm run dev to start the Evidence server and open the dashboards in your browser

Note

It's (like most hobby projects) a never-ending work in progress. Contributions are welcome!

License

MIT License

inzight's People

Contributors

dependabot[bot] avatar sdebruyn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

m8e

inzight's Issues

Custom Formatting

This is such a cool use of open data to create something insightful!

I notice whenever you are referring to Energy values you are appending kWh.

You may be interested in defining a custom format in the settings menu (using excel-style format codes), which would remove the need for you to do this in each place!

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.