Skip to content

Instantly share code, notes, and snippets.

From: ftp://ftp.swpc.noaa.gov/pub/indices/events/README
January 28, 2011
EDITED SOLAR EVENTS LISTS
------------------------------------------------------------------
Jan 28, 2011 -- Edited Events lists from Jan 24 through 28 had bad
Radio and Flare date/times. The files have been corrected.
@greed9
greed9 / flares.awk
Last active August 27, 2023 01:06
Awk program to convert NOAA textual solar event files to CSV
# flares.awk
# Convert text file of solar data in the format here:
# https://services.swpc.noaa.gov/text/solar-geophysical-event-reports.txt
# to CSV
#
# see README for some info
BEGIN {
state=0 # init
}
@greed9
greed9 / flares.csv
Last active August 27, 2023 01:07
Example Solar Event CSV file
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 1 column, instead of 12 in line 4.
# From : solar-geophysical-event-reports.txt
# Use: wget https://services.swpc.noaa.gov/text/solar-geophysical-event-reports.txt
# Archived data is available as listed here:
# wget ftp://ftp.swpc.noaa.gov/pub/indices/events/
event,begin,begin_date_time,begin_epoch_time,Max,End,Obs,Q,Type,Loc/Frq,Particulars,Reg
4400,0000,2023-8-23-00-00-0,1692763200,0005,0022,LEA,3,FLA,N11W29,SF,
4400,0000,2023-8-23-00-00-0,1692763200,-1,0900,LEA,C,RSP,025-180,VI/2,
4400,0000,2023-8-23-00-00-0,1692763200,-1,0959,LEA,C,RSP,025-180,CTM/2,
4410,0120,2023-8-23-01-20-0,1692768000,0130,0138,G16,5,XRA,1-8A,C3.4, 2.9E-03
4420,0243,2023-8-23-02-43-0,1692772980,0243,0406,PAL,G,RNS,245,230,
16
14
17
9
16
14
19
14
7
21
// Turntable/sequencer to MIDI
// Tracks numbered zero-relative from the hub outwards
#define TRACK_3_PIN 51
#define TRACK_2_PIN 52
#define TRACK_1_PIN 49
#define TRACK_0_PIN 50
#define FLASH_PIN 4 // Flash LED strips when mark detected
#define INTERRUPT_PIN 48
@greed9
greed9 / parse_rtl433.awk
Created March 8, 2025 15:27
Read temperature (or other available measurement) from rtl433 output and display via cowsay command
# Read 433 Mhz telemetry and display selected value via cowsay
# use: rtl_433 -C customary -F json | awk -f parse_rtl433.awk
BEGIN {
# fields delimited by colon or comma
FS=":|,"
}
# if the ID matches and the maasusrement name matches, shell cowsay
{
# Fields to examine
@greed9
greed9 / sketch_tach_starter.ino
Last active May 20, 2025 16:59
Arduino Starter sketch for Tach
// Read and process hall effect sensor for use as tach
// See https://www.allelcoelec.com/blog/A3144-Hall-Effect-Sensor-Pinout,Alternatives,and-Applications.html for hookup
#define HALL_EFFECT_PIN 2
int sensor_value = 0 ; // output from hall sensor, low for detect
void setup() {
// put your setup code here, to run once
Serial.begin( 115200 ) ;
@greed9
greed9 / ArduinorReadPotStarter.uno
Created May 25, 2025 17:34
Starter Sketch for Flicker Fusion A/D project
/*
AnalogReadSerial
Reads an analog input on pin 0, prints the result to the Serial Monitor.
Graphical representation is available using Serial Plotter (Tools > Serial Plotter menu).
Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
This example code is in the public domain.
https://docs.arduino.cc/built-in-examples/basics/AnalogReadSerial/
@greed9
greed9 / sketch_test_display_starter.ino
Created June 2, 2025 23:24
Starter Sketch for Light Meter
/* Based on code Written by Limor Fried/Ladyada for Adafruit Industries,
with contributions from the open source community.
BSD license, check license.txt for more information
All text above, and the splash screen below must be
included in any redistribution.
**************************************************************************/
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
@greed9
greed9 / sketch_ir_sender.ino
Created June 16, 2025 15:11
Send characters via IR Remote protocol
/*
* TinySender.cpp
*
* Example for sending using TinyIR. By default sends simultaneously using all supported protocols
* To use a single protocol, simply delete or comment out all unneeded protocols in the main loop
* Program size is significantly reduced when using a single protocol
* For example, sending only 8 bit address and command NEC codes saves 780 bytes program memory and 26 bytes RAM compared to SimpleSender,
* which does the same, but uses the IRRemote library (and is therefore much more flexible).
*
*