Page 1 of 1

[userModule] Mathematica (formerly Arithmetic)

Posted: 19 Mar 2015 21:53
by pz1
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
mathem.PNG
mathem.PNG (5.92 KiB) Viewed 5227 times
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.
formula.PNG
formula.PNG (10.66 KiB) Viewed 5227 times
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")
Where vDev_xx represents your device(e.g. PVLogger_5-2)

Code: Select all

    {"scaleTitle":"kWh","title":"Solar Energy2","probeTitle":"Energy","level":4.1}
In this specific example level represents the Energy in kWh produced since day begin.

Re: [userModule] old module Arithmetic

Posted: 19 Sep 2016 18:07
by pz1
The original module Arithmetic has been replaced by the more versatile Mathematica, which is the preference now. The old module will stay for some time in the appstore, and also on Github