Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flynnderek/iotapp-home-security-app

A home security dapp built using iotapp
https://github.com/flynnderek/iotapp-home-security-app

arduino blockchain-as-a-backend blockchain-as-a-service decentralized-applications esp32 esp8266 pir-sensor serverless-applications serverless-framework

Last synced: about 2 months ago
JSON representation

A home security dapp built using iotapp

Awesome Lists containing this project

README

        

# iotapp-home-security-dapp

## Install Dependencies
```
npm install
```

## Project Setup
In the ```HelloWorld.vue``` file (around line 107), add your channel API keys to the API functions. Then, around line 154, add your API keys to the ```pollData() ``` function.

#### Examples
```javascript
iotapp.getPrivateChain("myOz8FZXhT4lBzJplmXtUbneP8eeXpSp","3imNnMduakmu6JmFafIxnu8WJj28BjQI")

iotapp.getLatestTx("myOz8FZXhT4lBzJplmXtUbneP8eeXpSp","3imNnMduakmu6JmFafIxnu8WJj28BjQI")
```
```javascript
pollData() {
this.polling = setInterval(() => {
iotapp.getLatestTx("myOz8FZXhT4lBzJplmXtUbneP8eeXpSp", "3imNnMduakmu6JmFafIxnu8WJj28BjQI")
.then((data) => (this.latestData = data))
.catch((err) => console.log("Error occurred:", err));
}, 2000);
},
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).