Ditch Xiaomi's cloud and use a Telegram bot instead

Overview

Yi-Home_Telegram_Bot_Interface

Ditch Xiaomi's cloud and use a Telegram bot instead


Features

  • Motion detection

Works by monitoring a tmp file that is created only when the camera detects a motion

  • Get a picture from the camera

Uses the snapshot.sh functionality to get a real time picture

  • Multi camera support

Add as many cameras as you please

  • The bot works in groups and there's a API limit bypass

Multiple bot token can be added to round robin the requests (Telegram bots cannot send many messages per second in a group chat)

  • Text to speech to all cameras

Use the speak.sh functionality to convert text to audio. Supports en-US, en-GB, de-DE, es-ES, fr-FR, it-IT

  • Text to speech to a single camera

Same but limited to a single camera

  • Play any preconfigured sound to all cameras

Play any audio from a specified folder (default: sound/). Use ffmpeg to convert it to the needed format

  • Play any preconfigured sound to a single camera

Same but limited to a single camera

  • Send a voice note and it will play on all cameras

Send a voice message and ffmpeg will convert it and play simultameusly to all cameras

  • Alert if a camera goes offline

No description

  • Alert if a camera goes online

No description

  • Function to enable/disable motion notification

Mute the camera alerts

  • Function to enable/disable the camera while retaining the audio functionalities

Disable video and photo functionalities of the camera

  • Media retention settings

All media are saved into a folder (default: recording/) and will be deleted in X days. Set 0 to delete immediately

  • Multi language

Currently supports IT and EN languages. You can add more by adding a locale file in config/

Note

  • No need for Xiaomi's cloud service (The app is needed only for the first setup)
  • The cameras don't need to connect to the internet so they will work fine in a isolated vlan

If you have a UniFi access point you can add a Wi-Fi network with a custom VLAN else you can simply use a dedicated access point

  • You'll need to install Yi-Hack firmware on the camera and enable FTP and motion recording

https://github.com/TheCrypt0/yi-hack-v4 https://github.com/roleoroleo/yi-hack-MStar https://github.com/roleoroleo/yi-hack-Allwinner https://github.com/roleoroleo/yi-hack-Allwinner-v2

  • For the text to speech functionality you'll need to install the extra nanotts package

https://github.com/roleoroleo/yi-hack-utils

  • A Raspberry/Docker or LXC Container/VM needs to be connected to the isolated network and to a network with internet access

  • There's 2 branches, one with a lot of emojis in the text and one with none

How to use

Edit config/config.py and add your bot api token and the cameras ip address and nickname and then run main.py

Dependencies

https://github.com/python-telegram-bot/python-telegram-bot

urllib ftplib requests

I'm not sure which one are already packaged with Python 3


Owner
Erli
Student
Erli
GitHub Usage Report

