A small Node.js server that exposes a socket method to dial an AT command to an operator using US-Robotics USR5637 and c-kermit on raspian.
This is the server component of the project.
- Authentication system based on LAN requests. Any request to the socket made from an internal IP address will be whitelisted in the
devices.json
file and will be permitted later from any network. - The AT command can be modified in the
server.js
file on line 124.kermit.stdin.write('ATDP**your-number**\r\n');
Raspbian:
- Install kermit and nodejs:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get update
sudo apt-get install ckermit
sudo apt-get install -y nodejs
- Clone repository
git clone https://github.com/yotamtal/opendoor-server
- install packages
npm install
npm install pm2@latest -g
pm2 start /path/to/server.js
Socket will now be available on http://localhost:3333/ and an open method to dial the AT command to the modem will be exposed.
- 1.0.0
- Initial release
Yotam Tal – yotam978@gmail.com
Distributed under the MIT license. See LICENSE
for more information.
- Fork it (https://github.com/yotamtal/opendoor-server/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request