Domotica gratuit › Forums › How can I …? › Synology NAS › Panel: working with database (e.g. show sum of electricity consumption))
Mots-clés : database wall plug
Ce sujet a 2 réponses, 2 participants et a été mis à jour par djandib, il y a 1 an et 6 mois.
I want to see at a panel at my dashboard the sum of electricity consumption measured by my fibaro wall-plug e.g. from 01.01.2017 until today
I have an existing and fine working database. So the consumption datas are saved and you “just” have to work with them. Unfortunately no idea how
Has anyone an idea or solution?
You can create a virtual device to store this ‘sum’ value.
This is the device you can show in your dashboard.
Then using blocky you can query the database using a custom php block and put the sum inside this virtual device.
OK, I understand, but how is it possible to query the database and work with it?
Working with php I found this:
But as a newbie and never learned php it`s impossible for me to get a result….
I didn`t find any documentation about this in the forum…
Vous devez être connecté pour répondre à ce sujet.
Log in / Register