github-analytics from github_analytics import analyze pr_analysis = analyze.PRAnalyzer( "organization/repo", "organization", "team-name",

Shrivu Shankar 1 Oct 26, 2021
A simple telegram bot to save restricted content with custom thumbmail support by Mahesh Chauhan

Save Restricted Content Bot A simple telegram bot to save restricted content with custom thumbmail support by Mahesh Chauhan. Variables API_ID API_HAS

Mahesh Chauhan 532 Jan 02, 2023
A discord bot written in discord.py to manage custom roles assigned to boosters of your server.

BBotty A discord bot written in discord.py to manage custom roles assigned to boosters of your server. v0.0.1-alpha released! This version is incomple

Oui002 1 Nov 27, 2021
📈 A Discord bot for displaying the download stats of a repository made with Python, the Hikari API and PostgreSQL.

📈 axyl-stats axyl-stats is a Discord bot made with Python (with the Hikari API wrapper) and PostgreSQL, used as a download counter for a GitHub repo.

Angelo-F 2 May 14, 2022
Pure Python 3 MTProto API Telegram client library, for bots too!

Telethon ⭐️ Thanks everyone who has starred the project, it means a lot! Telethon is an asyncio Python 3 MTProto library to interact with Telegram's A

LonamiWebs 7.3k Jan 01, 2023
An API wrapper library for opensea api.

Opensea API An API wrapper library for opensea api. Installation pip3 install opensea Usage Retrieving assets: from opensea import get_assets # This

Ankush Singh 38 Jul 17, 2022
An advanced api client for python botters.

[ALPHA] pybotters An advanced api client for python botters. 📌 Description pybottersは仮想通貨botter向けのPythonライブラリです。複数取引所に対応した非同期APIクライアントであり、bot開発により素晴ら

261 Dec 31, 2022
Bringing Ethereum Virtual Machine to StarkNet at warp speed!

Warp Warp brings EVM compatible languages to StarkNet, making it possible to transpile Ethereum smart contracts to Cairo, and use them on StarkNet. Ta

Nethermind 700 Dec 26, 2022
Command-line program to download image galleries and collections from several image hosting sites

gallery-dl gallery-dl is a command-line program to download image galleries and collections from several image hosting sites (see Supported Sites). It

Mike Fährmann 6.4k Jan 06, 2023
A simple Discord Bot that uses the free CryptoCompare API to display cryptocurrency prices

What is this? This is a simple Discord Bot coded in Python that uses the free CryptoCompare API to display cryptocurrency prices Download Use git to c

Kevin 10 Apr 17, 2022
Python package and CLI for user-friendly integration with SAS Viya

sasctl A user-friendly Python interface for SAS Viya. Full documentation: https://sassoftware.github.io/python-sasctl Table of Contents Overview Prere

SAS Software 30 Dec 14, 2022
A powerfull SMS Bomber for Bangladesh . NO limite .Unlimited SMS Spaming

RedBomberBD A powerfull SMS Bomber for Bangladesh . NO limite .Unlimited SMS Spaming Installation Install my-tool on termux by using thoes commands pk

Abdullah Al Redwan 3 Feb 16, 2022
Simple base for a telethon bot!

Telethon Bot Simple base used to make a Telegram Bot in telethon. Join @BotzHub! Note: The client, here, is named BotzHub. Fork and add your plugins t

Aditya 54 Oct 21, 2022
SpamSMS - SPAM SMS menggunakan api web INDIHOME

SPAM SMS Unlimited SPAM SMS menggunakan api web INDIHOME Cara Install Di Termux

Zuck-Ker 1 Jan 08, 2022
A multi exploit instagram exploitation framework

Instagram Exploitation Framework About IEF Is an open source Instagram Exploitation Framework with various Exploits that could be used to mod your pro

Instagram Exploitation Framework - BirdSecurity 1 May 23, 2022
A cracking tool of Xiaomi Dr AI (Archytas / Archimedes)

Archytas Tool 我们强烈抵制闲鱼平台上未经授权的刷机服务! 我对本人之前在程序中为防止违规刷机服务添加未生效的格机代码感到抱歉,在此声明此过激行为与 Crack Mi Dr AI Team 无关,并将程序开源。 A cracking tool of Xiaomi Dr AI (Archy

rponeawa 5 Oct 25, 2022
A Python interface between Earth Engine and xarray for processing weather and climate data

wxee What is wxee? wxee was built to make processing gridded, mesoscale time series weather and climate data quick and easy by integrating the data ca

Aaron Zuspan 160 Dec 31, 2022
Python API wrapper library for Convex Value API

convex-value-python Python API wrapper library for Convex Value API. Further Links: Convex Value homepage @ConvexValue on Twitter JB on Twitter Authen

Aaron DeVera 2 May 11, 2022
A Discord chat bot for the Tardsquad guild (Discord name for server).

Tardsquad Discord Bot A Discord chat bot for the Tardsquad guild (Discord name for server). Resouces Discord Developer Portal A general tutorial for a

Tardsquad Quality Code Inc. 4 Jul 26, 2022
通过GitHub的actions 自动采集节点 生成订阅信息

VmessActions 通过GitHub的actions 自动采集节点 自动生成订阅信息 订阅内容自动更新再仓库的 clash.yml 和 v2ray.txt 中 然后PC端/手机端根据自己的软件支持的格式,订阅对应的链接即可

skywolf627 372 Jan 04, 2023