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
if 'entity_id' not in data: | |
logger.warning("===== entity_id is required if you want to set something.") | |
else: | |
data = data.copy() | |
inputEntity = data.pop('entity_id') | |
inputStateObject = hass.states.get(inputEntity) | |
if inputStateObject: | |
inputState = inputStateObject.state | |
inputAttributesObject = inputStateObject.attributes.copy() | |
else: |
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
#!/bin/bash | |
echo "JeVois easy install 1.0 for Ubuntu 16.10 -- Welcome." | |
#################################################################################################### | |
read -p "Install Ubuntu packages needed by JeVois [Y/n]? " | |
if [ "X$REPLY" != "Xn" ]; then | |
sudo apt-get update | |
packages=( |
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
import numpy as np | |
import cv2 | |
import urllib | |
import ssl | |
import time | |
maxWidth = 320 | |
maxHeight = 240 | |
maxClean = 71000.0 | |
minClean = maxClean/2 |