Robin,
I have been using your codes for accessing my Smile’s for a long time. Used Nodered for a long period.
My question is partly off topic as I want to access my Smile from Python scripts on a Synology NAS.
I do it on my NAS iso my Homey because I am more into Python and because I also access my Solaredge inverter and a TAPO smartplug for the heat pump energy.
I currently get the data with a “default” url: http://192.168.xxx.yyyy/core/locations/logs . But I want to get somewhat more flexibility as I want to get data over a longer period to simulate the effect of a storage battery.
I tried to decipher the part of the code on Github
[com.plugwise.smile/node_modules/smilep1/smilep1.js at master · gruijter/com.plugwise.smile · GitHub] where the url is composed, but I am puzzled due to my lack of understanding of Javascript.
Line 312 reads:
${path};class:eq:${logClass};${typeString};@from=${from};@to=${to};@interval=${interval};
I expect that path equals /core/locations/logs . Could you give one or more examples how a url should look if I want to select an other time period. The default interval is OK form me, but what are the options?. And what does the part class:eq:$(logClass) bring.
I hope you want to help me although this is a non-Homey question.
Fred