Skip to content

Instantly share code, notes, and snippets.

@davosian
Forked from ahue/groceries_bring
Created July 19, 2021 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davosian/b790a05acfc40d1b4e3cddc4cce4b94a to your computer and use it in GitHub Desktop.
Save davosian/b790a05acfc40d1b4e3cddc4cce4b94a to your computer and use it in GitHub Desktop.
A slot-program for retrieve German grocery terms for Rhasspy
#!/usr/bin/env bash
set -e
url="https://web.getbring.com/locale/articles.de-DE.json"
echo "GET ${url}" >&2
curl -X GET \
-H 'Content-Type: application/json' \
"${url}" | \
jq --raw-output 'to_entries[] as $e | "\($e.value)"' | \
grep "^[[:alpha:] ]*$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment