<commit_before># Weatherlink

[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://choosealicense.com/licenses/mit/)
[![Build Status](https://travis-ci.org/ebarkie/weatherlink.svg?branch=master)](https://travis-ci.org/ebarkie/weatherlink)

Go package for working with Davis Instruments Weatherlink protocol over a
Weatherlink IP, serial, or USB interface.

Current features include:
* Should work with any Davis station made after 2002.  Developed for a Vantage Pro
  2 Plus with all sensor types.
* Supports Weatherlink IP, serial, or USB (genuine or clone).
* Decodes DMP (archive), HILOWS, LOOP1, and LOOP2 events and sends them over a
  channel.
* Syncs console time.
* Includes a command broker that attempts to intelligently select what
  commands should be run but also accepts explicit commands.

Future features:
* Encode Weatherlink packets.  Useful for creating a virtual Weatherlink IP,
  even a multiplexed one.
* Support additional packet types like EERD (useful for getting lat/lon).

## Installation

```
$ go get github.com/ebarkie/weatherlink
```

## Usage

See [USAGE](USAGE.md).

## Example

```go
package main

import (
	"log"<commit_msg>More correct description of loops<commit_after># Weatherlink

[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://choosealicense.com/licenses/mit/)
[![Build Status](https://travis-ci.org/ebarkie/weatherlink.svg?branch=master)](https://travis-ci.org/ebarkie/weatherlink)

Go package for working with Davis Instruments Weatherlink protocol over a
Weatherlink IP, serial, or USB interface.

Current features include:
* Should work with any Davis station made after 2002.  Developed for a Vantage Pro
  2 Plus with all sensor types.
* Supports Weatherlink IP, serial, or USB (genuine or clone).
* Decodes DMP (archive), HILOWS, LPS 1 (loop 1), and LPS 2 (loop 2) events and sends
  them over a channel.
* Syncs console time.
* Includes a command broker that attempts to intelligently select what
  commands should be run but also accepts explicit commands.

Future features:
* Encode Weatherlink packets.  Useful for creating a virtual Weatherlink IP,
  even a multiplexed one.
* Support additional packet types like EERD (useful for getting lat/lon).

## Installation

```
$ go get github.com/ebarkie/weatherlink
```

## Usage

See [USAGE](USAGE.md).

## Example

```go
package main

import (
	"log"
{'fraction_non_alphanumeric': 0.10074318744838975, 'fraction_numerical': 0.006606110652353427, 'mean_word_length': 4.648018648018648, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5572843', 'n_tokens_mistral': 774, 'n_tokens_neox': 719, 'n_words': 269}