biking-bot (0.1.0+c0e7483)

Published 2026-10-27 14:34:25 +00:00 by Firq in Firq/biking-bot

Installation

pip install --index-url  biking-bot

About this package

telegram bot for telling you to bike to work

biking-bot

A simple evaluation bot run daily to check if the commute to work will be better done by bike or car

config

Set the following env variables:

TELEGRAM_BOT_TOKEN=<bot token>
TELEGRAM_CHAT_ID=<chat id>

WAYPOINTS_JSON=[{"name": "<name1>", "lat": <lat of name1>, "lon": <lon of name 1>}, ...]
PRECIPITATION_LIMIT_MM=<desired percipitation limit>
WIND_GUST_LIMIT_KMH=<desired wind speed limit>
COMMUTE_HOURS=<desired commute hours>

WAYPOINTS_JSON is an array of waypoints, each comprised of the following:

{
    "name": "start", # name of the waypoint
    "lat": 0.0, # "latitude of the waypoint"
    "lon": 0.0  # "longitude of the waypoint"
}

Recommendation: set start, end and a waypoint every few km (my case: every 3km)

PRECIPITATION_LIMIT_MM is typically a value between 0.0 and 1.0 (mm of rain), default is 0.5 - reduce accordingly if not even light rain is okay WIND_GUST_LIMIT_KMH is the windspeed in km/h - default is 50 COMMUTE_HOURS is a comma-separated string of hours where the commute is to be evaluated, 7,8 as default

Requirements

Requires Python: >=3.14
Details
PyPI
2026-10-27 14:34:25 +00:00
2
Firq
34 KiB
Assets (2)
Versions (11) View all
0.1.0+133db57 2026-10-28
0.1.0+7462ca8 2026-10-28
0.1.0+bafebe3 2026-10-28
0.1.0+76a2735 2026-10-27
0.1.0+84488d1 2026-10-27