evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.6k stars 668 forks source link

Execute more Complex Javascript Scripts #3212

Closed powelllens closed 2 years ago

powelllens commented 2 years ago

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like when integrating new hardware it would be great if the js script interface would offer more complex javascript possibilities. for example i would like to include more libarys that extend the scope of underscorejs. Specifically it is about axios,https,querystring for example.

Unfortunately i couldn't find out if it is possible to include whole script files. all examples i could find contain all js parts directly in the yaml config file.

Describe alternatives you've considered I am aware that i could use shell scripts, unfortunately this is not very elegant if i have a lot of common code that i would share between the scripts.

Additional context Example:

meters:

andig commented 2 years ago

Unfortunately not possible. You can still use js and reuse code in shell scripts and run those.