xdwart / mqtg-bot Goto Github PK
View Code? Open in Web Editor NEWMQTT Client Telegram Bot
License: MIT License
MQTT Client Telegram Bot
License: MIT License
Currently every telegram user (or telegram channel) is greeted with /start and asked to configure the server. Once configured, each users data is stored individually instead of using the same data that is already in the database for another user.
Proposed solution::
Cheapest solution :
I used tcp. Another client connect normally.
1618470430: New connection from 34.242.211.143:35710 on port 1883.
1618470430: Client disconnected due to out of memory.
1618470430: New connection from 34.242.211.143:35720 on port 1883.
1618470430: Client disconnected due to protocol error.
Добрый день.
спасибо за проект подскажите, чтобы запустить бот у себя мне нужно поднять БД postgres?
А можно как-то одной кнопкой считать все или выбранные subscriptions и вывести? Т.е. иногда полезно знать состояние девайса в целом. Так же есть проблемка с кнопками toogle на хорошее им нужна какая-то обратная связь. Т.е. если параметр изменил другой клиент или скрипт, то кнопка тоггле сработает только со второго раза. Хотя это наверное сложно поправить.
Just a small glitch, the bot crashes (division by 0):
Preconditions: Fresh bot, with no subscriptions
Activity:
Added a folder
Added a button of type "last value"
Gave it a name, and division by 0 and dies
"Workaround":
Add a subscription first
Currently anyone who can talk to the bot can also send commands and subscriptions. This poses the risk of strangers abusing your service to interact with your environment (via mqtt or the configuration) and or using your server for their likely malicious purposes to connect to other mqtt servers on the internet.
Proposed solution::
First user (or channel) to connect & configure mqtg after a start (empty Database) becomes the owner of the server, might be a flag that can be granted to others.
Additionally the owner would have then the possibility to decide whether :
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.