{"id":13764921,"url":"https://github.com/devicehive/lora-gateway","last_synced_at":"2026-01-23T23:54:53.430Z","repository":{"id":145475091,"uuid":"107132599","full_name":"devicehive/lora-gateway","owner":"devicehive","description":"Simple gateway implementation between LoRa and DeviceHive.","archived":false,"fork":false,"pushed_at":"2017-10-24T17:21:26.000Z","size":18,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-17T01:32:32.063Z","etag":null,"topics":["devicehive","iot","iot-gateway","lora","lora-gateway","lorawan"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devicehive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-10-16T13:39:55.000Z","updated_at":"2024-09-01T16:09:24.000Z","dependencies_parsed_at":"2023-06-05T22:45:21.589Z","dependency_job_id":null,"html_url":"https://github.com/devicehive/lora-gateway","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicehive%2Flora-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicehive%2Flora-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicehive%2Flora-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicehive%2Flora-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devicehive","download_url":"https://codeload.github.com/devicehive/lora-gateway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253480434,"owners_count":21915246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devicehive","iot","iot-gateway","lora","lora-gateway","lorawan"],"created_at":"2024-08-03T16:00:31.580Z","updated_at":"2026-01-23T23:54:53.377Z","avatar_url":"https://github.com/devicehive.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# DeviceHive [LoRa](https://www.lora-alliance.org/) gateway\nThis project implements LoRa gateway using DeviceHive cloud service. It is a\ntransparent gateway between DeviceHive cloud service and LoRa radio.Everything\nwhich LoRa receives sends to DeviceHive server as notifications. Command 'lora'\ntransmit 'data' field into LoRa. It is a transparent gateway between DeviceHive\ncloud service and LoRa radio.\n\n# Hardware\nThis project uses [Dragino LG01](http://www.dragino.com/products/lora/item/117-lg01-p.html)\ngateway as a reference hardware.\n\n# Installation\nMake sure that gateway firmware version is 4.3 or newer. You can get new\nfirmware [here](http://www.dragino.com/downloads/index.php?dir=motherboards/ms14/Firmware/IoT/)\n- Install Python DeviceHive library. Connect with ssh to the router\n(`ssh root@10.130.1.1`, password `dragino` by default) and run:\n```bash\ncurl -SL https://github.com/devicehive/devicehive-python/archive/2.1.0.tar.gz | tar zx\ncd devicehive-python-2.1.0/\npython setup.py install\ncd ..\nrm -rf devicehive-python-2.1.0/\n```\n- Copy gateway package:\n```bash\nmkdir -p /opt/devicehive \u0026\u0026 curl -SL https://github.com/devicehive/lora-gateway/releases/download/v0.0.2/gateway.tar.gz | tar zx -C /opt/devicehive\n```\n- Install it with:\n```bash\n/opt/devicehive/gateway.py install\n```\nThis command flashes firmware into gateway. Firmware automatically boots on power on and\nstarts Python part.\n- Configure gateway with DeviceHive server URL, credentilals and LoRa frequency. Open web\nbrowser http://gateway-ip:8000 and enter settings there. Click on `save`.\n\nTo remove it completly, remove `/opt/devicehive` directory,\n`pip uninstall devicehive` and flash(or just leave it) any new firmware to the\nmicrocontroller part of the gateway.\n\n# Usage\nGateway boots automatically on power on. It works on specfied in config frequency and\nreceives all LoRa packages which send to DeviceHive server as notifications. Notification\nname is always `LoRa`.  Parameters contains field `data` which is the data that was received.\n`rssi` field means received signal strength indicator, units are dBm.\nExample:\n```json\n{\n  \"data\": {\n           \"A1\":1.63,\n           \"A0\":1.77,\n           \"A3\":1.33,\n           \"A2\":1.48,\n           \"A5\":0.64,\n           \"A4\":1.15\n  },\n  \"rssi\": -45\n}\n```\nIf LoRa data is a json it will be json object in this field. If LoRa data is a string or raw data it\nwill be string object in this field. Any non pritable character, it will be escaped with `\\\\x00`\nsequence where `00` is hex code of char. For example newline char `\\\\x0a`.\n\nTo send data to LoRa, send a command to dateway device with `LoRa` name(case\ninsensetive) and `data` field in the parameters. It can be json object or string which will be\nsent as bytes to radio. Any non pritable charactes should be escaped with `\\\\x00` sequence\nwhere `00` is hex code of char.\n\n# Sample LoRa device\nThere is a simple Arduino based(with LoRa hat) devices sample. This sample can be used for\ntest of demo purpose. See details [here](./lora-demo-device).\n\n# Building from sources\nTo build firmwares and/or flash it separatly use [Arduino IDE](https://www.arduino.cc/en/Main/Software).\nMore deatiled description about operating Dragino gateway is aviliable [here](http://www.dragino.com/downloads/downloads/UserManual/LG01_LoRa_Gateway_User_Manual.pdf).\nTo generate release tarball:\n- build [lora-gateway-firmware](./lora-gateway-firmware) with Arduino IDE(Sketch -\u003e Export\ncompiled Binary)\n- run `gen_release.sh` script\nTarball will be created in repo root directory.\n\n# License\nApache License, Version 2.0. See [LICENSE](./LICENSE) file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevicehive%2Flora-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevicehive%2Flora-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevicehive%2Flora-gateway/lists"}