Skip to content

Commit

Permalink
Initial commit with Joe's code
Browse files Browse the repository at this point in the history
  • Loading branch information
bytesnz committed Aug 25, 2017
0 parents commit 777970c
Show file tree
Hide file tree
Showing 7 changed files with 2,659 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CC = gcc
CFLAGS = -O2 -Wall -fpack-struct -I/usr/include

TARGET = vproweather
all: $(TARGET)

$(TARGET): main.o dhandler.o
$(CC) main.o dhandler.o -o $(TARGET)

main.o: main.c main.h dhandler.h
$(CC) $(CFLAGS) -c main.c

dhandler.o: dhandler.c dhandler.h names.h
$(CC) $(CFLAGS) -c dhandler.c

clean:
rm -f $(TARGET) *.o

28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
vproweather
================
Initial version written by Joe Jaworski (http://www.joejaworski.com/weather/)

Additions made by Jack Farley (https://github.com/bytesnz/wproweather)

```
Usage: vproweather [Options] Device
Options:
-x, --get-realtime Get real time weather data.
-l, --get-highlow Get Highs/Lows data.
-g, --get-graph Get graph data.
-t, --get-time Get weather station time.
-s, --set-time Set weather station time to system time.
-o, --bklite-on Turn backlite on.
-f, --bklite-off Turn backlite off.
-r, --version Query for Davis firmware version string.
-m, --model Query for weather station model name.
-d, --delay=num Cmd Delay in 1/10ths seconds. Default is 10 (1 sec).
-v, --verbose Verbose mode.
Device Serial Device. Required parameter.
Examples:
vproweather --get-realtime /dev/ttyp0 > rtwdata.txt
Gets real time data set to file rtwdata.txt from serial device ttyp0
vproweather --verbose --bklite-on /dev/ttyp0
Turns the LCD backlite On, illuminating the display.
```
1,324 changes: 1,324 additions & 0 deletions dhandler.c

Large diffs are not rendered by default.

404 changes: 404 additions & 0 deletions dhandler.h

Large diffs are not rendered by default.

Loading

0 comments on commit 777970c

Please sign in to comment.