Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Re: kinda OT -- aprs wx station feed to internet
Yeah, I looked at some.? One module, simply called aprs, had oodles of errors trying to add it with pip.? Another called aprslib seemed decent, though I didn't need all the parsing and other stuff.? I also got an occassional crash (unacceptable for an automated 24/7 program).? I thought about forking the git repo and tweaking it, but I am not a fan of gnu-licensed code.? I decided that I needed to do all the exception handling myself and just went straight to the socket lib, which turned out to be easy enough.? Getting data to weatherunderground and pwsweather is easier, as they just use an http get, which can be tested with a browser, and automated with the python http module.? But apri-is uses a post mechanism, and two lines to boot, so a bit more hassle to test. gil ----- Original message ----- From: "Rob Giuliano via groups.io" <kb8rco=[email protected]> Subject: Re: [TinyTrak] kinda OT -- aprs wx station feed to internet Date: Sunday, February 07, 2021 2:17 PM FYI, there are a few APRS python library that can help with the interface. Robert Giuliano KB8RCO On Sunday, February 7, 2021, 3:55:13 PM EST, Gil Smith <tinytrak@...> wrote: Well, I peeked at direwolf, but it is a giant program, and I really just wanted a few python lines to do the posts.? After a bit of poking around and figuring it out, I was able to get it posting with just the python socket module.? In case anyone might have an interest, a simplified post (without try/except and all the nice stuff): import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server = ("rotate.aprs.net", 10152) s.connect(server) login = "user AF7EZ-13 pass (pass)\r\n".encode('utf-8') wxdat = "AF7EZ-13>APRS,TCPIP*:@072033z...(blahblah)...\r\n".encode('utf-8') s.sendall(login) s.sendall(wxdat) s.close() Need some work to build the data line from gps and sensor feeds and automate posting every ten minutes or so, but that's the easy part.? I am happy I was finally able to manually inject some packets into aprs-is. gil ----- Original message ----- From: "Rob Giuliano via groups.io" <kb8rco=[email protected]> Subject: Re: [TinyTrak] kinda OT -- aprs wx station feed to internet Date: Wednesday, February 03, 2021 1:06 PM Then dig deeper into Direwolf with no "radio" attached. There are hooks to Python, Perl, and CLI (Pi command line interface) for getting the data in, and the Direwolf side will handle the formatting and links to the 'internet' side.? With defined interfaces, you can be VERY specific on what data is sent where. The Direwolf groups.io has several discussion on creating telemetry packets in different formats (for instance: with and without position data). Robert Giuliano KB8RCO On Wednesday, February 3, 2021, 2:48:27 PM EST, Gil Smith <tinytrak@...> wrote: Thanks Robert, but not going to use a radio (or tnc, or pc) for this.? Just want to poke wx data into aprs internet via simple ethernet or wifi tcp connection from the pi.? Most aprs/cwop weather stations do this unless they are on a mountain or such. I think I have a handle on the packet formatting, and the wx data formatting as shown in that cumulus link you sent.? That part seems easy enough.? It is the connection part that I thought someone here might have experience with.? Non-ham folks can get a cwop account or a ham can use their callsign: I am unsure whether aprs-is websocket stuff described here applies to wx posts or just igates: Pehaps the wrong place to ask. thx, gil ----- Original message ----- From: "Rob Giuliano via groups.io" <kb8rco=[email protected]> Subject: Re: [TinyTrak] kinda OT -- aprs wx station feed to internet Date: Wednesday, February 03, 2021 11:49 AM This doesn't fit with the TinyTrak group, but ... I know that Direwolf has some features for telemetry and scripting in Python or Perl that could be manipulated to do what you are asking.? It runs well on teh Pi.? The interface is a sound card as the TNC, so you could free up your TT4 for mobile/portable work. Another option would be to use a standard output file that is read by APRS clients.? I know one standard is the WXnow.txt file ().? Several (APRSIS32 for one) will read that file and send an object accordingy.? If that accounts for the data you want to send, that is an option.? I just don't kow what options that will run on the Pi. Robert Giuliano KB8RCO On Tuesday, February 2, 2021, 11:19:31 PM EST, Gil Smith <tinytrak@...> wrote: Hi folks: So this question involves aprs, though not over the radio this time. A bit of background:? I have been putting together a weather station to play with.? I started with the sparkfun wx kit with wind/rain sensors on a little pole, which came with an interface board that also included a bme280 PHT sensor and a goofy microbit javascript-browser-programmed controller.? It was clunky to program but it worked, and I formatted some serial data packets in the microbit, fed it down a cable (I have a conduit to the roof) to a laptop, parsed it with a little python program, and sent updates to graphs at adafruit.io.? That was kinda fun but the microbit was limiting.??Then I made an interface board to replace the sparkfun/microbit thingy, conditioning the wind/rain sensors, and also using a bme280 (which I had used before), micro, and a gps for a time-stamp (could just use an internet time server in python but that is less fun;? plus I wrote that gps code for balloons years ago and I have a bunch of neo6 modules lying aroung).? Anyway, I now have a nicer acquisition unit on the roof, feeding a laptop python program (that I want to move to a rasp-pi for final version). The sensing side of things is under control, and I plan to try feeding to pwsweather and/or wunderground, as it was easy to set up a free account on each and they publish APIs for posting updates (neither is live yet). BUT, it would also be interesting to feed to aprs/cwop.? I am somewhat familiar with aprs field formatting for radio packets, but have not done anything with internet feeds.? Initial searches are a bit overwhelming and I was hoping that someone could point me to a few pertinent links. I do not want to run a program on a pc.? I want a nice low-power deployment to an rpi, coding preferably in python (or c).? I am looking for simple http posts or similar to get data into the aprs system. Any pointers? thx, gil |
to navigate to use esc to dismiss