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
Automatically compile an AWS Service Control Policy that ONLY allows AWS services that are compliant with your preferred compliance frameworks.

aws-allowlister Automatically compile an AWS Service Control Policy that ONLY allows AWS services that are compliant with your preferred compliance fr

Salesforce 189 Dec 08, 2022
Sniper for Anigame and Izzi discord bots!

Anigame Sniper Gen-3 Features Inbuilt Spammer Responds to your messages in discord (on/off) Snipes only where you want it to Set latency so that the b

22 Nov 13, 2022
Source Code for our bot that manages time and other functions of the server <3

Komi San wants you to study This repo contains the source code for our bot that manages time and other functions of the server 3 Features Your study

Komi San wants you to study 8 Nov 08, 2021
REPO USERBOT YANG DIBUAT DARI BERBAGAI REPO USERBOT GITHUB.

Lord Userbot Userbot Yang Digunakan Untuk Bersenang-Senang Di Telegram Repo Lord Userbot Repo Yang Dibuat Alvin Dari Berbagai Repo Userbot Github CARA

Alvin 70 Jan 02, 2023
KTUN Öğrenci Bilgi Sistemine bağlanıp her 15 dakikada notları kontrol eden ve değişiklik olduğu zaman size Discord Webhook ile mesaj atan uygulama.

KTUN_Obis KTUN Öğrenci Bilgi Sistemi KTUN Öğrenci Bilgi Sistemine selenium kullanarak girip setttings.py dosyasında verdiğiniz bilgeri doldurup ardınd

İbrahim Uysal 5 Oct 27, 2022
Public API client for GETTR, a "non-bias [sic] social network," designed for data archival and analysis.

GoGettr GoGettr is an API client for GETTR, a "non-bias [sic] social network." (We will not reward their domain with a hyperlink.) GoGettr is built an

Stanford Internet Observatory 72 Dec 14, 2022
Python script to decode the EU Covid-19 vaccine certificate

vacdec Python script to decode the EU Covid-19 vaccine certificate This script takes an image with a QR code of a vaccine certificate as the parameter

Hanno Böck 244 Nov 30, 2022
A multi-purpose Discord bot with simple moderation commands, reaction roles, reminders, and much more!

Nokari This is the rewrite of Nokari. There are still a lot of things to be done. I'm still working on the internal logic, so the bot basically has no

Norizon 13 Nov 17, 2022
Rhythm bot clone for discord written in Python and uses YouTube to get media files.

Tunebot About Rhythm bot clone for discord written in Python and uses YouTube to get media files. Usage You need a .env file within the same directory

1 Oct 21, 2021
Lamblayer: a minimal deployment tool for AWS Lambda layers

lamblayer lamblayer is a minimal deployment tool for AWS Lambda layers. lamblayer does, Create a Layers of built pip-installable python packages. Crea

Yusuke Takahashi 2 Aug 19, 2022
Python wrapper library for World Weather Online API

pywwo Python wrapper library for World Weather Online API using lxml.objectify How to use from pywwo import * setKey('your_key', 'free') w=LocalWeat

World Weather Online 20 Dec 19, 2022
Injector/automatic translator (using deepL API) for Tsukihime Remake

deepLuna Extractor/Editor/Translator/Injector for Tsukihime Remake About deepLuna, from "deepL", the machine translation service, and "Luna", the name

30 Dec 15, 2022
💻 A fully functional local AWS cloud stack. Develop and test your cloud & Serverless apps offline!

LocalStack - A fully functional local AWS cloud stack LocalStack provides an easy-to-use test/mocking framework for developing Cloud applications. Cur

LocalStack 45.3k Jan 02, 2023
WhatSender is a python package that allows you to send Whatsapp messages at a given time.

WhatSender is a python package that allows you to send Whatsapp messages at a given time.

IdoBarel 0 Apr 21, 2022
SQS + Lambda를 활용한 문자 메시지 및 이메일, Voice call 호출을 간단하게 구현하는 serverless 템플릿

AWS SQS With Lambda notification 서버 구축을 위한 Poc TODO serverless를 통해 sqs 관련 리소스(람다, sqs) 배포 가능한 템플릿 작성 및 배포 poc차원에서 간단한 rest api 호출을 통한 sqs fifo 큐에 메시지

김세환 4 Aug 08, 2021
Trabalho N1 para a materia Tecnicas de Progamação da Anhembi Morumbi

Projeto da Anhembi Morumbi - Tecnicas de Programação. RPG de Console (CMD) Trabalho proposto pelo professor André Santana, na materia Tecnicas de Prog

Leonardo Silva M de Barros 3 Sep 12, 2021
🚀 An asynchronous python API wrapper meant to replace discord.py - Snappy discord api wrapper written with aiohttp & websockets

Pincer An asynchronous python API wrapper meant to replace discord.py ❗ The package is currently within the planning phase 📌 Links |Join the discord

Pincer 125 Dec 26, 2022
Generate Heroku-like random names to use in your python applications

HaikunatorPY Generate Heroku-like random names to use in your python applications. Installation pip install haikunator Usage Haikunator is pretty sim

Atrox 116 Nov 15, 2022
Telegram Link Shortener Bot (With 20 Shorteners)

Telegram ShortenerBot ShortenerBot: 🇬🇧 Telegram Link Shortener Bot (11 + 9 Shorteners) 🇹🇷 Telegram Link Kısaltıcı Bot (11 + 9 Kısaltıcı) All suppo

Hüzünlü Artemis [HuzunluArtemis] 10 May 24, 2022
Python client library for Google Maps API Web Services

Python Client for Google Maps Services Description Use Python? Want to geocode something? Looking for directions? Maybe matrices of directions? This l

Google Maps 3.8k Jan 01, 2023