Skip to content

Instantly share code, notes, and snippets.

@hsiboy
hsiboy / Majority_KINGS_DAB_Internet_Radio_notes.md
Last active February 1, 2024 21:27
Majority KINGS DAB+ Internet Radio - notes

Majority Kings Internet DAB+ Radio - Notes

A collection of notes on the inner workings of the majority kings radio.

Features

Media:

@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
body{
background:#fff;
font-family: "Press Start 2P", cursive;
}
div#container{
background:#EEE;
font-family: "Press Start 2P", cursive;
font-color: FFF;
@hsiboy
hsiboy / Yamaha_SPX900-Repair_Notes.txt
Last active December 7, 2023 20:14
Yamaha SPX 900 - Repair Notes
Yamaha SPx900 – repair log
-- FAULT --
Noted fault, "BATTERY LOW" warning on switch on, not passing audio.
Inspection revealed that a new battery was in place (reading 3.1v) and at some point, the 4 electrolytic capacitors on the PSU board had been replaced as well as the reservoir capacitor C163 across the 5v rail on the main board.
The display was very faint, and the LED backlight very dim. The display was original.
@hsiboy
hsiboy / Yamaha_spx90.txt
Last active May 22, 2020 10:59
Yamaha SPX90 Repair notes.
a "repair " note for a failed to repair one. I even worked out the schematic
but could not find the reason for the slightly linear ps characteristic, not
full switching, and then thermal runaway. Even tried rewinding the secondary
of a generic smps toroid and could get it reliably working but only with a
fan. There was some shorted turns in the original, presumably due to excess
@hsiboy
hsiboy / navtex.ino
Created October 8, 2019 22:13
Simple Navtex receiver - https://youtu.be/SwL_ZQ_iBIM
/*
* Simple Navtex receiver - https://youtu.be/SwL_ZQ_iBIM
*
* by Martin Kuettner <berry@fmode.de> 03/2016
*
*
* Porting the 80C51 Assembler Program from "A NAVTEX Receiver for the DXer":
*
* Klaus Betke, Am Entengrund 7, D-26160 Bad Zwischenahn, Email: betke@itap.de
* 11-AUG-00/01-OCT-00
@hsiboy
hsiboy / flows_navtex.json
Created October 3, 2019 22:00
node-red flow for parsing Nasa Marine Navtex
[{"id":"223620c.0f47ce","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"2c814316.d50d3c","type":"serial-port","z":"","serialport":"/dev/ttyUSB0","serialbaud":"38400","databits":"8","parity":"none","stopbits":"1","newline":"<","bin":"false","out":"char","addchar":false,"responsetimeout":""},{"id":"54bad1ae.f71f7","type":"ui_tab","z":"223620c.0f47ce","name":"Navtex ","icon":"dashboard","order":4},{"id":"414b2950.f5ad28","type":"ui_group","z":"223620c.0f47ce","name":"Messages","tab":"54bad1ae.f71f7","disp":true,"width":"12","collapse":false},{"id":"ab226441.158398","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"re
My Apple devices started stating "incorrect password" for my network, even though they had conncted previously.
So how to fix Unifi network "incorrect password" error on iPhone, iPod, iPad and Macbook pro?
The reason for the error is the WiFi management done on iOS devices.
The default settings for the Unifi AP range are not compatible with iOS 11 and 12 and OSX High Sierra (and maybe more).
The reason for the error is the "DTIM Mode" (beacon timing) setting for power saving.
@hsiboy
hsiboy / xeyes.sh
Created April 24, 2019 14:42
run eyes within docker and display on X11 host.
#run eyes within docker and display on X11 host.
docker run --rm -e DISPLAY=host.docker.internal:0.0 -it gns3/xeyes
# define our method
def replace_all(text, dic):
for i, j in dic.iteritems():
text = text.replace(i, j)
return text
navtex = 'navtex string here'
# our dictionary with our key:values.
dic = {'BACK':'Backing','KMH':'Km/h','QUAD':'Quadrant','BECMG':'Becoming','KT':'Knots','RPDY':'Rapidly','BLDN':'Building','LAT/LONG':'Latitude/Longitude','SCT':'Scattered','C-FRONT':'Cold front','LOC':'Locally','SEV':'Severe','SVR':'Severe','DECR':'Decreasing','M':'Metres','SHWRS':'Showeres','SH':'showers','DPN':'Deepening','MET':'Meteo','SIG':'Significant','EXP':'Expected,''MOD':'Moderate','SLGT':'slight','SLT':'Slight','FCST':'Forecsat','MOV':'moving/move','MVG':'Moving/Move','SLWY':'Slowly','FLN':'Filling','NC':'No change','STNR':'Stationary','FLW':'Following','NM':'Nautical miles','STRG':'Strong','FM':'From','NOSIG':'No significant change','TEMPO':'Temporarily/Temporary','FRQ':'Frequent/frequency','NXT':'Next','TEND':'Further Outlooks','HPA':'HectoPascal','OCNL':'Ocasionally','VEER':'Veering','HVY':'Heavy'
@hsiboy
hsiboy / radio4.sh
Created September 7, 2018 13:37
Record Radio4 FM from Winter Hill. to record Shipping Forecast.
#!/bin/bash
# Record radio4 FM from Winter Hill.
# To be triggered by cron to record Shipping Forecast.
# "timeout" will send a SIGTERM to rtl_fm to abort the recording after 5 mins.
# Afterwards the wav file is converted to 11025 sample rate using sox.
# "touch" will transfer the original timestamp to the new file
# the original rtl_fm wav-file is deleted.
timeout -s SIGTERM 300s rtl_fm -M wbfm -f 93M -s 60k -g 20 -E wav -F 0 radio4fm.wav