[userModule] Mathematica (formerly Arithmetic)

Tips, Tricks and Scripts to enhance your home automation and workaround known device bugs, limitations and incompatibilities
Post Reply
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

[userModule] Mathematica (formerly Arithmetic)

Post by pz1 » 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
mathem.PNG
mathem.PNG (5.92 KiB) Viewed 1033 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 1033 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.

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: [userModule] old module Arithmetic

Post by pz1 » 19 Sep 2016 18:07

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

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest