chrissnell / weather-bar Goto Github PK
View Code? Open in Web Editor NEWPull weather reports from NOAA and Weather Underground and display them in a desktop bar like polybar or lemonbar
License: BSD 2-Clause "Simplified" License
Pull weather reports from NOAA and Weather Underground and display them in a desktop bar like polybar or lemonbar
License: BSD 2-Clause "Simplified" License
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
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.
I think the config file has some font errors. I retyped the lines near the bottom and it fixed it. Very cool program!
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.
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"
I am now getting the error "json: cannot unmarshal string into Go struct field CurrentObservation.wind_gust_mph of type float64"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.