Browse Source

added readme and license, fixed posix compiler warning

master
Christopher Ramey 3 years ago
parent
commit
5d0373573a
  1. 2
      .gitignore
  2. 24
      LICENSE
  3. 22
      README.md
  4. 2
      src/wstationd.c

2
.gitignore

@ -0,0 +1,2 @@
*.o
wstationd

24
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.

22
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!

2
src/wstationd.c

@ -1,3 +1,5 @@
#define _POSIX_C_SOURCE 1
#include <stdio.h>
#include <unistd.h>
#include <time.h>

Loading…
Cancel
Save