No description
This repository has been archived on 2025-04-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Find a file
Michael Grote 6e6d70146f
All checks were successful
lint, build and push / lint (push) Successful in 7s
lint, build and push / build (push) Successful in 19s
fix ci
---
siehe: mg/homeserver#345
2025-04-18 20:06:40 +02:00
.gitea/workflows fix ci 2025-04-18 20:06:40 +02:00
Dockerfile chore(deps): update alpine docker tag to v3.21.3 (#52) 2025-02-14 21:07:25 +01:00
filter.sh add timestamps (#51) 2025-02-05 16:29:50 +01:00
filter.txt Filter - heise, sz, mdr 2022-06-18 10:08:20 +02:00
LICENSE first commit 2021-10-28 18:53:59 +02:00
README.md housekeeping 2025-02-11 16:14:37 +01:00
renovate.json configure: renovatebot 2024-05-08 15:01:35 +02:00
sort_and_remove_double_entries.sh Added script to clean up filter.txt 2022-06-18 11:06:16 +02:00

miniflux-filter

Table of Contents

Introduction

miniflux-filter is a small bash-script for miniflux that marks certain articles as read, if the search conditions are met.

Getting Started

  1. create an api-key in miniflux
  2. create a compose-file
  3. create a filter-file
  4. docker-compose up

example docker-compose

version: '3.2'
services:
  mf-filter:
    container_name: mf-filter
    restart: always
    environment:
      TZ: Europe/Berlin
      MF_AUTH_TOKEN: XN2klsvvD[...]-dcHPaeQ=
      MF_API_URL: https://miniflux.[...].net/v1
      MF_SLEEP: 60
      #- MF_DEBUG=1
    image: quotengrote/miniflux-filter:latest
    volumes:
      - ./filter.txt:/data/filter.txt

example filter-file

  • Format: url::search
  • case-insensitive
<part_of_url>::<search string, anything goes>
sueddeutsche.de::FC Bayern
heise.de::software-architektur.tv
heise.de::heise-angebot
tagesschau.de::FC Barcelona
heise.de::TechStage |
[...]

Misc

Debug

If MF_DEBUG is set to 1, miniflux-filter will print extra output to stdout.

  • the current Variable
  • URL + Values for filtering
  • almost all function calls

Exit-Codes

RC Description
1 $MF_FILTERLIST_FILE not found
2 $MF_AUTH_TOKEN not set
3 $MF_API_URL not set
4 $MF_FILTERLIST_FILE is a dir
5 jq is not installed
6 curl is not installed
7 could not connect to miniflux
8 xargs is not installed
9 sed is not installed
10 sort is not installed
11 awk is not installed

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.