2024-02-28 11:15:04 +00:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
miniflux_api_token=$(cat $BAUKE_DIR/data/miniflux-api-tokens.json | jq -r '."unread-entries"')
|
|
|
|
|
|
|
|
json=$(curl -sSL --insecure -H "X-Auth-Token: $miniflux_api_token" "https://rss.azedia.lan/v1/feeds/counters")
|
|
|
|
|
|
|
|
count=$(echo $json | jq -j '.unreads | length')
|
|
|
|
|
|
|
|
if [[ ! $count -eq "0" ]]; then
|
|
|
|
echo $count
|
2024-03-28 18:19:43 +00:00
|
|
|
else
|
|
|
|
echo
|
2024-02-28 11:15:04 +00:00
|
|
|
fi
|