npm.io
1.0.3 • Published 5 years ago

node-red-contrib-ringbeller

Licence
—
Version
1.0.3
Deps
2
Size
6.7 MB
Vulns
0
Weekly
0

Ringbeller IoT Node-RED

1. Solution

Ringbeller IoT Node-RED package uses ringbeller-nodeapi to access the modem functions provided by the native C++ library.

2. Prerequisite: WiringPi

The WiringPi library is required by the C++ Modem Library for low-level hardware communication. To install the library:

  1. Go to https://github.com/WiringPi/WiringPi
  2. Download ZIP archive
  3. Unzip archive: unzip WiringPi-final_official_2.50.zip
  4. Compile and install library: cd WiringPi-final_official_2.50 ./build
3. Prerequisite: ringbeller-nodeapi

cd node-red-contrib-ringbeller npm install ringbeller-nodeapi

4. Node-RED Nodes

initialize(logLevel, debugEnabled, serialPort, audioPort):Initialize modem. turn on: Turn on the modem turn off: Turn off the modem restart: Restart the modem connect: Connect the modem disconnect: Disconnect the modem configure: Configure the modem send sms(number, message): Send SMS message receive sms: Receive SMS message place call(number): Place call receive call: Receive call get call status: Get call status end call: Hang up active voice call begin audio playback(playbackFile): Begin playing audio to voice call wait audio playback: Wait for voice-call audio-playback to end end audio playback: End playing audio to voice call start audio recording(recordFile): Begin recording audio from voice call end audio recording: End recording audio from voice call send mms(recipient, cc, bcc, title, attachment, protocol, apn, username, password, authentication, mmsc, proxy, port): Send MMS message get keypad input(length, audioFile): Get keypad input (IVR)

5. Testing

To use the Node-RED nodes, you need to install the package using npm: npm install node-red-contrib-ringbeller