You can only promote a plugin top menu to Home menu. Click and HOLD the "RemoteControl" menu and you should get a popup with an option to add to Home menu.
Results 21 to 30 of 32
-
2019-01-27, 12:48 #21
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 20,137
-
2019-01-28, 05:49 #22
- Join Date
- Oct 2018
- Posts
- 11
Okay, I did that. Thank you for this! It's really great.
But I have another idea: could the "Stereo On" and "Stereo Off" commands be made as separate plugins. That way they could both be on the Home menu. I'm not sure that I would know how to do this--any chance you would be willing to make those two plugins?
-
2019-01-28, 06:11 #23
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 20,137
Short answer - No.
Firstly because I'm not sure it is possible to make an active plugin menu at top level, so it would take time to test and figure it out - even then it may fail - so time wasted
I only did the initial plugin because it coincided with other stuff I was doing on wifi plugs.
Is two presses really so hard ?
-
2019-01-28, 13:26 #24
- Join Date
- May 2017
- Posts
- 692
SqueezeBoxes: 1x Transporter (Living room) 1x SB2 (shed), 1x Radio (Kitchen), 1x Boom (Dining room), 1x piCorePlayer (jacuzzi), 1x piCorePlayer (Garden) 1x OSMC + Squeezelite (Movie room), 1x Touch (Study 2), few spare unit's
Server: LMS on Pi3 7.9.1. on PcP 3.21
Network: AVM Fritzbox, Netgear Smart Switch 24p, 3x Ubiquity
-
2019-01-28, 15:00 #25
-
2020-12-31, 08:27 #26
- Join Date
- Feb 2013
- Posts
- 176
BPA, in my quest to interconnect various systems in my house, I believe your plugin may come in handy.
I am looking at adding menu entries in the touch-screen (more specifically one picoreplayer with jivelite) to send commands to my home automation system (I use home assistant)
More specifically, the player lays near the door in a multifunction room and I'd like to be able to tell the system how to setup the room.
Is your plugin flexible enough to send http commands upon pressing a menu entry, without stopping playback (not expecting to play something in return like we'd do with a favourite)?
Can this http command be customized?
Thanks a lot. I'll be looking at experimenting with it in the upcoming days.
-
2020-12-31, 08:43 #27
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 20,137
The plugin is generic but it is just a proof of concept.
It is designed to send a HTTP message and if necessary get a reply asynchronously (i.e. a routine is executed when reply is received - the code does not wait for reply). It may be possible to display the reply as a text in the next level of menu (e.g. Success, Temperature 24C))
If you have an example message body (which may be text, binary, XML not just JSON) and reply - I can probably modify it quickly - which you can thenuse as a template.
-
2020-12-31, 08:54 #28
- Join Date
- Feb 2013
- Posts
- 176
That would be awesome. Thanks.
I'll come up with a functional call to HA and post here.
I need to experiment with how to call HA externally first, but I am pretty sure it will turn out to be a pure http call like you'd be able to manually enter in the address bar of the browser, trigerring an action server side and answering textually.
I don't really look for an answer, but would be willing to experiment with it.
If built flexible enough, this could become a powerful tool in lms arsenal.
-
2020-12-31, 10:10 #29
- Join Date
- Feb 2013
- Posts
- 176
I currently have it setup with a way to send in HTTP commands in this form
http://192.168.0.xx:1880/endpoint/nameOfTrigger
loading this will currently return an ampty list message
"{}"
If required I could manage to output something more meaningful.
Essentially, the plugin would neeto to be configurable to just send off to one address per menu entry, and not stop the player. From this LMS cound control anything in Home Assistant (if configured to do so)
let me know if this is possible, and if there's anything I need to configure or test on my end.
Thanks a lot.
-
2020-12-31, 10:16 #30
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 20,137
Need to be clearer.
What is the part of the message that is standard - doesn't change
What is the variable part of the message which will provided by parameters of save a menu (i.e.f desatination address, port number, other parameters)
What is the HTTP operation e.g. GET, POST
Is there a reply always a reply ? How should reply be handled e.g. status codes 2xx vs 4xx vs 5xx