question

johnny-brusevold avatar image
johnny-brusevold asked

Node Red pi and sms

Runs Venus Os large latest version on a raspberry pi 3b, which works quite well. Want to configure more options for other components, something I hope can be done with node red.

I'm not very good at such things, but have got something working, like meters and the relay in BMV-712.

I'm offgrid full time in a camper, so the rasberry pi is wired to a tplink lte 4G router.

Have installed some software on pi so I can send sms via ssh to tp-link integrated sms app


The real question is, can one connect this via node red so I can send alarms to my mobile phone?


command to send sms

./sms-send.js --url = "http://192.168.1.1" --login = "admin" --password = "myrouterpassword" "0612345678" "my text message"


Maybe I'm looking at the wrong end so it's nice if someone can put me in the right direction

Node-RED
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

1 Answer
mrhappy avatar image
mrhappy answered ·

Hi @Johnny Brusevold,

I believe this is very doable.

There is a node which will execute a command within the Raspi itself, the red "exec" node. Instructions here: http://stevesnoderedguide.com/using-the-exec-node

Or,via settings - "manage palette" you can install the "exec big" -node, just an alternative to it. Description here: https://flows.nodered.org/node/node-red-contrib-bigexec

/MrHappy

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

johnny-brusevold avatar image johnny-brusevold commented ·



Thank you for your answer.

This seems interesting

When I look at software that is used to send sms, it is based on nodejs and yarn.

Maybe it is possible to integrate it in node red, but I know too little about this.

Anyway, I attach the link here if anyone should be interested in this

https://github.com/plewin/tp-link-modem-router/

0 Likes 0 ·
johnny-brusevold avatar image johnny-brusevold commented ·

exec big worked great.

Failed to get node-red exec a .js file, so had to run through a bash script.

Have only tested with over volt alarm with input from BMV-712 Smart, and it works as desired

0 Likes 0 ·