The following steps describe the prerequisites for the actual raspbee setup (deCONZ/phoscon and node-RED):
-
Flash (e.g., using Etcher) raspbian-buster-lite onto SD card (e.g., 16GB).
-
Create an empty
ssh
file on the SD card's boot partition.
const happyAnd = (strings) => | |
strings.length === 0 ? '' : strings.reduce((text, value, i, array) => | |
text + (i < array.length - 1 ? ', ' : array.length > 2 ? ', and ' : ' and ') + value); |
factorize = (x) => x == 0 ? 1 : x * factorize(x - 1); | |
// Computation of the gauss-error (which gives the accumulated area below the normal | |
// distribution) using its Maclaurin series (https://en.wikipedia.org/wiki/Error_function) | |
erf = (z, n) => { | |
const lower = (n) => factorize(n) * (2.0 * n + 1.0); | |
const upper = (n, z) => Math.pow(-1, n) * Math.pow(z, 2.0 * n + 1.0); |
controller.postFrameEvent$.pipe(rxjs.operators.first()).subscribe(() => { | |
const img = gloperate.FrameCapture.capture(renderer._defaultFBO); | |
const data = gloperate.FrameCapture.createDataURL(img, 'image/png'); | |
console.log(data); | |
}) |
const benchmark = function() { | |
/* canvas.frameSize = [320, 240]; */ | |
canvas.controller.multiFrameNumber = 1; | |
renderer._camera.eye = [Math.sin(0), 1.0, Math.cos(0)]; | |
renderer._camera.center = [0.0, 0.0, 0.0]; | |
canvas.controller.update(true); | |
const rotations = 4; |
The following steps describe the prerequisites for the actual raspbee setup (deCONZ/phoscon and node-RED):
Flash (e.g., using Etcher) raspbian-buster-lite onto SD card (e.g., 16GB).
Create an empty ssh
file on the SD card's boot partition.
import os | |
import glob | |
import re | |
import exifread | |
import sys | |
import datetime | |
import pytz | |
from tzlocal import get_localzone | |
from time import sleep |
import argparse | |
import hashlib | |
import math | |
import numpy | |
import os | |
import sqlite3 | |
import sys | |
import locale | |
locale.setlocale(locale.LC_ALL, '') |
import argparse | |
import hashlib | |
import math | |
import os | |
import sqlite3 | |
import sys | |
import locale | |
locale.setlocale(locale.LC_ALL, '') |
The following steps describe the prerequisites for the actual firefly setup:
Flash (e.g., using Etcher) raspbian-buster-lite onto SD card (e.g., 16GB).
Create an empty ssh
file on the SD card's boot partition.
float r = fract(sin(dot(uv, vec2(12.9898,78.233))) * 43758.5453123); |