• Stars
    star
    185
  • Rank 206,903 (Top 5 %)
  • Language
    TypeScript
  • License
    Apache License 2.0
  • Created almost 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Helium hotspot app for iOS and Android

Hotspot App

Helium hotspot app for iOS and Android built using React Native. For a list of issues and prioritization, please go to our Project page.

Get the app

Release versions of the app are available here:

Beta Versions of the app are available here:

What to expect in the new Hotspot App

Simplification

We've heard that the existing app can be overwhelming and cause undue stress and "doom scrolling". To fix this, the new app will prefer synthesized summaries over raw activity feeds to help users understand the network and their Hotspot better.

Visualization

We will use charts and graphs to explain mining performance over time, and maps to show your Hotspot in relation to others around you. We know witnesses matter, and we want to show you where they are.

Recommendation Engine

The new Hotspot app will include a recommendation engine which will suggest actionable steps users can take to improve the performance of their Hotspot.

Join us in Discord

Chat with the developers and the product team in the Helium Community Discord and look for the #hotspot-app-development channel.

App Designs

Coming soon!

Getting Started

React Native Dev Setup

If you have already set up react native on your machine, skip to the installing section.

React Native dependencies

You will need Node, Watchman, Yarn, the React Native command line interface, Android Studio, and Xcode.

While you can use any editor of your choice to develop your app, you will need to install Xcode and Android Studio in order to set up the necessary tooling to build your React Native app for iOS and Android.

A good free editor is Visual Studio Code.

Node, Watchman, Yarn

We recommend installing Node, Yarn, and Watchman using Homebrew. Run the following commands in a Terminal after installing Homebrew:

brew install node
brew install watchman
brew install yarn

If you have already installed Node on your system, make sure it is up to date with the LTS version.

Watchman is a tool by Facebook for watching changes in the filesystem. It is highly recommended you install it for better performance.

The React Native CLI

Node comes with npm, which lets you install the React Native command line interface.

Run the following command in a Terminal:

npm install -g react-native-cli

If you get an error like Cannot find module 'npmlog', try installing npm directly:

curl -0 -L https://npmjs.org/install.sh | sudo sh.

Xcode

The easiest way to install Xcode is via the Mac App Store. Installing Xcode will also install the iOS Simulator and all the necessary tools to build your iOS app.

If you have already installed Xcode on your system, make sure it is up to date.

Command Line Tools

You will also need to install the Xcode Command Line Tools. Open Xcode, then choose "Preferences..." from the Xcode menu. Go to the Locations panel and install the tools by selecting the most recent version in the Command Line Tools dropdown.

Java Development Kit

React Native requires the Java SE Development Kit (JDK). Download and install JDK 8 if needed.

Android development environment

Setting up your development environment can be somewhat tedious if you're new to Android development. If you're already familiar with Android development, there are a few things you may need to configure. In either case, please make sure to carefully follow the next few steps.

1. Install Android Studio

Download and install Android Studio. Choose a "Custom" setup when prompted to select an installation type. Make sure the boxes next to all of the following are checked:

  • Android SDK
  • Android SDK Platform
  • Performance (Intel ® HAXM)
  • Android Virtual Device

Then, click "Next" to install all of these components.

If the checkboxes are grayed out, you will have a chance to install these components later on. Once setup has finalized and you're presented with the Welcome screen, proceed to the next step.

2. Install the Android SDK

Android Studio installs the latest Android SDK by default. Building a React Native app with native code, however, requires the Android 28 SDK in particular. Additional Android SDKs can be installed through the SDK Manager in Android Studio.

The SDK Manager can be accessed from the "Welcome to Android Studio" screen. Click on "Configure", then select "SDK Manager".

Select the "SDK Platforms" tab from within the SDK Manager, then check the box next to "Show Package Details" in the bottom right corner. Look for and expand the Android 28 entry, then make sure the following items are all checked:

  • Google APIs
  • Android SDK Platform 28
  • Intel x86 Atom_64 System Image
  • Google APIs Intel x86 Atom_64 System Image

Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the "Android SDK Build-Tools" entry, then make sure that 30-rc1, 29.0.3, and 28.0.3 are selected.

Finally, click "Apply" to download and install the Android SDK and related build tools.

3. Configure the ANDROID_HOME environment variable

The React Native tools require some environment variables to be set up in order to build apps with native code.

Add the following lines to your $HOME/.bash_profile config file:

export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools

Installing

