[userModule] Mathematica (formerly Arithmetic)
Posted: 19 Mar 2015 21:53
Mathematica is the preferred app now. I did rename the app, because the parameter specifications are different now. That could lead to unexpected behaviour for existing users.
Last version 0.0.3: 2016-09-19
Tested with: v2.2.4-rc9
STATUS:beta
Download: Online Appstore
Github: sources
Rationale
I badly missed a function in HA to manipulate data from one or two virtualDevice sensors. That was the very reason for writing this app.
Functions
You can use any valid javascript expression for the formula as shown in the example below.
You first specify the operation you want to do. Next Sensor name and units. In the sensor selectors of this module you can find the internal names for the sensors to be used. To get the available metrics use your web browser with:
Where vDev_xx represents your device(e.g. PVLogger_5-2)
In this specific example level represents the Energy in kWh produced since day begin.
Last version 0.0.3: 2016-09-19
Tested with: v2.2.4-rc9
STATUS:beta
Download: Online Appstore
Github: sources
Rationale
I badly missed a function in HA to manipulate data from one or two virtualDevice sensors. That was the very reason for writing this app.
Functions
You can use any valid javascript expression for the formula as shown in the example below.
You first specify the operation you want to do. Next Sensor name and units. In the sensor selectors of this module you can find the internal names for the sensors to be used. To get the available metrics use your web browser with:
Code: Select all
http://raspberry_IP:8083/JS/Run/controller.devices.get("vDev_xx").get("metrics")
Code: Select all
{"scaleTitle":"kWh","title":"Solar Energy2","probeTitle":"Energy","level":4.1}