Coder Social home page Coder Social logo

sergluka / elektrum-lv-unofficial-api Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 1.0 151 KB

Unofficial API for 'elektrum.lv' for electric meters data fetching

License: Apache License 2.0

Kotlin 66.64% JavaScript 33.13% Dockerfile 0.23%
grafana influxdb monitoring electricity-consumption api docker-compose latvia

elektrum-lv-unofficial-api's Issues

404 not found

Hi!

Looks like Elektrum has changed something in their configuration, because by running this command:

java -jar elektrum-fetcher-1.0.jar csv --period day -o output.csv 2019 2020

I get this:

2020-06-13 12:14:17,815 INFO [main] l.s.e.i.Client [Client.kt:59] Page 'https://mans.elektrum.lv/en/for-home/authorization/' has been opened 2020-06-13 12:14:23,905 INFO [main] l.s.e.i.Client [Client.kt:80] Authorization is successful Exception in thread "main" com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 404 Not Found for https://www.elektrum.lv/en/for-home/consumption-report/smart-meters-data/consumption.json?step=D&fromDate=2019-01-01&tillDate=2020-01-01&useDateRange=1 at com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:581) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:406) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:313) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:461) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:446) at lv.sergluka.elektrum.inner.Client.fetch$api_main(Client.kt:99) at lv.sergluka.elektrum.ElektrumFetcher.fetchContinuous(ElektrumFetcher.kt:62) at lv.sergluka.elektrum.ElektrumFetcher.fetchHourly(ElektrumFetcher.kt:48) at command.base.CmdCommonOptions.fetchData(CmdCommonOptions.kt:68) at command.base.CmdCommonOptions.fetch(CmdCommonOptions.kt:56) at command.base.CmdCommonOptions.fetch$default(CmdCommonOptions.kt:52) at command.CmdExportCsv.run(CmdExportCsv.kt:28) at MainKt$main$1.invoke(Main.kt:28) at MainKt$main$1.invoke(Main.kt) at settings.Settings.get(Settings.kt:34) at MainKt.main(Main.kt:27)

Could you please try to reproduce?

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.