We have moved! This forum is now read only. (June 03)

New community website: https://community.snakeoil-os.net (June 03)

Join us in the new community by Creating a new account. (June 04)


IR blaster functionality
#17
(29-Oct-2020, 04:15 PM)agent_kith Wrote:
(29-Oct-2020, 03:53 PM)davem Wrote: audio driver for xmitting - https://www.lirc.org/html/audio.html
Can 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? $ tongue
(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.

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
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...

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).
really appreciate your help AK.
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.
Reply


Messages In This Thread
IR blaster functionality - by davem - 12-Oct-2020, 06:23 PM
RE: IR blaster functionality - by agent_kith - 14-Oct-2020, 08:07 AM
RE: IR blaster functionality - by davem - 14-Oct-2020, 10:49 AM
RE: IR blaster functionality - by davem - 23-Oct-2020, 08:36 AM
RE: IR blaster functionality - by agent_kith - 23-Oct-2020, 10:13 AM
RE: IR blaster functionality - by davem - 23-Oct-2020, 12:08 PM
RE: IR blaster functionality - by agent_kith - 23-Oct-2020, 12:11 PM
RE: IR blaster functionality - by davem - 23-Oct-2020, 12:49 PM
RE: IR blaster functionality - by agent_kith - 23-Oct-2020, 01:08 PM
RE: IR blaster functionality - by davem - 24-Oct-2020, 02:34 PM
RE: IR blaster functionality - by Bromf - 24-Oct-2020, 04:40 PM
RE: IR blaster functionality - by davem - 26-Oct-2020, 07:00 AM
RE: IR blaster functionality - by davem - 29-Oct-2020, 07:42 AM
RE: IR blaster functionality - by agent_kith - 29-Oct-2020, 01:12 PM
RE: IR blaster functionality - by davem - 29-Oct-2020, 03:53 PM
RE: IR blaster functionality - by agent_kith - 29-Oct-2020, 04:15 PM
RE: IR blaster functionality - by davem - 29-Oct-2020, 05:35 PM
RE: IR blaster functionality - by davem - 30-Oct-2020, 06:17 AM
RE: IR blaster functionality - by agent_kith - 30-Oct-2020, 08:19 AM
RE: IR blaster functionality - by davem - 30-Oct-2020, 02:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  New setup, query about output and adding functionality shaitan667 4 3,082 26-Jan-2020, 12:49 PM
Last Post: Bromf



Users browsing this thread: 1 Guest(s)
[-]
Our Sponsors
{myadvertisements[zone_4]}

[-]
Latest Threads
Android Firefox issues with forum
Last Post: agent_kith
10-Jun-2025 04:45 PM
» Replies: 21
» Views: 2179
[split] Possible To Load Snakeoil OS in ...
Last Post: Snoopy8
09-Jun-2025 06:43 AM
» Replies: 14
» Views: 1621
Snakeoil 1.4.3 (High End U3)
Last Post: hkphantomgtr
05-Jun-2025 03:58 PM
» Replies: 67
» Views: 9266
Snakeoil with Ubuntu Desktop ?
Last Post: Snoopy8
02-Jun-2025 09:38 AM
» Replies: 8
» Views: 923
Add IR remote control using Flirc USB in...
Last Post: Snoopy8
31-May-2025 03:50 PM
» Replies: 5
» Views: 681
Work In Progress: 1.4.4
Last Post: hkphantomgtr
29-May-2025 11:44 PM
» Replies: 44
» Views: 5084
SQ difference - Raspberry Pi vs x86_64?
Last Post: Snoopy8
27-May-2025 02:16 PM
» Replies: 42
» Views: 5642
Snakeoil 1.4.0 (High End)
Last Post: aabman
25-May-2025 11:35 AM
» Replies: 93
» Views: 15273
new install issues
Last Post: carlodim
23-May-2025 09:56 AM
» Replies: 42
» Views: 4653
Is this project still alive?
Last Post: agent_kith
20-May-2025 03:11 PM
» Replies: 10
» Views: 1251

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.