diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..01e1111 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.o +wstationd diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c94c37a --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +Copyright (c) 2012, Christopher Ramey, unless otherwise noted. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..1cceb11 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +wstationd +========= +`wstationd` is a simple daemon (written in C) for accepting Iridium Short Data +Bursts via Direct IP. While it's intended to be used for collecting data from +remote weather stations (thus the name), it can be used to collect information +from any source operating over the Iridium SDB Service. `wstationd` has been +tested on OSX, FreeBSD and Linux. + + +Building +-------- +Running `make` should be sufficient in most cases to compile `wstationd`. + + +Running +------- +`wstationd` requires a single argument to specify the directory SDB will be +collected into. Files will be created using a simple naming convention +indicating the time it was collected and the IP it was collected from. Parsing +these files is an exercise left up to the reader - the format will differ +greatly based on your hardware. `wstationd` leaves all of the SDB headers +intact, so you'll need to account for that when parsing. Good luck! diff --git a/src/wstationd.c b/src/wstationd.c index d9c16ca..3ea5f0b 100644 --- a/src/wstationd.c +++ b/src/wstationd.c @@ -1,3 +1,5 @@ +#define _POSIX_C_SOURCE 1 + #include #include #include