Introducing Processing & Logic

Posted by Jarrah Watson on Sep 5, 2017 2:51:00 PM
Jarrah Watson
Find me on:

Sometimes the raw value recorded by your sensing equipment is not the information you need to make the right decision.

For example, your raw value may require scaling to make it easier to read; a new value calculated according to a known relationship (such as a rating); or consider other sensors in the decision making process.

Processing & Logic is a new eagle.io feature that allows you to derive new information from your existing data. Calculations are expressed as short JavaScript programs and stored in a new type of tree object called a Process Node.

‘Program’ may sound like an intimidating word, but rest assured most calculations are simple to achieve — i prefer to think of it as a fancy Microsoft Excel formula ;-p
-Albert Einstein

Let’s dive right into a couple of examples that demonstrate common uses for derived data.

Adjust a value

First up, we create a new Process Parameter to represent our derived value.

Creating process parameters for remote monitoring software

We are now presented with the Processing tab of our new parameter which is where our program will be expressed.

 

null

 

Add 10 to each reading from the Level sensor

Here we use the NODE function to access raw data from our Level sensor and return each value with 10 added.

It’s that simple.

Processing node function for sensor data

Here you can see the originalLevelsensor along with our new derived parameter side-by-side on a chart.

Translate a value

Another common scenario is translating one sensor reading into another using an equation or rating table that describes the relationship.

Translating an environmental value using an equation

Above, we translate readings from a water level sensor into corresponding flow units using a polynomial equation.

Below, we use a 3rd party libraryin conjunction with a rating table to perform linear interpolation as we convert to flow.

using a third party library with a rating table  to perform linear interpolation

These examples have only focussed on modifying values but similar techniques can be used to achieve more advanced outcomes (e.g. spike removal, forecasting).

More details on how to make the most from Processing & Logic can be found in our online documentation.

Feel free to experiment and use your imagination!

Topics: Data processing and logic, Environmental data mining

    Connect, configure and control your data loggers from the cloud

    Eagle.io is an all-in-one cloud software for hardware integrators involved in remote environmental monitoring. We believe it is critical to monitor natural assets smartly to protect and manage them effectively.

    • Bulletproof IoT networks. Relevant data anytime, from any hardware, to anyone, on any device.

    • Scalable cloud database collection, storage, analysis, mapping, alarming, editing and visualisation of time series sensor data.

    • Trusted by AECOM, CSIRO, Qld Department of Natural Resources, BMT Global, Ecotech, Xylem, Geosyntec, Specto.

    • Easy integration with standard industry loggers.

    • Simple management of discrete networks: White-labeling, managed accounts, in-app customer support, intuitive data configuration and scalable pricing.

    To learn more, register for a 30-day trial and personalised walkthrough at https://eagle.io/trial

    Subscribe Here!

    Resent Posts