Sign inSign up

henkjanc/finn-nodejs-sdk

By henkjanc

•Updated over 7 years ago

bankingofthings.io service for your rpi model 3 (3 is needed for bluetooth-support)

Image
0

10K+

henkjanc/finn-nodejs-sdk repository overview

⁠Finn BoT-NodeJS-SDK on Docker

FINN enables your IoT devices to perform seamless autonomous payments on your behalf. For more information, visit us at makethingsfinn.com⁠

The repo is located here: https://github.com/henkjanc/docker-finn-nodejs.git⁠

Configure and run this immediately. With this container Finn-service is directly available as a Docker-container.

⁠Usage

⁠Setup

Initially run to link your account with your device via the makerID.

sudo docker run -ti --net host -v $(pwd)/storage:/app/storage  -w /app/bin henkjanc/finn-nodejs-sdk:latest ./config.sh

Enter your makerID: ZXXXXXXXX
node lib/config.js makerID ...
[7/6/2019, 8:45:09 PM] INFO: Startup - Setting makerID to:...
Are you building a multi pairable device? [no/yes]: no
no
node lib/config.js standalone standalone
[7/6/2019, 8:45:20 PM] INFO: Configuration Service - Generating QR Code... 
[7/6/2019, 8:45:20 PM] SUCCESS: Configuration Service - Configuration successfully initialized 

A QR-code is generated. Your finn-phone-app can now be paired via bluetooth or via the QR-code. You will find these in the local storage-folder.

ls storage
configuration.json  qr.png
⁠Running the server

Now you are ready to run the docker - image. To enable bluetooth within the container you need the --net host flag. So;

 sudo docker run -ti --net host -v $(pwd)/storage:/app/storage -p 3001:3001henkjanc/finn-nodejs-sdk:latest

⁠Howto build your own image

sudo docker build -t henkjanc/finn-nodejs-sdk:latest .

⁠Contribute

Just contact me if you want to use this stuff or just fork it.

Tag summary

Content type

Image

Digest

Size

177.2 MB

Last updated

over 7 years ago

docker pull henkjanc/finn-nodejs-sdk