Page 1 of 1
Meteobridge Alien Data
Posted: Sat Mar 02, 2019 2:32 pm
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 (101.06 KiB) Viewed 1930 times
Re: Meteobridge Alien Data
Posted: Sun Mar 03, 2019 12:04 pm
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.
Re: Meteobridge Alien Data
Posted: Sun Mar 03, 2019 5:00 pm
by galfert
Thank you for the explanation. Meteobridge is awesome and amazing that it can do so much yet remain so user friendly.
Re: Meteobridge Alien Data
Posted: Sun Mar 03, 2019 5:58 pm
by SANdood
So, does the data name have to be "data21" or can it be anything - like "AQI25", for example?
Re: Meteobridge Alien Data
Posted: Mon Mar 04, 2019 1:03 am
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)
Re: Meteobridge Alien Data
Posted: Mon Mar 11, 2019 8:15 pm
by admin
sorry, that is not planned.