sergluka / elektrum-lv-unofficial-api Goto Github PK
View Code? Open in Web Editor NEWUnofficial API for 'elektrum.lv' for electric meters data fetching
License: Apache License 2.0
Unofficial API for 'elektrum.lv' for electric meters data fetching
License: Apache License 2.0
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.