Comments (16)
Salut,
I don't understand your point, there are two "programs" here, one that capture the data, and the other that generate the sql, sadly my python skills are a bit low... so the other is nodejs.
If you know how to make the sql from the python I'll be more than happy !
BTW on another repo there is the gazpar, but sql still to be generated
from domoticz_linky-deprecated.
The idea is to maybe create a linky package that can be used in domoticz_linky or in any other python program that would like to fetch data.
It should be quite easy to create the SQL from python or even to connect to SQLITE/MySQL/PostgreSQL to run the generated SQL.
from domoticz_linky-deprecated.
Il would also allow to use the same code in empierre/jeedom_linky
from domoticz_linky-deprecated.
"create the SQL from python" This is where I'm still not very good with python, so I used nodeJS (and I could have been much better in Perl ;-)
The nodejs part is full of unused procs, I'm currently rewriting and simplifying it for Gaspar. The Gaspar data fetch will be more robust, so maybe I'll update back linky afterward to have a single json format.
A few days ago @guillaumezin proposed the correction for daily values for Domoticz, transformation is not that easy... but right now it is still compatible with the Jeedom project.
from domoticz_linky-deprecated.
I use domoticz_linky to fetch data and store them in an InfluxDB database instead of Domoticz. See https://github.com/LudovicRousseau/domoticz_linky/tree/influxdb
So I made modifications in domoticz_linky (#14) to make the code more flexible.
Putting the fetching data code in its own package would be great.
from domoticz_linky-deprecated.
@LudovicRousseau if you hgave the knowledge it would be welcome as I am not a python dev, only hacking and learning it
from domoticz_linky-deprecated.
I just discovered the pyLinky project at https://github.com/Pirionfr/pyLinky
It looks like a lot of people are working on the same problem but with different solutions :-)
Maybe we should aggregate all the projects to share some common code?
from domoticz_linky-deprecated.
I updated pyLinky to suite my needs https://github.com/LudovicRousseau/pyLinky
I now have a simpler Python script https://github.com/LudovicRousseau/domoticz_linky/blob/influxdb/linky_influxdb.py
from domoticz_linky-deprecated.
@LudovicRousseau can be a good idea, with the risk they put a captcha and we're locked out...
from domoticz_linky-deprecated.
@empierre Who is "they"?
from domoticz_linky-deprecated.
this is Enedis...
from domoticz_linky-deprecated.
I don't get the relation between a pyLinky module and the fact that Enedis adds a captcha.
The idea to have a module is that any Python project can use the module without reinventing the wheel.
from domoticz_linky-deprecated.
sure, but the effort we do will be someday stucked by a captcha
from domoticz_linky-deprecated.
Maybe.
No problem if you do not want to use the pyLinky module. You can close this issue.
from domoticz_linky-deprecated.
I'm interrested, hoping we'll last a bit more ;-)
from domoticz_linky-deprecated.
I could be interested too for https://github.com/guillaumezin/DomoticzLinky but not sure how it will integrate, my plugin is tightly coupled to Domoticz plugin API, because as soon as you use external Python libraries, it often fails (the way it is compiled, Domoticz seems to break OpenSSL implementation, as soon as you use an Python API that relies on SSL inside a plugin, it fails miserably, that's the case for requests module for instance).
from domoticz_linky-deprecated.
Related Issues (13)
- add a single config file
- adding tests HOT 3
- Timezone HOT 1
- session_cookie is set but not used
- Problem with hourly data HOT 1
- Problem with Winston ? HOT 3
- check history above 1 month
- move to D2L when captcha will be activated HOT 3
- Use Enedis new API? HOT 1
- Login unsuccessful. Check your credentials.
- add daily info HOT 1
- get back month independently on years
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from domoticz_linky-deprecated.