๐Ÿ“ฆ Turbo87 / segelflug-classifieds

Segelflug.de Kleinanzeigen Telegram Bot

โ˜… 3 stars โ‘‚ 2 forks ๐Ÿ‘ 3 watching โš–๏ธ Apache License 2.0
botglidingraspberry-pisegelfliegentelegram
๐Ÿ“ฅ Clone https://github.com/Turbo87/segelflug-classifieds.git
HTTPS git clone https://github.com/Turbo87/segelflug-classifieds.git
SSH git clone git@github.com:Turbo87/segelflug-classifieds.git
CLI gh repo clone Turbo87/segelflug-classifieds
Mend Renovate Mend Renovate Update Rust crate clap to v4.5.53 (#1005) 6b4d686 19 days ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ build.rs
๐Ÿ“„ Cargo.lock
๐Ÿ“„ Cargo.toml
๐Ÿ“„ LICENSE-APACHE
๐Ÿ“„ LICENSE-MIT
๐Ÿ“„ README.md
๐Ÿ“„ renovate.json
๐Ÿ“„ repository.yaml
๐Ÿ“„ README.md

segelflug-classifieds ==============================================================================

Segelflug.de Kleinanzeigen Telegram Bot

This project implements a basic [Telegram] bot that regularly polls the [Segelflug.de Kleinanzeigen] page for new items and sends them to a public Telegram channel. The bot is available as a [Home Assistant] addon with support for [Raspberry Pi] and other ARM devices.

Usage


$ segelflug-classifieds --help 

USAGE:
    segelflug-classifieds [FLAGS] [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information
    -w, --watch      Run continuously and poll the server in random intervals

OPTIONS:
        --max-time <max-time>
            Maximum time to wait between server requests (in minutes) [default: 30]

        --min-time <min-time>
            Minimum time to wait between server requests (in minutes) [default: 10]

        --telegram-chat-id <telegram-chat-id>
            Telegram chat ID [env: TELEGRAM_CHAT_ID] [default: @segelflug_classifieds]

        --telegram-token <telegram-token>        
            Telegram bot token [env: TELEGRAM_TOKEN]

If no Telegram token is provided the application will only output the new items on the console, if a token is provided they will also be sent to the configurable Telegram channel.

In addition to these options a SENTRY_DSN environment variable can also be set to enable error reporting on [Sentry.io].

Deployment


Home Assistant Addon (Recommended)

The easiest way to run this bot is as a Home Assistant addon:

  • Add this repository to your Home Assistant addon store:
https://github.com/Turbo87/segelflug-classifieds

  • Install the "Segelflug.de Kleinanzeigen Bot" addon
  • Configure the addon with your Telegram bot token:
  • Add the token to the addon configuration
  • Optionally configure a Sentry DSN for error reporting
  • Start the addon
The addon will automatically download the latest binary on startup and handle updates.

License


Licensed under either of

  • Apache License, Version 2.0
(LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license
(LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.