Environment Variables

  1. Copy the file .env.sample and rename it to .env.
  2. Once renamed update the values within the file.
  3. In order for maps to load you will need to create your own Mapbox access token.
  4. You will also need a Mapbox download token to build the Android app. See the Mapbox Docs on creating a token with Downloads:Read scope. This token needs to be exported as a system environment variable MAPBOX_DOWNLOAD_TOKEN on your machine.

Dependencies

Install 3rd party dependencies

yarn install

You also need cocoapods for iOS

sudo gem install cocoapods

Then install the pods for iOS (Not needed for Android)

yarn pod-install

If the app is not working you may want to clean your workspace and then follow the running the app section below

yarn clean-install
yarn clean-start

Running The App

iOS

The fastest way to run the app is on the iOS simulator. Just type:

yarn ios

Or for a release build:

yarn ios-release

You can also open the helium.xcworkspace file in the /ios folder using xcode and run the app on your device or any other simulator.

Android

Similar to iOS, run

yarn android

Or for a release build:

yarn android-release

You can also open the Android project in Android Studio by selecting open an existing project and selecting the /android folder.

Debugging

See React Native Debugging.

Recommended tools


Reactotron

The app is configured to use the Reactotron app which can be used to:

  • view your application state
  • show API requests & responses
  • perform quick performance benchmarks
  • subscribe to parts of your application state
  • display messages similar to console.log
  • track global errors with source-mapped stack traces including saga stack traces!
  • dispatch actions like a government-run mind control experiment
  • hot swap your app's state using Redux or mobx-state-tree
  • track your sagas
  • show image overlay in React Native
  • track your Async Storage in React Native

The latest version of Reactotron can be downloaded here

React Native Debugger

See React Native Debugger

More Repositories

1

miner

Miner for the helium blockchain
Erlang
609
star
2

HIP

Helium Improvement Proposals
Jupyter Notebook
578
star
3

gateway-rs

The Helium Gateway
Rust
270
star
4

helium-wallet-rs

Rust implementation of a helium wallet CLI
Rust
256
star
5

blockchain-core

Erlang
214
star
6

denylist

Shell
200
star
7

plumtree

Epidemic Broadcast Trees
Erlang
193
star
8

explorer

A Helium Blockchain Explorer
JavaScript
124
star
9

docs

Helium Documentation
MDX
118
star
10

erlang-libp2p

An Erlang implementation of libp2p swarms
Erlang
111
star
11

helium-program-library

Helium programs to run on the Solana blockchain
TypeScript
110
star
12

helium-js

Official TypeScript packages for interacting with the Helium blockchain
TypeScript
110
star
13

console

A management console to onboard and manage devices running on the Helium blockchain network.
JavaScript
104
star
14

router

router combines a LoRaWAN Network Server with an API for console, and provides a proxy to the Helium blockchain
Erlang
70
star
15

erlang-hbbft

Erlang implementation of HoneyBadgerBFT
Erlang
67
star
16

mappers

Mappers Frontend and API
Elixir
66
star
17

blockchain-etl

Blockchain follower that follows and stores the Helium blockchain
Erlang
64
star
18

longfi-arduino

C++
63
star
19

blockchain-node

A Heilum Blockchain Node
Erlang
60
star
20

console-decoders

Payload decoder functions for console.
JavaScript
58
star
21

wallet-app

TypeScript
55
star
22

network-explorer

TypeScript
54
star
23

blockchain-http

An http API for the helium blockchain database
Erlang
47
star
24

angry-purple-tiger

animal-based hash digests for humans
JavaScript
47
star
25

erlang-dkg

Distributed key generation for Erlang (using pairing based cryptography)
Erlang
41
star
26

erlang-h3

Erlang binding for Uber's H3 spatial coordinate library
Erlang
41
star
27

maker-starter-app

TypeScript
37
star
28

gateway-config

The Helium configuration application. Enables configuring the Helium Hotspot over Bluetooth
Erlang
37
star
29

helium-ledger-app

The official Helium app for the Ledger Nano S
C
32
star
30

helium-vote

TypeScript
29
star
31

helium-ledger-cli

Rust
26
star
32

virtual-lorawan-device

A utility that attaches to a Semtech UDP Host and pretends to be a LoRaWAN Device
Rust
22
star
33

proto

Rust
22
star
34

whitepaper

The Helium Whitepaper
TeX
19
star
35

merkerl

A Merkle Tree implementation in Erlang
Erlang
18
star
36

rosetta-helium

Rosetta implementation for helium
Go
18
star
37

gateway-mfr-rs

Rust
18
star
38

angry-purple-tiger-rs

animal-based hash digests for humans.. in rust
Rust
18
star
39

oracles

Oracles for Helium subDAOs
Rust
17
star
40

packet-purchaser

Erlang
16
star
41

