Meteohub is no longer in development, we switched all-in to Meteobridge.
Meteobridge allows to integrate "user-defined" weather stations.
In that mode Meteobridge starts a shell script (which user has to define and store in the scripts folder)
and that has to report weather sensor in a defined way on stdin.
You find more information on this in the September 12, 2020 release notes:
https://meteobridge.com/wiki/index.php/Forum
There is a predefined example for a simulated weather station, called "simulstation.plugin".
"simulstation.plugin" looks as follows:
Code: Select all
#!/bin/sh
#
i=0
while true;
do
temp="`awk 'BEGIN{srand();print int(100+rand()*200)}'`"
hum="`awk 'BEGIN{srand();print int(20+rand()*40)}'`"
baro="`awk 'BEGIN{srand();print int(9800+rand()*400)}'`"
echo "thb0 $temp $hum $baro"
sleep 2
temp="`awk 'BEGIN{srand();print int(100+rand()*200)}'`"
hum="`awk 'BEGIN{srand();print int(20+rand()*40)}'`"
echo "th0 $temp $hum"
sleep 2
temp="`awk 'BEGIN{srand();print int(100+rand()*200)}'`"
echo "t0 $temp"
sleep 2
dir="`awk 'BEGIN{srand();print int(rand()*359)}'`"
wind="`awk 'BEGIN{srand();print int(rand()*150)}'`"
gust=$((wind+30))
echo "wind0 $dir $gust $wind"
sleep 2
rate="`awk 'BEGIN{srand();print int(rand()*100)}'`"
total=$((i+2))
echo "rain0 $rate $total"
i=$total
sleep 2
uv="`awk 'BEGIN{srand();print int(rand()*40)}'`"
echo "uv0 $uv"
sleep 2
rad="`awk 'BEGIN{srand();print int(rand()*1000)}'`"
echo "sol0 $rad"
sleep 2
num="`awk 'BEGIN{srand();print int(rand()*10000)}'`"
echo "data0 $num"
sleep 2
done