Skip to content

Commit 777970c

Browse files
committed
Initial commit with Joe's code
0 parents  commit 777970c

File tree

7 files changed

+2659
-0
lines changed

7 files changed

+2659
-0
lines changed

Makefile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
CC = gcc
2+
CFLAGS = -O2 -Wall -fpack-struct -I/usr/include
3+
4+
TARGET = vproweather
5+
all: $(TARGET)
6+
7+
$(TARGET): main.o dhandler.o
8+
$(CC) main.o dhandler.o -o $(TARGET)
9+
10+
main.o: main.c main.h dhandler.h
11+
$(CC) $(CFLAGS) -c main.c
12+
13+
dhandler.o: dhandler.c dhandler.h names.h
14+
$(CC) $(CFLAGS) -c dhandler.c
15+
16+
clean:
17+
rm -f $(TARGET) *.o
18+

README.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
vproweather
2+
================
3+
Initial version written by Joe Jaworski (http://www.joejaworski.com/weather/)
4+
5+
Additions made by Jack Farley (https://github.com/bytesnz/wproweather)
6+
7+
```
8+
Usage: vproweather [Options] Device
9+
Options:
10+
-x, --get-realtime Get real time weather data.
11+
-l, --get-highlow Get Highs/Lows data.
12+
-g, --get-graph Get graph data.
13+
-t, --get-time Get weather station time.
14+
-s, --set-time Set weather station time to system time.
15+
-o, --bklite-on Turn backlite on.
16+
-f, --bklite-off Turn backlite off.
17+
-r, --version Query for Davis firmware version string.
18+
-m, --model Query for weather station model name.
19+
-d, --delay=num Cmd Delay in 1/10ths seconds. Default is 10 (1 sec).
20+
-v, --verbose Verbose mode.
21+
Device Serial Device. Required parameter.
22+
23+
Examples:
24+
vproweather --get-realtime /dev/ttyp0 > rtwdata.txt
25+
Gets real time data set to file rtwdata.txt from serial device ttyp0
26+
vproweather --verbose --bklite-on /dev/ttyp0
27+
Turns the LCD backlite On, illuminating the display.
28+
```

dhandler.c

+1,324
Large diffs are not rendered by default.

dhandler.h

+404
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)