Code is available here https://github.com/SamSamskies/wavlake-scripts nostr:note1aueu6vlg4h7y2ezkaps0e2g22le50k53xqjwf34vtjscuymj03csyw94rt