Skip to content

Instantly share code, notes, and snippets.

void aqiStats::calculatenowCast()
{
// nowCast Calculation, step 1: https://forum.airnowtech.org/t/the-nowcast-for-pm2-5-and-pm10/172
float twelveHourRangePM25{0.0};
float twelveHourRangePM10{0.0};
twelveHourRangePM25 = twelveHourMaxPM25 - twelveHourMinPM25;
twelveHourRangePM10 = twelveHourMaxPM10 - twelveHourMinPM10;
#ifdef DEBUG
if ( outputLVL == 3 && Serial )
{
const int lightPin = 2; //PIN light sensor sensor is connected to. Pulls LOW with light
const int ledPin = 3; //PIN LED is connected to
const int pirPin = 4; //PIN PIR sensor is connected to
volatile unsigned long lastOnTime; //Record the time lights turned on
int long onDuration = 120000; //Time in millis to leave light on
int maxBrightness = 225; //Max Brightness of LEDs (used for battery preservation)
int fadeValue = 0; //Increments used for fading
void setup()
{
#include <TH02_dev.h>
#include "Arduino.h"
#include "Wire.h"
const int TIP120pin = 5; //base pin of TIP120 transistor
const int ButtonPWR = 6; //provide 5v to button circuit
const int inPin = 7; //read button circuit status
int BUTTONVAL = 0; //store button circuit status as value
int DRYMODE=0; //determine monitor or dry mode (fan on or off)

Keybase proof

I hereby claim:

  • I am oilslick on github.
  • I am michaelwright (https://keybase.io/michaelwright) on keybase.
  • I have a public key whose fingerprint is 3B21 775B 4A6C F026 C03A 7B2F C4A2 FD1F 3920 83BF

To claim this, I am signing this object:

#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@OilSlick
OilSlick / pingers.txt
Last active August 29, 2015 13:56
Bash shell script for updating keyrings and reliability statistics for Mixmaster client on OS X
http://anonusa.net/echolot/
http://pinger.mixmin.net
http://www.tahina.priv.at/~cm/stats/
http://www.hermetix.org/echolot/
http://www.deuxpi.ca/echolot/
http://www.eurovibes.org/echolot/
http://echolot.theremailer.net/
http://pinger.mixmin.net/
http://www.noreply.org/echolot/
http://senshiweb.webhop.net/