|License||See associated license file|
|Author||Andrew Keyser firstname.lastname@example.org|
|All Versions||0.0.10, 0.0.9, 0.0.8|
CWOP weather data reporting library for Particle Core, Photon, Electron and P1.
Device OS Version:
This table is generated from an automated build. Success only indicates that the code compiled successfully.
This content is provided by the library maintainer and has not been validated or approved.
This library was created to facilitate sending weather data in the correct APRS packet format to CWOP.
This is meant to be a supplement to your own weather-gathering firmware, and makes no attempt to actually gather any data - you must provide it!
Please note that in order to send data and have it be used by CWOP, you must register for an ID here: CWOP Sign-Up
See the basic-cwop example for a sample of how to use this library, and have fun!
CWOP_Particle cwop = CWOP_Particle();
Creates an object to use in sending CWOP data.
Prepares the object for communication with CWOP by providing a TCPClient.
Prepares the object for communication with CWOP by providing a TCPClient and a CWOP ID.
cwop.setLatitude(degrees, minutes, hemisphere);
cwop.setLongitude(degrees, minutes, hemisphere);
Set the latitude/longitude respectively, by specifying the degrees, minutes, and hemisphere (a single char; ex: 'N', 'S', 'E', 'W')
Set the "wind degrees" field of the CWOP packet, in degrees.
Set the "wind speed" field of the CWOP packet, in MPH.
Set the "wind gust speed" field of the CWOP packet, in MPH.
Set the "Temperature" field of the CWOP packet, in degrees Fahrenheit.
Set the "one-hour rainfall" field of the CWOP packet, in inches.
Set the "24-hour rainfall" field of the CWOP packet, in inches.
Set the "rainfall since midnight" field of the CWOP packet, in inches.
Set the "humidity" field of the CWOP packet, in percent.
Set the "relative pressure" field of the CWOP packet, in millibars.
Set the "luminosity" field of the CWOP packet, in WM².
Set the "24-hour snowfall" field of the CWOP packet, in inches.
Set the Registration Number to use for the CWOP packet.
Stages an APRS packet internally; returns the resulting string. Useful for doing a "dry run" to see the APRS packet without sending it.
Prepares an APRS packet, connects to the CWOP server and sends the entire packet.
CC0 (Public Domain) - see license.md