[mythtv-users] APC PowerChute

Bill Meek keemllib at gmail.com
Sun Dec 6 03:20:58 UTC 2015


On 12/05/2015 09:00 PM, Gary Buhrmaster wrote:
> On Sun, Dec 6, 2015 at 2:17 AM, Bill Meek <keemllib at gmail.com> wrote:
> ....
>> I tried both of these:
>>
>> curl --data Key=FrontendStatusPort \
>>       --data Value=6548 \
>>       --data HostName=ofc0 \
>>           mc0:6544/Myth/PutSetting
>
> Here is a reference from Michael Dean that
> seems relevant (no, I have not tried it, but
> I presume Michael did).  Note, as always,
> that the host name in the database may
> (or may not) need to be further qualified
> than just the base value.
>
> http://lists.mythtv.org/pipermail/mythtv-users/2009-November/272251.html
>

Unfortunately, that fails with a 404 error. Services API endpoints
that change things must be an HTTP POST and the link causes a GET
(not yelling, just convention.)

The --data flag in curl causes a POST, and it adds the setting in the
DB. It just doesn't cause the frontend to listen on a different port.

And I thought it would be an easy solution. Maybe that's why there's
no GUI to change it. I think I'll give it a rest.

-- 
Bill


More information about the mythtv-users mailing list