Go program to fetch a random quote from your hardcover.app reading journals and output it to your terminal (think message of the day or on initial shell invocation).
ps. add me on hardcover 🤓 https://hardcover.app/@countmancy
- hardcover.app api key stored in the env var
HARDCOVER_API_TOKEN- Token with necessary read-only permissions can be generated directly from this link:
Grab the latest binary release or install via go:
go install github.com/GianniBYoung/hardcover-quotes/cmd/hcq@latest
hcqwill output a formatted string tostdout- A webhook will be sent if the env var
HCQ_WEBHOOK_URLis set - Pipe it to
lolcatorcowsayfor more fun! - Set the MOTD(message of the day)
- Print a quote upon shell invocation!
- Send a webhook to a service such as trml for displaying the quote on an e-ink display!
[[ $SHLVL -le 1 ]] && hcqHARDCOVER_API_TOKEN-> required to set be able to access your profile and retrieve quotesHCQ_WEBHOOK_URL-> If set, will send a POST request to the specified URL with the quoteHCQ_INFO_LEVEL-> increase the verbosity for debuggingdebuginfowarning
Links to some projects that inspired me to start this project, check them out!
-
koblime - exporting highlights from kobo devices
- This program is pretty cool and helps keep track of highlights but offers little in the way of syncing to other platforms at the moment
-
Spotify Recently Played README
- Eventually I want to hook something up to my GitHub profile to dynamically update it with a quote generated from HCQ
Contributions appreciated!
Take a look at the issues, submit feature requests, submit Pull requests etc