-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 777970c
Showing
7 changed files
with
2,659 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
``` |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.