Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request WX info #35

Closed
samsonpwnz opened this issue May 25, 2016 · 3 comments
Closed

Feature request WX info #35

samsonpwnz opened this issue May 25, 2016 · 3 comments

Comments

@samsonpwnz
Copy link

I have been trying to come up with a workaround for this myself, but I am at a standstill.
Is there any way to grab WX info from a file that is already properly formatted to send out on APRS and beacon using that? Or any combination of ways to get direwolf to beacon WX info. Greatly appreciated!

@wb2osz
Copy link
Owner

wb2osz commented Jul 4, 2016

Did you try using the custom beacon (CBEACON) type? The INFOCMD option allows you to specify a command which generates the information part of the packet.

@morcant
Copy link

morcant commented Feb 13, 2017

I am also looking to report weather data. I have attempted using CBEACON and finally got it working using this format:

CBEACON sendto=IG delay=:30 every=30 infocmd="/root/bin/wx.sh"

Where wx.sh uses
date=date +%m%d%H%M
printf "_%sc000s000g000t%03.0fr000p000P000h%db00000wRSW" $date $temp $humidity

See http://www.aprs.org/doc/APRS101.PDF for more information.

@wb2osz
Copy link
Owner

wb2osz commented Jun 14, 2017

An example has been added to the User Guide.

Send a weather report with position:

  1. Some other application periodically creates a file, called wxnow.txt, in the standard format. (See http://wiki.sandaysoft.com/a/Wxnow.txt ) This is the same format used in the APRS weather report packet.
  2. Configure a position beacon which inserts the last line, from the file, into the comment field. In this particular case, it is very important that you don’t use COMMENT, POWER, HEIGHT, GAIN, FREQ, OFFSET, or any other options that would put anything else in the comment part. The weather report needs to be in a very specific format.

PBEACON LAT=42^37.14N LONG=71^20.83W SYMBOL=”weather station” COMMENTCMD=”tail -1 wxnow.txt”

The result would be:

WB2OSZ-15>APDW15:!4237.14N/07120.83W_272/010g006t069r010p030P020h61b10150

As a sanity check, we run it through the decode_aprs utility.

$ echo 'WB2OSZ-15>APDW15:!4237.14N/07120.83W_272/010g006t069r010p030P020h61b10150' | decode_aprs

WB2OSZ-15>APDW15:!4237.14N/07120.83W_272/010g006t069r010p030P020h61b10150
Weather Report, WEATHER Station (blue), DireWolf, WB2OSZ
N 42 37.1400, W 071 20.8300
wind 11.5 mph, direction 272, gust 6, temperature 69, rain 0.10 in last hour, rain 0.30 in last 24 hours, rain 0.20 since midnight, humidity 61, barometer 29.98, ""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants