This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<select v-model="streamList.selected" :disabled="stream"> | |
<option v-for="option in streamList.options" :value="option.id" :key="option.id"> | |
{{ option.description }} | |
</option> | |
</select> | |
<button @click="start" :disabled="stream">Start</button> | |
<button @click="stop" :disabled="!stream">Stop</button> | |
<video autoplay :srcObject.prop="stream" v-if="stream"></video> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bluepy.sensortag import SensorTag | |
from bluepy.btle import BTLEDisconnectError | |
import influxdb | |
import schedule | |
import datetime | |
import sys, time | |
SENSORTAG_MAC_ADDRESS = '54:6C:0E:79:13:06' # Change to your SensorTag MAC Address | |
# Connect to SensorTag |