GithubHelp home page GithubHelp logo

h2b's Introduction

H2B - Helium Hotspot Bootstrapper bash script

What is H2B

H2B is a script that autoinstalls and autoconfigures a fully-functioning Helium DIY Hotspot on raspbian.

H2B was originally intended to speed up the setup process when having to prepare many DIY hotspots. A simple and straightforward automation of the installation process described at the Helium Developer Hotspot Setup.

Installation

Flash your Pi's SD Card with Raspbian Buster. On most linux distributions (such like raspbian) as root, run the following: Mind - Raspbian comes with unzip command, others might not!

using wget

wget https://github.com/23RoMax/h2b/archive/master.zip
unzip master.zip
cd h2b-master/
chmod +x ./install-hotspot.sh 
chmod +x ./build.sh
./install-hotspot.sh

OR

using curl

curl -LO https://github.com/23RoMax/h2b/archive/master.zip
unzip master.zip
cd h2b-master/
chmod +x ./install-hotspot.sh
chmod +x ./build.sh
./install-hotspot.sh

Just follow the installation procedure and have an eye out for potential error messages.

After your Pi has rebooted, reconnect via ssh pi@ipv4ofpi and run

cd h2b-master/
./build.sh

Congratulations, you have successfully done the base installation of your hotspot.

To run it, head back to your root folder cd ~ and issue

./lora_gateway/reset_lgw.sh start 17

To reset your concentrator via GPIO pin 17, followed by

$ cd ~/packet_forwarder/lora_pkt_fwd
./lora_pkt_fwd

This is extraordinarily well explained in the Helium Developer Documentation. If you want to connect your miner right away, follow the documentation.

Utilities

H2B comes with utilities and alternative configurations.

  1. Systemd Service installation routine + the service itself
  2. Startup bash script to use with the service
  3. TCP Dump to debug
  4. 868 MHz config json for the packet forwarder

How to autorun the hotspot after power outages and reboots

Navigate to the utilities folder of H2B cd utilities/ and run

chmod +x ./run.sh
chmod +x ./add-service.sh
cp ./run.sh ~/
./add-service.sh
systemctl status helium.service
sudo systemctl start helium.service

Your machine will now start the package forwarder on reboot automatically. Mind - do not remove run.sh from your users root folder

Compatibility

Tested in combination with:

LoraWAN Interfaces:

SBCs:

Operating Systems:

Open To-Do's

  1. Adding the installation process of the service to the installation routine
  2. Adding a selection process of the gateway configurations during installation routine - see TTN config files

Thank you

Travis - for your help in testing and spreading the word of this script

h2b's People

Contributors

23romax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  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.