Giter Site home page Giter Site logo

weather-bar's People

Contributors

chrissnell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

weather-bar's Issues

Cannot Install via AUR

Looks like Go dependencies are not built/installed? I don't know much about Go, but I'm guessing the package script needs to go get these deps.

AUR Packages  (1) weather-bar-1.0-1  

:: Proceed with installation? [Y/n] y
:: Retrieving package(s)...
:: weather-bar build files are up-to-date -- skipping
:: Checking weather-bar integrity...
==> Making package: weather-bar 1.0-1 (Sat Apr 28 19:04:11 EDT 2018)
==> Retrieving sources...
  -> Found weather-bar-1.0.tar.gz
==> Validating source files with sha256sums...
    weather-bar-1.0.tar.gz ... Passed
:: Building weather-bar package(s)...
==> Making package: weather-bar 1.0-1 (Sat Apr 28 19:04:11 EDT 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
config.go:6:2: cannot find package "github.com/go-ini/ini" in any of:
	/usr/lib/go/src/github.com/go-ini/ini (from $GOROOT)
	/home/ryguy/go/src/github.com/go-ini/ini (from $GOPATH)
weather-bar.go:15:2: cannot find package "github.com/jasonwinn/noaa" in any of:
	/usr/lib/go/src/github.com/jasonwinn/noaa (from $GOROOT)
	/home/ryguy/go/src/github.com/jasonwinn/noaa (from $GOPATH)
==> ERROR: A failure occurred in build().
    Aborting...
:: failed to build weather-bar package(s)

Small update: I added the following before go build . in the PKGBUILD and it builds and installs just fine:

  go get github.com/go-ini/ini
  go get github.com/jasonwinn/noaa

json wind gust error

I would like to implement your weather-bar but it gives me a json error in connection with 'wind gust mph'
I have a valid WU API key.
"2018/07/29 13:19:03 json: cannot unmarshal number into Go struct field CurrentObservation.wind_gust_mph of type string"
Any tips welcome.
weather-bar 1.1-2 installed from AUR

EDIT: If I uncomment my local WU PWS weather station I get weather information. One issue is that the temperature will only display in Fahrenheit.

Can't get it to work

Tried putting latitude and longitude, but the bar shows "-0.0 C". I live in Notway, but it should work anyway, right? Some help would be apreciated.

could not get location: invalid character '<' looking for beginning of value

Just trying this out and I get this error:

2021/01/10 13:57:53 could not get location: invalid character '<' looking for beginning of value

I copied the config and didn't add an API key since I just want to use NOAA:

[weather]

[format]

weather-format = " %station-id%  %temperature-fahrenheit%°F  %barometer% mbar  %wind-cardinal% @ %wind-speed-mph% MPH"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.