A very specific Golang interface to the Dark Sky API for my Chrome Extension
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Levi Olson 6679bf8ab4 Log darksky url 5 years ago
.gitignore Initial working API 5 years ago
LICENSE Initial commit 5 years ago
README.md Debugging 5 years ago
darksky.go Log darksky url 5 years ago
main.go Production endpoints 5 years ago
rest.go Initial working API 5 years ago
structs.go Initial working API 5 years ago
weather-api.service Debugging 5 years ago

README.md

Dark Sky API Interface

A Golang Server that interfaces with the Dark Sky API so my Chrome Extension can get the weather.

Systemd

sudo useradd weatherapi -s /sbin/nologin -M
sudo cp weather-api.service /lib/systemd/system/.
ls -al /lib/systemd/system
sudo chmod 755 /lib/systemd/system/weather-api.service
# add the DARK_SKY_API_KEY to the weather-api.service file
sudo systemctl enable weather-api.service
sudo systemctl start weather-api.service
sudo journalctl -f -u weather-api
# or 
sudo systemctl status weather-api.service

Thanks

Much of the source I obtained from github.com/shawntoffel/darksky. So thank you shawntoffel and contributors for that amazing codebase!