This file contains hidden or 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
#include "esphome.h" | |
using namespace esphome; | |
class IFan02Output : public Component, public FloatOutput { | |
public: | |
void write_state(float state) override { | |
if (state < 0.3) { | |
// OFF | |
digitalWrite(5, LOW); | |
digitalWrite(4, LOW); |
This file contains hidden or 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
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
This file contains hidden or 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
opkg install luci-lib-json luci rng-tools usbutils avrdude avahi-daemon | |
# If rng-tools is not installable, then install it by hand from e.g., http://download.linino.org/linino_distro/linino_dev/latest/packages/rng-tools_3-2_ar71xx.ipk | |
# Edit your /etc/opkg.conf, add | |
src/gz barrier_breaker http://download.linino.org/dogstick/all-in-one/latest/packages/ | |
# Comment out your earlier src/gz | |
opkg update | |
opkg list|grep bridge |
This file contains hidden or 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
#! /usr/bin/env python | |
# Read the output of an Arduino which may be printing sensor output, | |
# and at the same time, monitor the user's input and send it to the Arduino. | |
# See also | |
# http://www.arcfn.com/2009/06/arduino-sheevaplug-cool-hardware.html | |
import sys, serial, select | |
class Arduino() : |
This file contains hidden or 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
http://www.xn--brwolff-5wa.de/tech-notes/synology-diskstation-howto-set-locale.txt | |
I've been using a Synology Diskstation DS209j to backup data via rsync. However, the locale on my laptop (the source of the backups) is de_DE.utf8, and on the Diskstation no such locale (in fact, no utf-8 locale at all) is available by default. This becomes a problem as soon as you're dealing with file names containing "non-standard" characters such as German umlauts. Here's what I did to remedy the problem, largely based on a very useful howto at <http://forum.synology.com/wiki/index.php/CrashPlan_Headless_Client>: | |
log in to the Diskstation as root | |
cd /volume1/@tmp | |
uname -a # in order to find out what system you're at, and which tool chain to download from http://sourceforge.net/projects/dsgpl/files/; mine was <http://sourceforge.net/projects/dsgpl/files/DSM%203.2%20Tool%20Chains/Marvell%2088F628x%20Linux%202.6.32/gcc421_glibc25_88f6281-GPL.tgz/download> | |
wget $the_url_found_in the_previous_step | |
tar -xzvf $the_file_thus_down |
This file contains hidden or 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
// | |
// ARC Helper | |
// | |
// Version 2.2 | |
// | |
// Created by Nick Lockwood on 05/01/2012. | |
// Copyright 2012 Charcoal Design | |
// | |
// Distributed under the permissive zlib license | |
// Get the latest version from here: |