http://tinkerman.cat/rpi3_iot_server.pdf (Catalan)
- download the latest image
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
Collection of scripts mostly from Pete, but also taken from the forums. Note you can always run a saved classifier using the | |
runClassifier() command, with the file path included as a string. | |
TOC | |
A simple cell classifier.groovy - One way to classify cells. | |
A simple classifier 2.groovy - Another way. | |
Annotation Classifications to Name field.groovy - Sets the Name of the annotation to its classification. Useful for applying a second |
import telepot | |
import picamera | |
import RPi.GPIO as GPIO | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setwarnings(False) | |
def handle(msg): | |
global sendPhoto | |
global chat_id |
title: Home | |
views: | |
- title: View 1 | |
cards: | |
- &card1 | |
type: entities | |
title: Card 1 | |
show_header_toggle: false | |
entities: | |
- light.bedroom |
#!/usr/bin/env bash | |
set -e | |
apt-get update | |
apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
apt-key fingerprint 0EBFCD88 | |
add-apt-repository \ | |
"deb [arch=armhf] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ |
http://tinkerman.cat/rpi3_iot_server.pdf (Catalan)
#!/usr/bin/env python | |
# MIT License | |
# (c) 2017 Kevin J. Walchko | |
from __future__ import print_function | |
import cv2 | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
import time | |
import argparse |
# -------------------------------------------------------- | |
# Camera Single-Shot Multibox Detector (SSD) sample code | |
# for Tegra X2/X1 | |
# | |
# This program captures and displays video from IP CAM, | |
# USB webcam, or the Tegra onboard camera, and do real-time | |
# object detection with Single-Shot Multibox Detector (SSD) | |
# in Caffe. Refer to the following blog post for how to set | |
# up and run the code: | |
# |
# -------------------------------------------------------- | |
# Camera Caffe sample code for Tegra X2/X1 | |
# | |
# This program captures and displays video from IP CAM, | |
# USB webcam, or the Tegra onboard camera, and do real-time | |
# image classification (inference) with Caffe. Refer to the | |
# following blog post for how to set up and run the code: | |
# | |
# https://jkjung-avt.github.io/camera-caffe-threaded/ | |
# |
#!/bin/bash | |
# https://retropie.org.uk/forum/topic/2295/runcommand-warning-if-voltage-temperature-throttling | |
#Flag Bits | |
UNDERVOLTED=0x1 | |
CAPPED=0x2 | |
THROTTLED=0x4 | |
HAS_UNDERVOLTED=0x10000 | |
HAS_CAPPED=0x20000 |