Skip to content

A small Node.js server app that exposes a socket method to dial an AT command

Notifications You must be signed in to change notification settings

yotamtal/opendoor-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opendoor-server

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.

Features

  1. 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.
  2. The AT command can be modified in the server.js file on line 124. kermit.stdin.write('ATDP**your-number**\r\n');

Installation

Raspbian:

  1. 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
  1. Clone repository
git clone https://github.com/yotamtal/opendoor-server
  1. install packages
npm install
npm install pm2@latest -g

Usage example

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.

Release History

  • 1.0.0
    • Initial release

Meta

Yotam Tal – yotam978@gmail.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/yotamtal/

Contributing

  1. Fork it (https://github.com/yotamtal/opendoor-server/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

About

A small Node.js server app that exposes a socket method to dial an AT command

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published