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.

17 lines
861 B

5 years ago
5 years ago
5 years ago
  1. # Dark Sky API Interface
  2. A Golang Server that interfaces with the Dark Sky API so my Chrome Extension can get the weather.
  3. ## Systemd
  4. sudo useradd weatherapi -s /sbin/nologin -M
  5. sudo cp weather-api.service /lib/systemd/system/.
  6. ls -al /lib/systemd/system
  7. sudo chmod 755 /lib/systemd/system/weather-api.service
  8. # add the DARK_SKY_API_KEY to the weather-api.service file
  9. sudo systemctl enable weather-api.service
  10. sudo systemctl start weather-api.service
  11. sudo journalctl -f -u weather-api
  12. # or
  13. sudo systemctl status weather-api.service
  14. ## Thanks
  15. Much of the source I obtained from [github.com/shawntoffel/darksky](https://github.com/shawntoffel/darksky). So thank you [shawntoffel](https://github.com/shawntoffel) and [contributors](https://github.com/shawntoffel/darksky/graphs/contributors) for that amazing codebase!