1.1.6 • Published 4 years ago

btcaas v1.1.6

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Bitcoin as a Sense

Powered by CoinDesk

This project aims to use the human skin, the biggest receptor for stimulations to create a sense whichs focus is the current development of the Bitcoin price. The price is recovered from the CoinDesk API every minute. The node.js application calculates the price difference to last minute and accordingly sends specific signals over a serial port to an Arduino. The microcontroller activates a tens unit to draw an arrow on the user's back with electronic muscle stimulation.

The project is inspired by this Ted Talk from David Eagleman

Install the package

npm install btcaas

Configure the package

Attributes

port port for the communication with the Arduino.

timeout time between the two shocks which are drawing the arrow

shockLength the base shock time. Note that the base shock time gets added with the price difference multiplied by 10.

var btcaas = require('btcaas')

btcaas.port = "COM4" 
btcaas.timeout = 200 
btcaas.shockLength = 150

Usage

After setting up the attributes you can run the package with

var btcaas = require('btcaas')

btcaas.start()

The method start an infinite loop in which the price is retrieved and logged every minute.

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago