Skip to content

Instantly share code, notes, and snippets.

View miawgogo's full-sized avatar
🐧
Processing Gender, Please Wait

Ceri Loosley miawgogo

🐧
Processing Gender, Please Wait
View GitHub Profile
@miawgogo
miawgogo / rules.md
Last active July 23, 2020 13:37
Rules and guidelines for the JB unoffical Matrix Room

RULES and stuff

Rules

  • No Drama, Civil disccustion of drama is ok, but flamewars is not allowed.
  • No Polarising politics, well researched debate and comedy is allowed. This boils down to the rule above, No Flamewars
  • Just respect each other and dont be a jerk
  • No NSFW Images due to the fact that matrix shows all images inline at full size. Links must be marked

As per the unspoken JB IRC Rule, the mods will also make it up as they go along if they want, Really it doesnt matter, its just to prevent arguments

@miawgogo
miawgogo / Alarm.sh
Last active March 9, 2017 23:45
A script allow a fading in alarm for mpd
#!/bin/bash
server="192.168.1.66"
vol=30
targetvol=100
dovol(){
until [ $vol = $targetvol ]; do
mpc -q -h $server volume $x
sleep 0.5
((x++))
done
#audio_output {
# type "pulse"
# name "Main"
# server "localhost" # optional
# sink "localhost" # optional
#}
@miawgogo
miawgogo / stream problem.md
Last active February 9, 2017 13:40
Problem: MPD hangs after stoping and clearing the playlist after playing a http stream
client: [31] process command "password """
client: [31] command returned 2
client: [31] process command "status"
client: [31] command returned 0
client: [31] process command "stats"
client: [31] command returned 0
client: [31] process command "currentsong"
client: [31] command returned 0
client: [31] process command "status"
# Files and directories #######################################################
#
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database. This
# setting defaults to the XDG directory, otherwise the music directory will be
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.
#
music_directory "smb://192.168.1.11/Mediadrive/Media Files/Mp3"
#

Problem: The connection to alsa fails when playing any jupiter broadcasting audio file, ogg or non ogg, this only happens when playing audio to the pi-dac+ over its I2S intiface but not when using the usb dac i have. Other files play fine

MPD config

Log part that i am intrested in when playing the JB ogg:

client: [0] command returned 1
client: [0] process command "pause "0""
alsa_output: opened default:CARD=IQaudIODAC type=PLUG
int meter = 11; // blue LED in Digital Pin 9 (PWM)
int old = 0;
void setup(){
Serial.begin(9600);
pinMode(meter,OUTPUT); // tell arduino it's an output
// test and set all the outputs to low
digitalWrite(meter,LOW);
}
void loop(){
Traceback (most recent call last):
File "openlp\core\lib\mediamanageritem.py", line 462, in on_double_clicked
File "openlp\core\lib\mediamanageritem.py", line 484, in on_preview_click
File "openlp\core\lib\mediamanageritem.py", line 618, in build_service_item
File "openlp\plugins\songs\lib\mediaitem.py", line 469, in generate_slide_data
File "openlp\plugins\songs\lib\openlyricsxml.py", line 272, in song_to_xml
AttributeError: 'NoneType' object has no attribute 'name'
Elsa
Do you want to be a coder?
Come on lets go and code
I never see your commit anymore
Come out the door
It's like you've have no coffee...
We used to have good streeks
But now we dont
I wish you would tell me why!