Coder Social home page Coder Social logo

mqtg-bot's People

Contributors

veereshkhanorkar avatar xdwart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mqtg-bot's Issues

Proposal: Better Data & Subscription Management

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::

  • configure the server only once
  • have all users use the same database (only store each subscription once, delete one no one is using the data anymore).
  • make button configurations the same for all users (or possible to copy from another user)

Cheapest solution :

  • Add a startup flag to make the server 'secure' allowing no new users.

Error: Identifier rejected

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 на хорошее им нужна какая-то обратная связь. Т.е. если параметр изменил другой клиент или скрипт, то кнопка тоггле сработает только со второго раза. Хотя это наверное сложно поправить.

Proposal: Authentication Mechanism

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 :

  • the server is public (as it is today) or private
  • whether access requests would be allowed (new users connecting with /start) -or- users are to be added manually.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.