Integrate own sensor data / custom weather station

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

Moderator: Mattk

Post Reply
nordblick
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: Tue Feb 21, 2023 7:42 am

Integrate own sensor data / custom weather station

Post by nordblick »

Hey Guys,
I build and run a custom weather station with winddata, temp and humidity and some other data. Measurements will be published via LoRaWan and displayed on a single website (only). I would like to upload those data to the usual weather networks, especially windfinder.

I read thru some meteohub websites especially the *hub product pages and cant find and information if if its possible to upload my data via those products.

Can anyone give me sone hints where to look? Does anyone uploaded weather data from DIY sensors via meteohub? How? 😝

Cheers from Northern Germany,
Olli
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Integrate own sensor data / custom weather station

Post by admin »

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
nordblick
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: Tue Feb 21, 2023 7:42 am

Re: Integrate own sensor data / custom weather station

Post by nordblick »

Oh sounds good. Will take a closer look in the afternoon ;)

Thanks for the quick answer and the good news as well. :D
Post Reply