https://github.com/sdebruyn/inzight
analyse your electricity usage data from Belgian smart meters with dbt, duckdb and evidence
https://github.com/sdebruyn/inzight
data dbt duckdb electricity evidence
Last synced: 11 months ago
JSON representation
analyse your electricity usage data from Belgian smart meters with dbt, duckdb and evidence
- Host: GitHub
- URL: https://github.com/sdebruyn/inzight
- Owner: sdebruyn
- License: mit
- Created: 2023-02-10T22:25:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T06:24:15.000Z (over 2 years ago)
- Last Synced: 2025-02-27T00:55:03.012Z (11 months ago)
- Topics: data, dbt, duckdb, electricity, evidence
- Homepage: https://sdebruyn.github.io/inzight
- Size: 1.52 MB
- Stars: 20
- Watchers: 1
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# in⚡️ight
A simple data project using [dbt](https://getdbt.com), [DuckDB](https://duckdb.org/) and [Evidence](https://evidence.dev/) to analyse your electricity data from Belgian smart meters.
Thanks to [Jacob Matson](https://github.com/matsonj) for [his blog post](https://www.dataduel.co/modern-data-stack-in-a-box-with-duckdb/) which inspired all of this.
## Available in⚡️ights
### Available models & documentation
The dbt documentation is available at [https://sdebruyn.github.io/inzight](https://sdebruyn.github.io/inzight).
### Included dashboards

### 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`
1. Install the dependencies:
```bash
pip install -r requirements.txt
npm install
```
1. Create a profile named `inzight` in `~/.dbt/profiles.yml` with the following content:
```yaml
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`
1. Run `dbt deps` to install the dbt package dependencies
1. Run `dbt build` to create all models
1. 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