Giter Site home page Giter Site logo

electricity-consumption-for-my-home's Introduction

electricity-consumption-for-my-home

Scripts to produce reports on my electricity use, and its cost. Used under Ubuntu linux. Should work under other OS:s as well, if they have python, egrep, sed, sh.

I download data about my electricity use from my electric grid operator (SEOM). I store this as CSV files. I copy data from a web page, to get todays electric current prices (per hour). I store this as CSV files.

Currently it does not seem to be possible to get historic electric current prices, per hour, in Sweden, only for the current day. I suspect that this is due to business license agreements.

I use script collect_förbrukning.sh to copy downloaded SEOM CSV files to file "förbrukning.dump", and sanitize that file.

I use script "pris/collect_el_pris.sh" to copy CSV files with daily current prices to "pris/el-pris_dump.csv", and sanitize that file.

I then run python script "kostnad_timme.py" (in english: cost_hour) to produce a report with costs per hour. I run the script as follows:

./kostnad_timme.py 2022-09-18 2022-09-26

This produces a per hour report for the days from 2022-09-18 inclusive, to 2022-09-26 exclusive. Missing data is handled.

I run script "kostnad_dag.py" (in english: cost_day) to produce a report with costs per day. I run the script as follows:

./kostnad_dag.py 2022-09-18 2022-09-26

This produces a per day report for the days from 2022-09-18 inclusive, to 2022-09-26 exclusive. Missing data is handled.

Web scraping

See web-scraping.org for documentation on how to scrape a web-page, and to do this automatically every day.

electricity-consumption-for-my-home's People

Contributors

johanwiden avatar

Watchers

 avatar

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.