lake-info

command module
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 12 Imported by: 0

README

lake-info

CLI to fetch data from the US Army Corps of Engineers on Lake Levels. Currently only supports Table Rock Lake.

Installation

go install github.com/patrickjmcd/lake-info@latest

Configuration

The following environment variables are used to configure the application:

  • ATLAS_CONNECTION_URI - mongodb URI

Usage

Setup

The setup command will create the appropriate mongo collections for the data.

lake-info setup
Scrape

The scrape command will gather the data from the US Army Corps of Engineers website and store it in the database. An optional -A or --all flag will force the storage of all available data on the specified lake.

lake-info scrape <lake name>

Example:

lake-info scrape tablerock -A
Serve

The serve command will run the Connect API server to provide the data to a frontend application. An optional -P or --port flag allows changing the port from the default of 8080.

lake-info serve

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL