Hello:
OH2.4M8 in a docker container
Ubuntu 18.0.4 Server
I am using rrdj4 persistences for my Novelan heatpump. Displaying the values in graphs and so on is working. For further calculations which I want to do in Excel I would need to have the values exported to an Excel compatible form (CSV etc)
All my research is always leading to hints to use persistence instead of an excel export. But this is in my case not a solution.
You can install the REST API docs from the Misc tab in PaoerUI. From there you can query rrd4j which will give you the values in JSON format. From there you will need to write your own script to convert the JSON to CSV. There is no CSV export built into OH or rrd4j.
so far the best hint (at least for me)
Is it possible to ask more than one itemnames at once in one request?
In which format is the time displayed in json output?
Could you tell me where you are calling it from or how it can be referenced? From a personal widget?
I would also be interested to know if this visually shows the .csv downloaded through the browser or if instead it is generated in a file within the server.
As far as I read the script it can be called standalone from the command line.
It would be possible to call it by using the exec binding or executecommandLine.
The extracted values are saved to a file ( call to write_csv ).