All Projects → mlbright → darksky

mlbright / darksky

Licence: MIT license
Forecast.io API wrapper in Go (Golang)

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to darksky

MMM-forecast-io
Forecast.io Module for MagicMirror
Stars: ✭ 58 (-21.62%)
Mutual labels:  weather, forecast, darksky
Jupiter
🌞 The Swift Weather Framework
Stars: ✭ 14 (-81.08%)
Mutual labels:  weather, forecast, darksky
Weacast
Weacast demo application
Stars: ✭ 55 (-25.68%)
Mutual labels:  weather, forecast
Dark Sky Api
PHP Library for the Dark Sky API.
Stars: ✭ 70 (-5.41%)
Mutual labels:  weather, forecast
Getme
CLI utility for everyday tasks. With getme you get weather, forecast, currency rate, upload files, IP address, word definitions, text translations, internet speed, do google searches, get inspirational quotes and get Chuck Norris jokes
Stars: ✭ 118 (+59.46%)
Mutual labels:  weather, forecast
Wego
weather app for the terminal
Stars: ✭ 6,918 (+9248.65%)
Mutual labels:  weather, forecast
Node Forecastio
A node.js client for Forecast.io API
Stars: ✭ 32 (-56.76%)
Mutual labels:  weather, forecast
Darkskylib
Python wrapper for the Dark Sky API
Stars: ✭ 112 (+51.35%)
Mutual labels:  weather, forecast
darksky-influxdb
Logs weather information from darksky.io to InfluxDB
Stars: ✭ 22 (-70.27%)
Mutual labels:  weather, darksky
Good Weather
Open source weather app for Andorid
Stars: ✭ 198 (+167.57%)
Mutual labels:  weather, forecast
mpxday
mpxday是基于mpx开发的天气预报微信小程序
Stars: ✭ 3 (-95.95%)
Mutual labels:  weather, forecast
Temps
Simple menubar application based on Electron with actual weather information and forecast.
Stars: ✭ 553 (+647.3%)
Mutual labels:  weather, forecast
weatherBot
⛈ A Twitter bot for weather
Stars: ✭ 20 (-72.97%)
Mutual labels:  weather, darksky
Weather
A module for obtaining weather information
Stars: ✭ 54 (-27.03%)
Mutual labels:  weather, forecast
darksky2influxdb
Stores wheather forcecast data from darkskyapi into a influxdb database
Stars: ✭ 21 (-71.62%)
Mutual labels:  weather, forecast
Darksky
Python API wrapper for the DarkSky (async&sync)
Stars: ✭ 81 (+9.46%)
Mutual labels:  weather, forecast
solar-weather
React Native Weather App w. Realm, Redux, ReasonReact & Forecast.io
Stars: ✭ 13 (-82.43%)
Mutual labels:  weather, forecast
weather-milliseconds
Experiment to render a forecast as fast as possible
Stars: ✭ 24 (-67.57%)
Mutual labels:  weather, forecast
Forecastr
A simple, asynchronous Objective-C wrapper for the Forecast.io API
Stars: ✭ 143 (+93.24%)
Mutual labels:  weather, forecast
Weather
Weather Android App using apixu API https://www.apixu.com
Stars: ✭ 48 (-35.14%)
Mutual labels:  weather, forecast

forecast

Dark Sky API wrapper in Go (Golang)

Documentation: https://darksky.net/dev/docs

Example usage:

package main

import (
    "fmt"
    forecast "github.com/mlbright/darksky/v2"
    "io/ioutil"
    "log"
    "strings"
)

func main() {

    keybytes, err := ioutil.ReadFile("api_key.txt")
    if err != nil {
        log.Fatal(err)
    }
    key := string(keybytes)
    key = strings.TrimSpace(key)

    lat := "43.6595"
    long := "-79.3433"

    f, err := forecast.Get(key, lat, long, "now", forecast.CA, forecast.English)
    if err != nil {
        log.Fatal(err)
    }
    fmt.Printf("%s: %s\n", f.Timezone, f.Currently.Summary)
    fmt.Printf("humidity: %.2f\n", f.Currently.Humidity)
    fmt.Printf("temperature: %.2f Celsius\n", f.Currently.Temperature)
    fmt.Printf("wind speed: %.2f\n", f.Currently.WindSpeed)

}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].