Giter VIP home page Giter VIP logo

balenaos-helium-gtw's Introduction

Helium Hotspot EU version

This project deploys a LoRaWAN Helium Hotspot with European configuration based on SX1301 LoRa chip.

Getting started

This project runs on Raspberry Pi 3/4 on balenaOS 64 bits with RAK2245 or RAK7324 concentrator (SX1301).

You will need a balenaCloud free account and balenaEtcher for flashing the SD card.

Deploy the code

Deploy the code with this button

Modify the code

If you want to try you need to:

  1. fork my repo to your own github account : https://github.com/PastaGringo/balenaos-helium-gtw
  2. inside the readme change the repoUrl=https://github.com/PastaGringo/balenaos-helium-gtw by repoUrl=https://github.com/YourUsername/balenaos-helium-gtw
  3. modify the docker-compose file to configure lora service based on your needs:
      args:
        - LORA_REGION=EU868
        - LORA_UDP=1680 #default "1680"
        #- SPI_SPEED=8000000 #default 2000000
        #- PIN_RESET=11
        - MINER_URL=helium-miner #default "helium-miner"
  1. modify the docker-compose file to configure helium-miner service based on your needs:
    environment:
      - 'REGION_OVERRIDE=EU868'
  1. click on deploy from your own repo page
  2. create the app from CloudBalena, download the image, flash the image and insert the SD card into your device
  3. boot the device

How to update the miner

To update the Helium miner, click this button and choose "deploy to existing application" (automated miner updates coming soon ;))

How to backup the swarm key

  1. Open an SSH session to the "host-os"
  2. Type this command and keep note of the (YOUR INSTANCE)_miner-data information: ls /var/lib/docker/volumes
  3. Type this command to get a link to download the swarm key (note to replace the YOUR INSTANCE part with the container number that you got from the previous command) curl -F "file=@/var/lib/docker/volumes/(YOUR INSTANCE)_miner-data/_data/miner/swarm_key" https://file.io
  4. Use the outputted file.io link to securely download your swarm key. The link only works one time.

How to restore the swarm key

  1. Open an SSH session to the "host-os"
  2. Type this command and keep note of the (YOUR INSTANCE)_miner-data information: ls /var/lib/docker/volumes
  3. Navigate to where the swarm_key is stored cd /var/lib/docker/volumes/(YOUR INSTANCE)_miner-data/_data/miner/
  4. Remove the original swarm_key file rm swarm_key
  5. Upload your swarm_key that you wish to restore onto file.io and do curl -LJO [FILE.IO UPLOAD LINK]
  6. Reboot miner and you will see it restored :)

balenaos-helium-gtw's People

Contributors

joanandreu avatar mpous avatar pastagringo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.