Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 3 hours ago
JSON representation
A home security dapp built using iotapp
- Host: GitHub
- URL: https://github.com/flynnderek/iotapp-home-security-app
- Owner: FlynnDerek
- Created: 2020-07-31T03:39:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T12:55:48.000Z (almost 2 years ago)
- Last Synced: 2023-03-07T23:29:01.653Z (over 1 year ago)
- Topics: arduino, blockchain-as-a-backend, blockchain-as-a-service, decentralized-applications, esp32, esp8266, pir-sensor, serverless-applications, serverless-framework
- Language: Vue
- Homepage: http://security-dapp.surge.sh/
- Size: 3.07 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
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/).