alexwbaule / telegramopenwrt Goto Github PK
View Code? Open in Web Editor NEWTelegram Scripts for OpenWrt/Lede Project
License: Apache License 2.0
Telegram Scripts for OpenWrt/Lede Project
License: Apache License 2.0
When running /reboot
after few seconds it sending "Rebooting in 15 seconds..."
then it reboots.
After the reboot is done, it sends again the "Rebooting in 15 seconds..." and rebooting.
And again and again.
I have to stop the telegram service quick to stop the loop...
sometime. it's fine. but some time, I got two identical messages.
thanks for the scripts.
Hello, Alex!
I have found your bot very useful to provide multiple user access to surveillance camera in the hall of the our house. Unfortunately i can't properly set its configuration.
Please, be kind to provide a little bit detailed guide!
Is your feature request related to a problem? Please describe.
I'm searching for as simple as possible way to provide multi-user access to surveillance ip-camera on demand and/or motion detection. Telegram provide the best possible user experience and offsite video caching in case of emergency.
Describe the solution you'd like
This bot can be brilliantly shine solution to surveillance world.
Lightweight, simple and user-friendly.
Describe alternatives you've considered
Standalone software from Dahua, Omny, Synology, QNAP and etc.
Additional context
Using such a bot each can install just an openwrt router with cheap 3G modem and ip-camera to easily surveillance needed remoted space.
I've recently installed the latest version on my router @openwrt 21.02.2 r16495-bf0c965af0
And i noticed that the script do nothing, but trying to mail a message everytime i try to send a command to bot.
Then i put a new string below line 54 outputting to system logger some variables values in the original script (/sbin/telegram_bot) and find out that
$origin and $origin_ans variables are everytime have empty values, so nothing works in my case.
Any idea what is wrong, maybe something changed in jsonfilter command in my OpenWRT release?
The Telegram API was a text size limitation of 4096 characters.
I get "This is a Private bot" messenge every time. Bot scripts not working for me.
Openwrt 22.03.
Include in the README.md how-to create a "plugin" and all depencencies to do this.
The dependencies:
Must have help.
Explain the difference between actions and ctx.
help write make for openwrt.
system log :
Sun Jun 4 21:14:56 2023 daemon.info telegram_bot[15166]: {"ok": true,"result":{"message_id": 1083, "from":{ "id": , "is_bot": true, "first_name": "", "username": "" }, "chat":{ "id": , "first_name": "", "last_name": "", "username": "", "type": "private" },"date": "1685888128","text": "21:14:54 up 5 min, load average: 0.86, 0.57, 0.25","entities": []}}
Sun Jun 4 21:14:56 2023 daemon.err sh[15084]: sh: you need to specify whom to kill
Sun Jun 4 21:15:03 2023 daemon.info telegram_bot[15144]: {"ok":true,"result":true}
Sun Jun 4 21:15:10 2023 daemon.info telegram_bot[15144]: {"ok":true,"result":true}
Sun Jun 4 21:15:17 2023 daemon.info telegram_bot[15144]: {"ok":true,"result":true}
Hey, can you fix /wifi_enable, /wifi_disable and /wifi_restart functions? As I understand, bot must respond me with a list of wireless devices to choose which of them need to be enabled or disabled. But it doesn't show anything
Add opkg update and opkg install command. Add get interfaces comand and restart interface name.
Remove from lanports hardcoded switch name, put in the config to be more generic.
hi friend, can you explain why, after sending the reboot command, the router raises the interface and sends the reboot command again automatically? it turns out that the rocker only loads and reboots again. I ask for help, I do not understand much about this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.