The idea of Pilea is to display electricity consumption and weather data on a little dashboard that allow the user to:
- Better understand his electricity consumption,
- Analyse his electricity consumption throw weather data (in a first time, essentialy temperature).
This app is not a tentative to prove that Linky is cool. I'm not a big fan of Linky and you can understand why on Reporterre.net [fr]
But, now we have this little sneaky guy in our home, well, let's use it.
And I can say that dispite what Enedis says: Linky is great opportunoity for users to understand their consumption and reduce it blablabla..
They do nothing to help individuals to use their data in their own (and not just visualize it on their website or on their partner's one). There's no API (or maybe there's one but any documentation can't be found) to programmaticly get our own data.
I want to thanks KibOost for the retroengineering he has done.
A dashboard with several tabs :
- Current consumption state
- Electricity consumption graphics
- DJU vs Electricity consumption
- Meteo (T°, Nebulosity, Rain, Humidity)
DJU (Degré jour unifié or Degree day in english) [fr] defines the gap between outdoor temperature and a reference temperature (18°C). It's used to define rigor of a winter. Basicly, the more there are DJU during a day, the colder it gets outside.
Data are daily collected, we get:
- Electricity consumption data from your Linky via Enedis API (inspired by php-LnkyAPI)
- Weather observation data from Meteo France Synop data
First of all:
- You'll need a Linky (obviously) and a Enedis account
- Logged in your Enedis account, you have to activate option Courbe de charge in order to get your hourly consumption
Requirements:
- PHP 7.2 or higher
- MySQL 5.5 or higher
(PostgreSQL & SQLite should work but you'll have to adapt
.env
&config/packages/doctrine.yaml
)
Installation:
- Get the repo
- Set Database name, user and password in
.env
file - Install Composer dependencies:
composer install
- Run install script:
bin/console pilea:install
- Set up cron:
echo "*/10 * * * * [user] /[app_folder]/bin/console pilea:fetch-data false" > /etc/cron.d/pilea
(replace [user] and [app_floder] with your config) - Config NGINX or Apache as you would do for any Symfony 4 application
Be aware that there's no security provided with this app for now, no login, no users, nothing. So if you install it on a server, set it accessible only on your local network.
- Add DJU trentenaire (average DJU on last 30 years) for comparision
- Add a compare period tab
- Handle users
- Be more responsive
- Handle multi linkys feeds support
- Handle other kind of feeds for other energies (Generic CSV ?)