Meteobridge Alien Data

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
User avatar
galfert
Platinum Boarder
Platinum Boarder
Posts: 326
Joined: Sun Jun 24, 2018 10:31 pm
Location: Orlando, FL

Meteobridge Alien Data

Post by galfert »

I just read the firmware update log and there is a new update that gives the Meteobridge the ability to handle what is being called alien data. I'd like to understand this new feature better and examples of possible use scenarios. What is this for?
Version 3.9
released March 2, 2019
  • allows to feed alien data (as "data21num") into Meteobridge by providing an executeable shell script as /root/datafeed that returns "data21 xxx", where xxx is an integer number which will be divided by 100 when used by Meteobridge. Example: File "/root/datafeed" is defined as follows and presents value "100.00" on the live data display for sensor "data21num":

Code: Select all

#!/bin/sh
#
echo "data21 10000"
exit 0
700px-Data21.png
700px-Data21.png (101.06 KiB) Viewed 1920 times
Meteobridge RPI | GW1000
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Meteobridge Alien Data

Post by admin »

There was a request to have Meteobridge working on data not coming from the connected weather station but from somewhere else.

Think of a solar power panel that reports available voltage via USB. To make use of this inside Meteobridge you need
  • a low level driver that brings voltage data to the Meteobridge platform (some Linux driver, shell script, etc) and when you have the data somehow available
  • then you want to make use of it via template variables or order to report the data or to trigger actions when voltage meets some critical level.
The later part can now easily be realized by the proposed datafeed script. So only the drivers to get the data from the device onto the Meteobridge platform needs to be done by the user, who is assumed to be more some kind of IT specialist as you need to be into Linux/Openwrt for this.

Long message short: It is a feature for some advanced users who want to connect an additional device.
User avatar
galfert
Platinum Boarder
Platinum Boarder
Posts: 326
Joined: Sun Jun 24, 2018 10:31 pm
Location: Orlando, FL

Re: Meteobridge Alien Data

Post by galfert »

Thank you for the explanation. Meteobridge is awesome and amazing that it can do so much yet remain so user friendly.
Meteobridge RPI | GW1000
SANdood
Senior Boarder
Senior Boarder
Posts: 60
Joined: Wed Jan 28, 2015 1:36 pm

Re: Meteobridge Alien Data

Post by SANdood »

So, does the data name have to be "data21" or can it be anything - like "AQI25", for example?
SANdood
Senior Boarder
Senior Boarder
Posts: 60
Joined: Wed Jan 28, 2015 1:36 pm

Re: Meteobridge Alien Data

Post by SANdood »

Is it true that this "alien data" is only supported on the Nano and the MB Pro? I've created the /root/datafeed script on my MR3020v3, and nothing happens. I would really like to have this, so that I can include the AQI at my locations along with the weather data (instead of calculating it in multiple different places).

It would be awesome if we could also get the supported "data" values from the Pro version on the MR3020v3 - the bolded ones below should be available:

data10num: cpu load in percent
data11num: uptime in hours
data12num: usage of data partition in percent
data13num: usage of RAM in percent

data14num: power consumption in Watts
data15num: number of processes
data16num: age of data (all sensors) in seconds

data17num: voltage in Volts
data18num: current consumption in Ampere

data19num: kilobytes of data sent (including web interface traffic)
data20num: kilobytes of data received (including web interface traffic)
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Meteobridge Alien Data

Post by admin »

sorry, that is not planned.
Post Reply