(29-Oct-2020, 04:15 PM)agent_kith Wrote:really appreciate your help AK.(29-Oct-2020, 03:53 PM)davem Wrote: audio driver for xmitting - https://www.lirc.org/html/audio.htmlCan you try run this and see what happens?
Code:sudo lircd -d ALSA:default@48000
What phone are you using? My android phones don't have a IR filter, so am unaware of any phone with this built in.. Must be a high end phone?
(29-Oct-2020, 03:53 PM)davem Wrote: Thanks for the tip re irw. I *thought* that I saw reference to it in posts that I found for blasting. The description says that 'irw will connect to any Unix domain socket and print the received data to stdout.' and I understood that you still needed to connect to a socket to blast ?? anyway, like I said earlier, I have limited linux.Do you mean this?
Quote:It takes some time to set up (50 ms or so) so when no clients are connected to lircd the first transmission will have some higher latency.If I'm reading this correctly it just means always keep the lirc connection alive.. So when you're ready to transmit, lircd is always read to transmit... Otherwise, the first transmission will take 50ms, but the later commands will be quicker...
A workaround for this is to keep irw running with a bash script like this:
#!/bin/sh
while [ true ]; do
irw || true
sleep 1
done
I did a quick research, home assistant does have logitech squeezebox support.. But it tracks volume numerically (from 0.0 to 1.0), so it doesn't track VOL_UP or VOL_DOWN events.. If only, using HA will simplify everything for you (and it can do way more).
I will test with that tomorrow some time. I am pretty sure that I tried that before but that would probably have been before I realised that you need a *valid* blasting remote config to work... so far I have had best success in the lirc config defining the device as ALSA:HDA Intel PCH: ALC283 Analog (hw:0,0) and driver as 'audio'
I am a bit of a squeezebox shop here. Running LMS with a few SB's and squeezelite on this snakeoil. Up until relatively recently, I was using a SB3 with the IRblaster plugin. I use iPeng (over wifi in case you are not familiar) for remote control of each SB/sqeezelite which gives full control + the ability to adjust the volume and coupled with the IRBlaster LMS plugin, changes in vol are blasted to my amp. There is no IR on the phone and this is what I am trying to replicate here.
My plan is to a) get lirc blasting working. Then, b) I have found https://github.com/mundschenk-at/squeeze...s/tag/v0.2 - this is a daemon that allows you to specify scripts to run on LMS events. ie power on/off, vol up/down. Theory is to define in this daemon to run irsend xyz whenever it sees a volUp request/event. Not too complex on the surface but....
This *should* replicate the functionality I had with the SB3 - adjust volume on iPeng (or web i/f) and the dial on the amp automagically turns. btw - my SB3 still works but the caps are gone so it crashes every 5-10 mins, otherwise I would still be using it.