This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| // assumes you add a timestamp field to each record (see Firebase.ServerValue.TIMESTAMP) | |
| // pros: fast and done server-side (less bandwidth, faster response), simple | |
| // cons: a few bytes on each record for the timestamp | |
| var ref = new Firebase(...); | |
| ref.orderByChild('timestamp').startAt(Date.now()).on('child_added', function(snapshot) { | |
| console.log('new record', snap.key()); | |
| }); |
| using System; | |
| using System.IO.Ports; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| namespace AwesomeSerialDeviceWrapper | |
| { | |
| public class SerialDevice : IDisposable | |
| { | |
| private long m_timeSinceLastEvent; |
| using System.IO.Ports; | |
| namespace AsyncExtensions { | |
| public static class SerialPortExtensions | |
| { | |
| /// <summary> | |
| /// Read a line from the SerialPort asynchronously | |
| /// </summary> | |
| /// <param name="serialPort">The port to read data from</param> | |
| /// <returns>A line read from the input</returns> |
layout: page title: "Azure IoT" description: "Offers support for Azure IoT integration with Homeassistant." date: 2017-10-22 14:18 sidebar: true comments: false sharing: true footer: true logo: home-assistant.png
Download OpenOCD.
Place the folder in ~/openocd - so that the scripts is directly under ~/openocd/scripts.
Add it to your PATH via:
ln -s ~/openocd/bin/openocd /usr/local/bin/openocd
Make sure no applications are bound to port 3333.
Place launch.json and tasks.json in your .vscode folder.
Note: Set the right path in debugServerArgs.
| /* | |
| Sketch for ESP8266 testing the issue 13, namely multiple tcp server connections | |
| https://github.com/JiriBilek/WiFiSpi/issues/13 | |
| */ | |
| #include <ESP8266WiFi.h> | |
| const char* ssid = "****"; | |
| const char* password = "****"; |
| #!/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 |
| sudo -i | |
| apt-get install software-properties-common | |
| add-apt-repository universe | |
| apt-get update | |
| apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat | |
| #The jetson already has docker installed | |
| #curl -fsSL get.docker.com | sh | |
| curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s -- -m qemuarm-64 |
| --- | |
| esphome: | |
| name: doorbell | |
| platform: ESP8266 | |
| board: esp01_1m | |
| # WiFi connection, correct these | |
| # with values for your WiFi. | |
| wifi: | |
| ssid: !secret wifi_ssid |