relcast

Relcast library
Erlang
15
star
42

longfi-platformio

C++
15
star
43

gateway_mfr

Erlang Manufacturing Suppport Code
Erlang
15
star
44

erlang-lorawan

Erlang
15
star
45

ecc508

Library to communicate with the Microchip cryptoauthentication device
Erlang
14
star
46

helium-api-rs

A Rust library for accessing Helium API servers
Rust
14
star
47

cargo-elixir

JavaScript
14
star
48

erlang-multihash

Erlang implementation of multihash
Erlang
13
star
49

react-native-helium

TypeScript
13
star
50

lorawan-sniffer

Rust
13
star
51

onboarding-server

JavaScript
13
star
52

libp2p-crypto

Erlang cypto library used by the libp2p system
Erlang
12
star
53

erlang-tpke

Threshold encryption
Erlang
11
star
54

helium-console-cli

A command line interface for interacting with Helium Console API
Rust
11
star
55

ebus

An Erlang binding to libdbus
Erlang
11
star
56

psql-migration

A SQL migration script for Erlang
Erlang
10
star
57

kdtree

Simple kdtree library in erlang
Erlang
10
star
58

semtech-udp

Rust
9
star
59

modular-governance

A modular set of governance contracts on solana
JavaScript
9
star
60

erlang-erasure

Simple Erlang binding for Jerasure's Reed-Solomon erasure encoding/decoding
C
9
star
61

ecc608-linux-rs

A linux rust library for the i2c ecc508 and ecc608 family of crypto chips
Rust
9
star
62

longfi-core

Platform agnostic implementation of core LongFi primitives.
C
9
star
63

erlang-splicer

Splice 2 sockets together in Erlang
Erlang
9
star
64

stm32-lora-disco-rs

Unofficial Rust Board Support Crate for B-L072Z-LRWAN1
GDB
8
star
65

helium-packet-router

Erlang
8
star
66

longfi-erlang

LongFi core bindings for Erlang
C
8
star
67

ecc_compact

Unpatented ECC point compression for NIST p-256 public keys
C
8
star
68

xorf-generator

public key filter tool
Rust
8
star
69

erlang-multiaddr

Erlang implementation of multiaddr
Erlang
8
star
70

longfi-arduino-legacy

C
7
star
71

vincenty

Vincenty's formulae implementation in Erlang
Rust
7
star
72

erlang-pbc

Pairwise crypto
C
7
star
73

erlang-ubx

Erlang support for speaking to ublox gps modules using the ubx protocol
Erlang
6
star
74

lorawan-h3

LoRaWAN regions represented as H3 polyfills
Rust
6
star
75

account-compression-anchor-gen

Anchor generated CPI clients for account compression and bubblegum
Rust
6
star
76

explorer-api

JavaScript
6
star
77

ebus-gatt

A bluetooth gatt server implementation using ebus
Erlang
6
star
78

cortex-mpu

Cortex-M MPU library
Rust
6
star
79

packet-forwarder-test

Rust
6
star
80

erlang-tc

Erlang NIF for threshold_crypto
Erlang
5
star
81

helium-crypto-rs

Rust
5
star
82

well-known

Well known addresses, OUIs, etc. for the Helium network
5
star
83

gwmp-mux

Multiplexer for Semtech's GWMP over UDP
Rust
5
star
84

erl_angry_purple_tiger

Erlang port of angry_purple_tiger
Erlang
5
star
85

erlang-sss

Erlang binding for Shamir Secret Sharing
Erlang
5
star
86

sibyl

Erlang
4
star
87

miner-test

Helium miner testing utilities
Erlang
4
star
88

cream

An Erlang cache backed by the performant Moka library
Erlang
4
star
89

connman

Connection Manager
C
4
star
90

erlang-stats

A NIF wrapper around kthohr/stats
Makefile
4
star
91

ebus-connman

An erlang connman client using ebus
Erlang
4
star
92

helium-foundation-k8s

Helium foundation k8s defs
4
star
93

helium-data

Utilities for processing helium data
Rust
4
star
94

ipython-target-modeling

Testing targeting models
Jupyter Notebook
3
star
95

module-sdk

Libraries and example applications for developing Helium embedded Applications
C
3
star
96

wallet-issues-tracker

Issue tracker for the Helium Wallet app
3
star
97

longfi-st-hal

Helium LongFi Examples Using ST HAL
C
3
star
98

elixir-reed-solomon-erasure

Reed solomon erasure coding NIFs for Elixir
Elixir
3
star
99

intercept

Erlang
3
star
100

device-usage

Helium Device Usage Discussion and Issue tracker
3
star