Skip to content

🌤 Weather Widget for GitHub user profile status

License

Notifications You must be signed in to change notification settings

narqo/github-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

â›… Weather Status Widget for GitHub

github-weather1

Docker Pulls MIT licensed

A silly program to update your GitHub user's profile status with the current weather:

github-weather2

The program retrieves data from OpenWeather API. It requires API key, that can be obtained for free, following OpenWeather API documentation.

To update user's status on GitHub, the program uses GitHub's GraphQL API and requires API token with user scope.

Usage

  • Add your desired values for following parameters:
    • Expiration Time of the new status in minutes (default 30 min, maximum 255 min)
    • GitHub Token
    • OpenWeather API Key
    • Query location (default Berlin,De)
  • Compile and run the application with following commands:
$ go build -o github-weather .
$ ./github-weather

github-weather -help will print the list of all available options.

Run the program as cronjob

*/10 * * * * github-weather [params] 2>> github-weather.log

See example of a crontab file in the project's misc directory.

Run the program on Kubernetes

Refer to deployments/README.md.

License

MIT

About

🌤 Weather Widget for GitHub user profile status

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •