dtgbot new function"download"

Moderator: leecollings

Post Reply
pietrondo
Posts: 5
Joined: Thursday 10 March 2016 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

dtgbot new function"download"

Post by pietrondo »

Hi, I'm new on dtgbot.. I would add new function to the bot.
I need to download "thing" (curl or wget) using the bot integrated with domoticz.
I think I need to add a new "module" in lua folder.
The problem now is to create a "new function" that tells:
download a link in a specific folder of raspberry (where domoticz is installed).
Someone could help me?

thanks!
simonrg
Posts: 329
Joined: Tuesday 16 July 2013 22:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8807
Location: North East England
Contact:

Re: dtgbot new function"download"

Post by simonrg »

Best way would be to write a new module, as potentially that could give you a lot of flexibility.

But a quicker way would be to use a Bash script and address the bot directly - have a look at https://github.com/steps39/dtgbot/blob/ ... oorbell.sh, which sends a photo and then have a look at the Telegram bot documentation - https://telegram.org/blog/bot-revolution.
Raspberry Pi 2 B - 2A@5V PSU - Raspbian + Domoticz + RFXtrx(89), LightwaveRF House(dimmers, sockets, wireless/mood switches), Owl CM113, 4 LaCross Temp / Humidity Sensors, 4 Siemens PIR, Smappee, Solaredge, ESP8266
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest