#hazzy Logs

Apr 09 2020

#hazzy Calendar

05:01 AM jthornton: morning
05:24 AM TurBoss: morning
05:31 AM jthornton: I'm still frustrated with trying to play a mp3 file for my chickens :(
05:32 AM jthornton: VLC plays fine I wonder what's broken with qt
05:36 AM TurBoss: for me only plays thru hdmi :(
05:36 AM TurBoss: no way to set the jack
05:45 AM jthornton: you can right click on the speaker icon and select the output device but that still fails to work
05:46 AM TurBoss: yes that happends
06:02 AM TurBoss: do you need GUI at all?
06:02 AM TurBoss: there is https://www.musicpd.org/
06:03 AM jthornton: yes, I have a touch screen where I can control different things
06:03 AM jthornton: I can turn on the lights or open/close the door etc
06:04 AM TurBoss1: oh cool
06:05 AM jthornton: it also displays sun information and other stuff
06:12 AM TurBoss: has the hdmi display audo jack?
06:12 AM TurBoss: :P
06:12 AM jthornton: I'll have to look
06:26 AM jthornton: it's not a hdmi display it's this one https://www.amazon.com/gp/product/B0153R2A9I
06:26 AM jthornton: https://www.amazon.com/gp/product/B01HV97F64
06:26 AM jthornton: in that case
06:39 AM TurBoss: I can only find some c++ magick
06:39 AM TurBoss: https://stackoverflow.com/questions/28408590/qt5-how-to-set-default-audio-device-for-qmediaplayer
06:40 AM jthornton: hmmm
07:03 AM jthornton: hmm this works
07:03 AM jthornton: #!/usr/bin/python3
07:03 AM jthornton: import pygame
07:03 AM jthornton: pygame.mixer.init()
07:03 AM jthornton: pygame.mixer.music.load("/home/john/Music/Aqualung.mp3")
07:03 AM jthornton: pygame.mixer.music.play()
07:03 AM jthornton: while pygame.mixer.music.get_busy() == True:
07:03 AM jthornton: continue
07:12 AM jthornton: my conclusion is qmediaplayer is just plain broken
07:17 AM TurBoss: yes
07:17 AM TurBoss: xD
07:37 AM jthornton: this will play forever randomly https://paste.ubuntu.com/p/cKGH3Rq2C5/
07:55 AM hazzy-m: jthornton: I think you might should add a sleep in that while loop ...
07:57 AM TurBoss: hello hazzy
07:59 AM jthornton: hazzy-m, why?
08:00 AM hazzy-m: because if I'm looking at it right that loop is going to be running as fast as the CPU can run it
08:00 AM hazzy-m: so it will drive your CPU usage way up
08:02 AM TurBoss1: sleep(1) will do
08:04 AM hazzy-m: TurBoss: hey!
08:05 AM hazzy-m: is it getting any better on Spain?
08:05 AM hazzy-m: * is it getting any better in Spain?
08:06 AM TurBoss1: they want to extend the quarantine 15 days more
08:06 AM TurBoss1: but the oposition refuses
08:06 AM TurBoss1: they want the money
08:06 AM TurBoss1: appart from that
08:07 AM TurBoss1: dead cases lowered from max 1000 days ago to 700/600 cases
08:08 AM hazzy-m: good, so the curve is going down!
08:08 AM TurBoss1: deads a day
08:12 AM jthornton: hazzy-m, and your absolutely correct
08:14 AM jthornton: it was just a test anyway the real code will be in self.run updateTimer.timeout.connect(self.run) updateTimer.start(1000)
08:15 AM TurBoss: once used random choice to choose supper
08:15 AM TurBoss: :P
08:16 AM jthornton: now that's what we need... it's always what do you want for dinner? dunno, what do you want
08:17 AM TurBoss1: lol what?
08:17 AM jthornton: have the pc pick dinner out for us
08:18 AM jthornton: https://paste.ubuntu.com/p/PgwFxxpqxY/ cpu went from 100% to 6%
08:18 AM TurBoss1: xD
08:32 AM hazzy-m: haha, nice!
08:32 AM hazzy-m: the timer is the best solution!
09:04 AM JT-Shop: FINALLY Coop Deux has music...
09:04 AM * JT-Shop goes for a ride in the woods
09:08 AM roguish[m]: good morning all.
09:09 AM roguish[m]: JT-Shop: what ya playing for the chicks? Bach or Bon Jovi?
09:15 AM JT-Shop: neither one lol, I'm a veteran cosmic rocker
09:23 AM roguish[m]: whaaaaat?
09:25 AM TurBoss1: ACID!!!!
09:26 AM roguish[m]: Iron Maiden
09:27 AM roguish[m]: or Enya.....
09:28 AM TurBoss1: Ceephax!
09:28 AM * JT[m] uploaded an image: VectorImage_2020-04-09_092806.jpg (7539KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/bwgOfNosYddcOTZAxCCxJNSN >
09:30 AM JT[m]: Ozzie
11:31 AM JT[m]: 10 walkers, 2 squirrels, 1 dog, 1 black snake and 1 box turtle with a racing stripe
02:55 PM Not-8b5f: [02probe_basic] 07perobot forked the repository - 13https://git.io/Jvpu0
08:47 PM hazzy-m: mazdarick: hello
08:47 PM hazzy-m: mazdarick: do you have a mazda??
11:55 PM MrHindsight is now known as CaptHindsight