{"id":19700580,"url":"https://github.com/sdebruyn/inzight","last_synced_at":"2025-02-27T12:40:14.155Z","repository":{"id":65831769,"uuid":"600236155","full_name":"sdebruyn/inzight","owner":"sdebruyn","description":"analyse your electricity usage data from Belgian smart meters with dbt, duckdb and evidence","archived":false,"fork":false,"pushed_at":"2023-07-20T06:24:15.000Z","size":1594,"stargazers_count":20,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T00:55:03.012Z","etag":null,"topics":["data","dbt","duckdb","electricity","evidence"],"latest_commit_sha":null,"homepage":"https://sdebruyn.github.io/inzight","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdebruyn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-02-10T22:25:50.000Z","updated_at":"2024-07-09T04:26:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"62a1ef37-4135-4bdc-b18f-bf7961314903","html_url":"https://github.com/sdebruyn/inzight","commit_stats":{"total_commits":63,"total_committers":2,"mean_commits":31.5,"dds":"0.015873015873015928","last_synced_commit":"183a824063567a83e7324ca9e5097c7113584bd3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdebruyn%2Finzight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdebruyn%2Finzight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdebruyn%2Finzight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdebruyn%2Finzight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdebruyn","download_url":"https://codeload.github.com/sdebruyn/inzight/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241014226,"owners_count":19894211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","dbt","duckdb","electricity","evidence"],"created_at":"2024-11-11T21:06:29.174Z","updated_at":"2025-02-27T12:40:14.133Z","avatar_url":"https://github.com/sdebruyn.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# in⚡️ight\n\nA 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.\n\nThanks 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.\n\n## Available in⚡️ights\n\n### Available models \u0026 documentation\n\nThe dbt documentation is available at [https://sdebruyn.github.io/inzight](https://sdebruyn.github.io/inzight).\n\n### Included dashboards\n\n\u003cimg src=\"visuals/home.png\" width=\"350\" alt=\"Quick in⚡️ights\" /\u003e\n\u003cimg src=\"visuals/capacity_tariff.png\" width=\"350\" alt=\"Capacity tariff\" /\u003e\n\n### Requirements\n\n* Python 3.8 or newer (dbt \u0026 DuckDB)\n* NPM 7 or newer and Node.JS 14 or newer (Evidence)\n* Your source data (see below)\n\n### Setup\n\n1. Clone the repo: `git clone https://github.com/sdebruyn/inzight.git`\n1. Install the dependencies:\n    ```bash\n    pip install -r requirements.txt\n    npm install\n    ```\n1. Create a profile named `inzight` in `~/.dbt/profiles.yml` with the following content:\n\n    ```yaml\n    inzight:\n      target: dev\n      outputs:\n        dev:\n          type: duckdb\n          threads: 12 # should be the number of cores in your system (or double if you have hyperthreading)\n          database: /path_to_the_project/inzight.duckdb # point to the project folder\n    ```\n\n### Source data\n\nThe project expects an export from *Mijn Fluvius* with *Kwartierwaarden*. The export should go in `assets/fluvius.csv`.\n\nMy 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.\n\n### Analyzing\n\n1. Make sure your source data has been added as a file named `assets/fluvius.csv`\n1. Run `dbt deps` to install the dbt package dependencies\n1. Run `dbt build` to create all models\n1. Run `npm run dev` to start the Evidence server and open the dashboards in your browser\n\n## Note\n\nIt's (like most hobby projects) a never-ending work in progress. Contributions are welcome!\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdebruyn%2Finzight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdebruyn%2Finzight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdebruyn%2Finzight/lists"}