Reporting observations to CWOP

139 views
Skip to first unread message

Alf Høgemark

unread,
Apr 11, 2010, 4:54:08 AM4/11/10
to Weewx Weather Station Discussion
Hi

One of the few things I miss in weewx, is being able to send my
observations to CWOP.

Looking at the data format at :
http://home.comcast.net/~dshelms/aprs_davis_data_field_format.htm
and
http://www.wxqa.com/callsminmax/C20100410.txt
the format does not look very complex.

So it's just a matter of constructing the correct string, and send it
using HTTP.
With the "datavalue.raw" functionality and related unit enhancements
that has been added to weewe recently, it should also be easier to
construct the proper string.

I've looked at the Weather Underground support in weewx. It uses a
queue and a separate thread for handling the reporting, and it also
has references in the weewx wxengine.py file.
I do not fully appreciate why a separate thread and queue is used, can
you give some details about this ?
Do you think this queue/thread approach should be used for CWOP as
well ?

Also, I'm wondering if "reporting to CWOP" should be a custom process,
or just a custom skin. I think it should be a custom process. Since it
shouldn't produce any files locally, making it as a skin seems
incorrect.
My initial thought was to just make a custom process, and handle the
arrival of the ARCHIVE packages. But since CWOP does not want one to
send data every minute, one would have to have some logic which sends
data to CWOP at regular intervals, and then sends all the observations
since last "post".

I see that Joe Torsitano posted about "psweather.com" a couple of
weeks ago. My priority would be to get CWOP in place, but once that is
done, it should be fairly simple to get the psweather.com reporting in
place as well, assuming the data format is quite simple.

Regards
Alf

Tom Keffer

unread,
Apr 11, 2010, 11:43:47 AM4/11/10
to weewx...@googlegroups.com
I, too, would like to add CWOP support. Unfortunately, their protocol is
much more complicated than the one used by WeatherUnderground. It's full of
statements like:

"To establish a connection to APRS-IS, establish a TCP connection to a
port on
an APRS-IS server that provides the type of feed you desire. Turn off the
Nagel
algorithm when connecting to APRS-IS as it can introduce significant
delays (TCP_NODELAY)."

Huh?

Eventually I'll sort it all out, but it's going to take some time.

The reason the WU is in a separate thread is that it can take a long time
for the WU to respond. You don't want to hang the main data collection
thread while you're waiting for their server. I could have put the post in
the report thread, but I wanted to support a 'catch up' ability if your
console has been offline for a while. This seemed like the simplest way to
do it.

Incidentally, I've added PWS support already --- I'm testing it on my
server. http://www.pwsweather.com/obs/HOODRIVER.html

-tk

Hi

Regards
Alf

--
You received this message because you are subscribed to the Google Groups
"Weewx Weather Station Discussion" group.
To post to this group, send email to weewx...@googlegroups.com.
To unsubscribe from this group, send email to
weewx-user+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/weewx-user?hl=en.


Alf Høgemark

unread,
Apr 11, 2010, 12:39:32 PM4/11/10
to Weewx Weather Station Discussion
Hi

Do you have the URL to where the protocol is described ?

PWS support is a nice surprise.

Regards
Alf

On Apr 11, 5:43 pm, "Tom Keffer" <tkef...@gmail.com> wrote:
> I, too, would like to add CWOP support. Unfortunately, their protocol is
> much more complicated than the one used by WeatherUnderground. It's full of
> statements like:
>
>   "To establish a connection to APRS-IS, establish a TCP connection to a
> port on
>   an APRS-IS server that provides the type of feed you desire. Turn off the
> Nagel
>   algorithm when connecting to APRS-IS as it can introduce significant
>   delays (TCP_NODELAY)."
>
> Huh?
>
> Eventually I'll sort it all out, but it's going to take some time.
>
> The reason the WU is in a separate thread is that it can take a long time
> for the WU to respond. You don't want to hang the main data collection
> thread while you're waiting for their server. I could have put the post in
> the report thread, but I wanted to support a 'catch up' ability if your
> console has been offline for a while. This seemed like the simplest way to
> do it.
>
> Incidentally, I've added PWS support already --- I'm testing it on my

> server.http://www.pwsweather.com/obs/HOODRIVER.html


>
> -tk
>
>
>
> -----Original Message-----
> From: weewx...@googlegroups.com [mailto:weewx...@googlegroups.com] On
>
> Behalf Of Alf Høgemark
> Sent: Sunday, April 11, 2010 1:54 AM
> To: Weewx Weather Station Discussion
> Subject: Reporting observations to CWOP
>
> Hi
>
> One of the few things I miss in weewx, is being able to send my
> observations to CWOP.
>
> Looking at the data format at :http://home.comcast.net/~dshelms/aprs_davis_data_field_format.htm

> andhttp://www.wxqa.com/callsminmax/C20100410.txt

Tom Keffer

unread,
Apr 11, 2010, 12:49:07 PM4/11/10
to weewx...@googlegroups.com
Here's two:

HTTP or UDP POST: http://www.aprs-is.net/SendOnlyPorts.aspx

Connecting to APRS-IS: http://www.aprs-is.net/Connecting.aspx

Reply all
Reply to author
Forward
0 new messages