// 1. Enter sheet name where data is to be written below
var SHEET_NAME = "Data";
// 2. Run > setup
//
// 3. Publish > Deploy as web app
// - enter Project Version name and click 'Save New Version'
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
#! /bin/bash -x | |
# | |
# environment variables affecting the build: | |
# | |
# keep_toolchain=y -- don't rebuild the toolchain, but rebuild everything else | |
# keep_rootfs=y -- don't reconfigure or rebuild rootfs from scratch. Would still apply overlay changes | |
# keep_buildroot=y -- don't redownload the buildroot, only git pull any updates into it | |
# keep_bootloader=y -- don't redownload the bootloader, only rebuild it | |
# keep_etc=y -- don't overwrite the /etc partition |
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
# This guide will show you how to configure ddclient to dynamically update your DNS at Cloudflare. | |
# This cookbook makes use of a number of online guides - all of which I will reference at the end. | |
# Cloudflare requires ddclient to be version 3.8.2 or you will get a 'cloudflare protocol didn't exist'. | |
# Unfortunately, the package manager at this time makes use of 3.8.1 | |
# My suggestion is to follow the semi-autonomous process, by downloading the out of date package | |
# and then manually update a few files. If you prefer, you can go down the fully manual route manual route. | |
# Installation - Manual (Not Tested: https://www.cloudflare.com/technical-resources/#ddclient) | |
# Installation - Semi-Autonomous (Recommended, follow below) |
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
# /etc/conf.d/rtc-i2c | |
# | |
# My chip is actually a ds3231n, but ds1307 driver works fine (ds3232 does not!) | |
# | |
CHIP="ds1307" | |
ADDRESS="0x68" | |
BUS="1" |
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
var mqtt = require('mqtt'); //https://www.npmjs.com/package/mqtt | |
var Topic = '#'; //subscribe to all topics | |
var Broker_URL = 'mqtt://192.168.1.123'; | |
var Database_URL = '192.168.1.123'; | |
var options = { | |
clientId: 'MyMQTT', | |
port: 1883, | |
//username: 'mqtt_user', | |
//password: 'mqtt_password', |
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
E.kickWatchdog(); | |
function KickWd(){ | |
if( (typeof(BTN1)=='undefined')||(!BTN1.read()) ) E.kickWatchdog(); | |
} | |
var wdint=setInterval(KickWd,2000); | |
E.enableWatchdog(15, false); | |
// MIT License (c) 2020 fanoush https://github.com/fanoush | |
// see full license text at https://choosealicense.com/licenses/mit/ | |
// SPI display driver below compiled with options LCD_BPP=12 |
We need to use so called Dynamic DNS (DDNS) to create and dynamically update a mapping between a chosen domain name and an “external” IP address of our Raspberry Pi (i.e. router IP address).
- Look for a DDNS provider.
- Register a new user account.
- Choose a desire domain name.
- Configure it on router.
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
#!/bin/bash | |
# Note: | |
# I have not actually tested this installing into the | |
# chia-blockchain `install.sh` venv as I did not use it | |
# when I installed chia. I have only tested it in a | |
# test venv. YMMV! | |
if [ $# -eq 0 ] | |
then |
I hereby claim:
- I am asupawat on github.
- I am xnoom (https://keybase.io/xnoom) on keybase.
- I have a public key ASACXupGcX1ZOo6NoG3ddzzo0NxCx9aoSVyFXzoXZvOWMQo
To claim this, I am signing this object:
Tested with 2 Arducam "UC-599" and 2 Inno-maker "cam-mipiov9281"
Credits to 6by9 on the raspberrypi forums.
- Connect the jumpers on the J6
- Download the *.dtbo file to /boot/overlays/
- Add the line to
/boot/config.txt
:
NewerOlder