Page 1 of 1
Telegrambot shell scripts
Posted: Sunday 06 December 2015 12:21
by carlostkd
Hi to all, someone can point me how can i code a telegrambot for running shell scripts on rpi?
Tkanks in advanced
Re: Telegrambot shell scripts
Posted: Sunday 06 December 2015 12:23
by Egregius
Are you sure you want that?
In my opinion there's no security in a bot.
A bot is excellent for notifications, not for actions.
I would consider a webpage with authentication and protection for execution of a script.
Re: Telegrambot shell scripts
Posted: Sunday 06 December 2015 12:31
by carlostkd
Hi thanks for the answer, but i mean preconfigured shell scripts by myself with defined commands, and only that scripts can be runned.
Thanks
Re: Telegrambot shell scripts
Posted: Sunday 06 December 2015 13:14
by jvdz
Egregius wrote:Are you sure you want that?
In my opinion there's no security in a bot.
A bot is excellent for notifications, not for actions.
Why do you state there is no security in DTGBOT?
It has the ability to whitelist only selected senders ID's, so should be pretty safe.
Jos
Re: Telegrambot shell scripts
Posted: Sunday 06 December 2015 13:16
by jvdz
carlostkd wrote:Hi thanks for the answer, but i mean preconfigured shell scripts by myself with defined commands, and only that scripts can be runned.
Why not simply do JSON call to operate Domoticz in a script?
Jos
Re: Telegrambot shell scripts
Posted: Sunday 06 December 2015 13:32
by carlostkd
jvdz wrote:carlostkd wrote:Hi thanks for the answer, but i mean preconfigured shell scripts by myself with defined commands, and only that scripts can be runned.
Why not simply do JSON call to operate Domoticz in a script?
Jos
because my programming skills are very basic, if thou can give me the code for the execution of scripts i will be grateful.
Thanks in advanced
Re: Telegrambot shell scripts
Posted: Sunday 06 December 2015 14:21
by jvdz
Re: Telegrambot shell scripts
Posted: Sunday 06 December 2015 21:11
by Egregius
jvdz wrote:
Why do you state there is no security in DTGBOT?
It has the ability to whitelist only selected senders ID's, so should be pretty safe.
TS mentioned telegram bot, didn't think of DTGBOT, sorry for the misunderstanding then.