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
Python script to scrape users/id/badges/creation-date from a Discord Server Memberlist

Discord Server Badges Scraper - Credits to bytixo he made this Custom Discord Vanity Creator How To Use Install discum 1.2 Open a terminal and execute

apolo 13 Dec 09, 2022
This asynchronous telegram bot sells books.

Selling_Books_Bot Description Say, you have a bunch of items you need no more and you want to sell it all out. That's where you're going to have to us

Roman 1 Oct 24, 2021
Most Powerful Chatbot On Telegram Bot

About Hello, I am Lycia [リュキア], An Intelligent ChatBot. If You Are Feeling Lonely, You can Always Come to me and Chat With Me! How To Host The easiest

RedAura 8 May 26, 2021
A supabase client for python

supabase-client A Supabase client for Python. This mirrors the design of supabase-js Full documentation: https://keosariel.github.io/2021/08/08/supaba

kenneth gabriel 11 Dec 19, 2022
Check AWS S3 instances for read/write/delete access

s3sec Test AWS S3 buckets for read/write/delete access This tool was developed to quickly test a list of s3 buckets for public read, write and delete

0xmoot 114 Dec 06, 2022
Python Telegram bot api.

pyTelegramBotAPI A simple, but extensible Python implementation for the Telegram Bot API. Getting started. Writing your first bot Prerequisites A simp

FrankWang 6.4k Jan 09, 2023
Lambda-function - Python codes that allow notification of changes made to some services using the AWS Lambda Function

AWS Lambda Function This repository contains python codes that allow notificatio

Elif Apaydın 3 Feb 11, 2022
Slack bot for monitoring your Metaflow flows!

Metaflowbot - Slack Bot for your Metaflow flows! Metaflowbot makes it fun and easy to monitor your Metaflow runs, past and present. Imagine starting a

Outerbounds 21 Dec 07, 2022
A Telegram bot that can stream Telegram files to users over HTTP.

T.ME_FILE_TO_LINK Hi iam a file to link bot....best Bot telegram Telegram File To Link Generation Bot A Telegram bot that can stream Telegram files to

1 Oct 24, 2021
HinamiRobot - Telegram Group Manager Bot Written In Python Using Pyrogram

✨ HINAMI CHAN ✨ Telegram Group Manager Bot Written In Python Using Pyrogram. Rea

DARK LEGEND088 2 Jan 27, 2022
A python library for building user interfaces in discord.

blurple.py A front-end framework for discord.py Blurple.py is a framework built on top of discord.py, giving you the tools you need to build discord b

4 Oct 25, 2021
Create Basic ERC20 token with Solidity, Brownie and Python

Create Basic ERC20 token with Solidity, Brownie and Python Demo Check out Cornell Token on Rinnkeby network with Etherscan. Installation Install brown

Ethan Huang 2 Feb 16, 2022
Telegram bot to host python bots

Host-Bot Setup the api Upload the flask api on your host #its not important to do #i used it just for simple captcha system + save ids on your host!

Plugin 15 Feb 11, 2022
Bot for Telegram data Analysis

Bot Scraper for telegram This bot use an AI to Work powered by BOG Team you must do the following steps to make the bot functional: Install the requir

8 Nov 28, 2022
A telegram bot to monitor the latest NFT price on BSC.

NFT_Monitor This is a telegram bot for monitoring price and ranking of NFT on Binance Smart Chain. Can fetch latest ranking and price in real time. .P

Niko Pang 10 Oct 09, 2022
A Python wrapper for the QQ Channel API

A Python wrapper for the QQ Channel API

Fox_white 55 Dec 07, 2022
Fetch tracking numbers of Amazon orders, for the ease of the logistics.

Amazon-Tracking-Number Fetch tracking numbers of Amazon orders, for the ease of the logistics. Read Me First (How to use this code): Get Amazon "Items

Tony Yao 1 Nov 02, 2021
Simple Telegram bot to confess to your crush this Valentine's Day

Simple Telegram bot to confess to your crush this Valentine's Day! Steps pip install python-telegram-bot Register a Telegram bot & get the token by fo

3 Mar 18, 2022
PyFacebook

== PyFacebook == PyFacebook is a Python client library for the Facebook API. Samuel Cormier-Iijima ( Samuel Cormier-Iijima 573 Dec 20, 2022

UNLIMITED CALL AND SMS BOMBING PYTHON SCRIPT

cc_sim_crack v.1 An open-source SMS/call bomber for Linux And Termux. Note: Due misusing of cc_sim_crack, several API's died. Don't be afraid if you d

CYBER CRACKER OFFICIAL 3 Jul 05, 2021