veterejo

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.swab.dev/veterejo.git
Log | Files | Refs | README | LICENSE

commit b462330fce66833ac6466af7cb20ab904a4889f1
parent 4d7c25fadcde65e600b840a8a7fdbe0765a9c88b
Author: Jaron Swab <jrswab@gmail.com>
Date:   Sun,  8 Mar 2020 11:54:03 -0400

Merge branch 'master' of github.com:jrswab/veterejo

Diffstat:
ALICENSE | 29+++++++++++++++++++++++++++++
AREADME.md | 14++++++++++++++
2 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2020, Jaron Swab +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md @@ -0,0 +1,14 @@ +# veterejo +Veterejo is a Go package for querying weathe data from Open Weather Maps. + +Vetero is "weather" in Esperanto and "ejo" is place. +By replacing the **O** of a noun with **ejo** the word discribes a place of that thing. +(eg: Computilejo = computer-place or in English a computer lab) + +## Using This Package: +1. Import +2. Create a new `WeatherData` struct: `w := new(veterejo.WeatherData)` +3. Call the data: `w.getData(yourCityID, unitsOfMeasure, yourApiId)` +4. Use the method for temperature to get the most recent temperature data on OpenWeatherMap + +*veterejo is licensed under the BSD 3-Clause "New" or "Revised" License*