[mythtv-users] Leanfront and events

mythtv mythtv at mdabbs.org
Wed Nov 17 00:20:44 UTC 2021


On 11/16/21 11:13 AM, Peter Bennett wrote:
> 
> On 11/15/21 3:34 PM, mythtv wrote:
>> I haven't used leanfront for a while but if I remember, I don't 
>> remember seeing anything about generating events when certain things 
>> happen, like playing a video, pausing a video, etc.
>>
>> Does it do these things at all?  If not, can it?
>>
>> What I'm hoping to set up is a way to connect it to my home automation 
>> and dim and brighten the lights when a movie is started, and when it 
>> is paused and resumed. If it did nothing else but launch a shell 
>> script, that would be sufficient for me. I can write and should be 
>> able to place the shell scripts in a shared location if leanfront 
>> could just execute them.
>>
> There is nothing in leanfront to generate events. I do not know an easy 
> way to run shell scripts from an Android device. I am trying to think of 
> the best way to do this. Android could send an http message to your web 
> server, or you could run nc -l on a port and android could then send 
> messages to the port. Your script would listen on the port and process 
> the messages received.
> 
> I was looking into ways to invoke home automation from Linux, primarily 
> to power things off and on but I could not find a solution. What method 
> do you use for this? I purchased some Kasa smart outlets but it seems 
> they can only be operated from an Android app.
> 
> Peter
> 
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org

I use OpenHAB. It has "bindings" for all sorts of different hardware, 
including your Kasa/TP-Link outlets.  I have several lights, plugs and 
light switches, but it also does TVs, Receivers, HVAC, etc.  It's open 
source and I've written several custom bindings, even one to monitor 
some crypto mining rigs.

For Leanfront, yea, something that could maybe do a POST to a webserver 
would be useful.  Maybe do a post to a URL and the payload could contain 
the info about what is playing, or paused, etc.



More information about the mythtv-users mailing list