Willkommen bei bytebang » The blog about all and nothing » How to connect your Davis Vantage 2 to the Internet

How to connect your Davis Vantage 2 to the Internet

Okt 29 2016

Dieser Blog-Beitrag wurde noch nicht veröffentlicht.

--- AM PI ---

DAEMON=/usr/bin/$NAME
DAEMON_ARGS="PTY,user=meteohub,link=/dev/ttyUSB0 tcp:pi-turm:3333"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME


--- Am Meteohub --
#!/bin/bash
#Reset the stick
echo Resetting meteostick ...
printf "r\n" | socat TCP:192.168.1.162:3333 -
sleep 4

#Set it to the european frequency band (868MHz)
echo Setting frequency to european band ...
printf "m1\n" | socat TCP:192.168.1.162:3333 -
sleep 2

# Set the output format to something meteohub understands
echo Setting output format
printf "o2\n" | socat TCP:192.168.1.162:3333 -
sleep 2

# Map the serial port
echo Mapping serial port
socat -d -d PTY,user=meteohub,link=/dev/ttyUSB0 tcp:192.168.1.162:3333

Get Social


(c) 2017, by bytebang e.U. - Impressum - Datenschutz / Nutzungsbedingungen
-