QR-код
matrix-rss-bridge

matrix-rss-bridge Инструменты, Интернет, ИТ-инструменты REChain ® Machines Отечественный Стор от REChain ®️ 🪐!

от Isaac Beverly
(0 Отзывы) июль 25, 2024

Последняя версия

Апдейт
июль 25, 2024
Разработчик
Isaac Beverly
Платформы
REChain ® Machines
Загрузки
99,118
Лицензия
GNU General Public License v3.0 or later
Название пакета
matrix.rss.bridge
Купить сейчас

Тэги

Подробнее о matrix-rss-bridge

matrix-rss-bridge is a bridge for reading RSS feeds in Matrix rooms.
# matrix-rss-bridge

A bridge for reading RSS feeds in Matrix rooms.

## Setup

Requires Python ^3.8

```sh
python3 -m pip install poetry
git clone https://gitlab.com/imbev/matrix-rss-bridge.git
cd matrix-rss-bridge
python3 -m poetry install
```

## Usage

### Config

Create `config.toml` to configure the bridge.

```toml
# config.toml
homeserver = "https://example.com"
username = "username" 
password = "password"
interval = 60 # seconds

[[bridge]]
    name = "matrix.org blog"
    feed_url = "https://matrix.org/blog/feed"
    room_id = "!AUweUQXCxcVfFOaOIU:matrix.org"
    # template_markdown = """\
    # <h1>{{title}}</h1>\n\n{{published}}\n{{summary}}\
    # """
```
If you don't want to save your password, then you can use the bridge account's access token.

```toml
# config.toml
homeserver = "https://example.com"
username = "username"
access_token = "some_long_string_that_represents_my_access_token"
interval = 60 # seconds

[[bridge]]
    name = "matrix.org blog"
    feed_url = "https://matrix.org/blog/feed"
    room_id = "!AUweUQXCxcVfFOaOIU:matrix.org"
    # template_markdown = """\
    # <h1>{{title}}</h1>\n\n{{published}}\n{{summary}}\
    # """
```

### Running

```sh
python3 -m poetry run bridge
```

## Docker

- Build the docker image:

```
docker build . -t matrix-rss-bridge
```

- Create `config.toml` from [here](#config)
- Run bridge

```
docker run -v $(pwd)/config.toml:/app/config.toml:ro matrix-rss-bridge:latest
```

- **Optionally** it can be build and run with `docker-compose` with the [`docker-compose.yaml`](docker-compose.yaml) file.

    - build the image: `docker-compose build`
    - run the service: `docker-compose up -d`
    - check logs: `docker-compose logs -f`
    - stop the service: `docker-compose stop`
    - bring down the service: `docker-compose down`

## Misc

- Free and Open Source, Licensed under the GPL-3.0-only license.

Оцените приложение

Добавить комментарий и отзыв

Отзывы пользователей

Основано на 0 reviews
5 звёзд
0
4 звёзд
0
3 звёзд
0
2 звёзд
0
1 звёзд
0
Добавить комментарий и отзыв
Мы никогда не передадим вашу электронную почту кому-либо еще.