{"_id":"@carnegietech/ct-gateway-management","_rev":"1-e0b66663d3e02debc256525ca20a65f7","name":"@carnegietech/ct-gateway-management","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@carnegietech/ct-gateway-management","author":{"name":"Carnegie Technologies"},"license":"Apache-2.0","description":"Gateway Management service","version":"1.0.0","bin":{"ct-gateway-management":"./build/ct-gateway-management"},"engines":{"node":"12.x"},"scripts":{"dist-clean":"rimraf build/ coverage/","lint":"tslint --project tsconfig.lint.json -c tslint.json","compile":"tsc && cp src/ct-gateway-management build/","serve":"node build/main.js","start":"npm-run-all dist-clean lint compile serve"},"devDependencies":{"@types/amqplib":"^0.5.1","@types/node":"^7.0.12","npm-run-all":"^4.0.2","rimraf":"^2.6.1","ts-node":"^4.1.0","tslint":"^5.20.0","tslint-eslint-rules":"^4.0.0","tslint-microsoft-contrib":"^6.2.0","typescript":"^3.6.2"},"dependencies":{"amqplib":"^0.5.5","convict":"^4.0.0","express":"^4.15.2"},"gitHead":"8efeab4bbd91e8e572793ab44b1f15edf5c5cb6a","_id":"@carnegietech/ct-gateway-management@1.0.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-2s3T9hFYWPWBqNOwuiXKFaXq69Ot5WvWNc+X7VALSyikNJLx57wbfzya8VnuN1IvQl/HQTuaL+jwN7KF1hFEHg==","shasum":"7cb8cdc15f25cc28d594a42c1e9269c73f9f88c9","tarball":"https://registry.npmjs.org/@carnegietech/ct-gateway-management/-/ct-gateway-management-1.0.0.tgz","fileCount":10,"unpackedSize":25484,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeL2P4CRA9TVsSAnZWagAAAYsP/jIaQe0uV9lW7wM9M9PD\ndxTEhfavX3GeL8lDrFmKCo65iSY7AHJv0LqMPj7brBcxtcpPoZAgQIUDnIgr\nvR1e/AG9vQx1fy6v6w/1ku0U7A6XaALdPhMMsBmxe+czEJ3x9p7xPcGTUKNz\nP0oTZtTXg+CjjbWSYeJlD7nwgMOWcK8fV8Zg9QT/kuZ8TJkKcCcsihwSxnL4\nTXNwYH3adH6fLSldnZyu5XxfnCBmxunqFgJrcCNzUJUlCHrwxWjudJOVhQoP\nQg5p8/jsExx2zEQTArPZHRn6Mi5lo3HxnLNSmsXEqSLXOspK9fczjR1wCn3R\n9SAA/jf+iDjU97WbpQPeNQfZlegpAPlvh2JANLQzuVum6AJdNZceE2TduigV\ny5T/JantSeRpWwdSwv2YGAiq36OBSplDRj7fqkrdLWKjkYSuHP8Jx9rTxNlt\n6yWrQ4WjfwmBT+8DgII8uaBrWAW72Aw84F/I86QD9Vep/Djyy47NGllIaEcA\nBp8vlJgBZZi5/M9YUXz3OV/xyQxVtduVUkWqDLWBw3HUtNmqS3N2F3gmpWiP\ndh+N0kJme9CDlZ6wuAKbVbseOzpRYIwKZ3phse9xGRG8VHZoEW5kMgmF/PA7\nWpqzTa9urxHPYxOfBQKnKbc4t++Flr+IorxK/YtBNCMgySCZdUwrXTjm6d2t\nenQl\r\n=WKMf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEyXZO1AKNovsydgpdqmNOBKWnO6tpjfB2asjqRp4+fCAiBjNFebvEfL400V5ahbDPwsoSBFLC7JI71VV00wlAoAXw=="}]},"maintainers":[{"name":"robert-ostensen","email":"rob@profesh.boxacle.net"},{"name":"ahamstra-ctech","email":"ahamstra@carnegietechnologies.com"},{"name":"severnt","email":"severn-npm@xephris.net"},{"name":"pravalanicholas","email":"narmstrong@carnegietechnologies.com"}],"_npmUser":{"name":"severnt","email":"severn-npm@xephris.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ct-gateway-management_1.0.0_1580164088477_0.07570338887600303"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-27T22:28:08.237Z","1.0.0":"2020-01-27T22:28:08.593Z","modified":"2022-04-04T21:58:28.869Z"},"maintainers":[{"name":"robert-ostensen","email":"rob@profesh.boxacle.net"},{"name":"ahamstra-ctech","email":"ahamstra@carnegietechnologies.com"},{"name":"severnt","email":"severn-npm@xephris.net"},{"name":"pravalanicholas","email":"narmstrong@carnegietechnologies.com"}],"description":"Gateway Management service","author":{"name":"Carnegie Technologies"},"license":"Apache-2.0","readme":"# Gateway Management Service\n\nThis service is used to provide configuration information for Carnegie Technologies' LoRa gateways.\n\nThe gateway requires this LoRa configuration information to function correctly and pass LoRa payloads\nto/from the cloud. Please note that gateways also require additional on-device configuration to connect\nto a cloud RabbitMQ and talk to this service.\n\nThis service listens for messages sent over RabbitMQ on the 'gw' exchange and responds with\nGateway Config messages when the gateway sends either a configuration get request or a status update.\n\nThe response messages are configurable via environment varirables.\n\n## Usage\n\n### Install from npm\n\nWith npm\n\n```sh\nnpm install -g @carnegietech/ct-gateway-management\n```\n\nor with yarn\n\n```sh\nyarn global add @carnegietech/ct-gateway-management\n```\n\nAfter installing, ct-gateway-management can be run with\n\n```sh\nAMQP_URI=amqp://user:pass@localhost \\\n  GW_EUI=1234abcd56ef7890 \\\n  LORA_RF_PLAN=1 \\\n  LORA_REGION=US902 \\\n  LORA_CHANNEL_PLAN_ID=1 \\\n  ct-gateway-management\n```\n\n### Compile it yourself\n\nClone the repo and run\n\n```sh\nyarn install\nyarn compile\n```\n\nAfter compiling, ct-gateway-management can be run with\n\n```sh\nyarn serve\n```\n\n## Configuration - Environment variables\n\n* `AMQP_URI`: URI to access the RabbitMQ server e.g. amqp://user:pass@localhost\n\n### Configuration of the Response\n* `GW_EUI`: The EUI of the gateway e.g. 1234abcd56ef7890\n* `LORA_RF_PLAN`: The LoRa RF plan to use. A number from 1-8, or use 0 to reject all requests\n* `LORA_REGION`: Default value specifying the region the gateway is operating in e.g. US902\n* `LORA_CHANNEL_PLAN_ID`: Default value specifying an ID for which set of channels to use. Use values 1 - 5\n","readmeFilename":"README.md"}