• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

nriley/homebridge-mysqueezebox: Homebridge plugin for sending commands through M ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

nriley/homebridge-mysqueezebox

开源软件地址:

https://github.com/nriley/homebridge-mysqueezebox

开源编程语言:

JavaScript 100.0%

开源软件介绍:

homebridge-mysqueezebox

Homebridge plugin for sending commands to your Squeezebox or compatible through MySqueezebox or Logitech Media Server.

This plugin exposes a Squeezebox as one or more HomeKit accessories which look like dimmable lightbulbs. The way I use it, turning on a “light” starts something playing with an oncommand, and by default turning the "light" off will turn off the Squeezebox, though you can specify a different offcommand if you wish. With Siri, it's relatively natural to say “Turn on thing I want to listen to”, and you can easily incorporate the Squeezebox in HomeKit scenes, for example if you want music to wake up/go to sleep by. Adjust the lightbulb's brightness to control the Squeezebox’s playback volume.

As of version 0.0.3, you can either control your player via MySqueezebox (specify an email and password) or a local Logitech Media Server (specify a serverurl, embedding your username and password if you have one). playerid is the MAC address of your Squeezebox, which you can find in the Player > General section of MySqueezebox, or Settings > Information on Logitech Media Server.

Note that I no longer have a functional Squeezebox so I no longer use or maintain this software.

Sample usage

Here are some anonymized snippets from my Homebridge config.json:

MySqueezebox

    "accessories": [
        {
            "accessory": "MySqueezebox",
            "name": "Bedroom Line In",
            "playerid": "PLAYERID",
            "oncommand": ["setlinein", "linein"],
            "email": "EMAIL",
            "password": "PASSWORD"
        },
        {
            "accessory": "MySqueezebox",
            "name": "Bedroom Radio Paradise",
            "playerid": "PLAYERID",
            "oncommand": ["playlist","play","http://stream-dc1.radioparadise.com/mp3-192","Radio Paradise"],
            "email": "EMAIL",
            "password": "PASSWORD"
        },

Logitech Media Server

    "accessories": [
        {
            "accessory": "MySqueezebox",
            "name": "Bedroom Line In",
            "playerid": "PLAYERID",
            "oncommand": ["setlinein", "linein"],
            "serverurl": "http://USERNAME:PASSWORD@LMSHOST:LMSPORT"
        },
        {
            "accessory": "MySqueezebox",
            "name": "Bedroom Radio Paradise",
            "playerid": "PLAYERID",
            "oncommand": ["playlist","play","http://stream-dc1.radioparadise.com/mp3-192","Radio Paradise"],
            "serverurl": "http://USERNAME:PASSWORD@LMSHOST:LMSPORT"
        },

If you're trying to figure out what to include for an oncommand, the JSON RPC interface used by this plugin is quite similar to the Logitech Media Server command-line interface; this is a good reference.

Note that MySqueezebox website sends your email and password in clear text. Don't use any password you care about, or use a local Logitech Media Server instead.

Known issues

MySqueezebox cookies last for a year; the plugin doesn't attempt to deal with cookie expiration or re-login.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TroX-oO/homebridge-freemote: This Homebridge plugin exposes Freebox v6 remote to ...发布时间:2022-06-14
下一篇:
polakovic/homebrew-astronomy发布时间:2022-06-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap