Tools

Small, fast command-line tools, written in Go, each doing one thing from the terminal. Every one of them outputs JSON or Markdown as well, so scripts and agents can use them too.

Command-line tools

sky

Go

Weather in the terminal, from MET Norway.

Current conditions, hourly and 10-day forecasts, with a real feels-like temperature. Saved locations, a file cache, and JSON or Markdown output for scripts and agents.

brew install kristofferrisa/sky/sky
  • # right now, on one linesky current --format summary
  • # the next day, hour by hoursky forecast --hours 24
  • # a report you can paste anywheresky daily --days 10 --format markdown

powerctl

Go

Your Tibber power, live, in the terminal.

Today's and tomorrow's electricity prices, your home, and a live stream of consumption from a Tibber Pulse that reconnects on its own. JSON output pipes straight into jq.

brew install kristofferrisa/powerctl/powerctl

Needs: A Tibber account and API token

  • # now, today and tomorrowpowerctl prices
  • # watts from the Pulse, as they happenpowerctl live
  • # just the number, for a scriptpowerctl prices --format json | jq '.current.total'

cfluence

Go

Confluence pages as markdown files.

Pull a page down as markdown, edit it in your editor, push it back. Pages, spaces, labels and attachments, CQL search, and docs-as-code from a repository or a CI job.

git clone https://github.com/KristofferRisa/cfluence-cli && make -C cfluence-cli install

Needs: A Confluence Cloud site and API token

  • # site, email and token, oncecfluence config init
  • # a page becomes a filecfluence page pull 123456 -o page.md
  • # and goes back upcfluence page push page.md

Setup