Subject: | WebService::FritzBox - technical question |
Date: | Sat, 04 Jun 2016 14:37:22 +0200 |
To: | bug-WebService-FritzBox [...] rt.cpan.org |
From: | "will.code.for.pizza [...] gmail.com" <will.code.for.pizza [...] gmail.com> |
Hi Robin,
first thanks a lot for this module.
I think, it will help a lot in managing the FritzBox.
Unfortunatelly, the module is not well documented.
I think, you - as developer - assume too much internal knowledge from
the end user.
It would be nice to read some more examples.
Additionally, the both examples for "get" and "post" doesn't fit
together, which is didactically unsuitable.
The "get" example belongs to inetstat_monitor, while the "post" example
refers to deleting the syslog.
The examples should be more congruent for easy understanding.
But now to my real question.
I want so set the wakeup call "alarm 1" to active.
The line for
$fritzbox->get( path =>
'/fon_devices/alarm.lua?useajax=1&xhr=1&action=get_graphic' );
shows
<input type="checkbox" id="uiViewActive" name="active"
onclick="OnActive(this.checked)" > <label
for="uiViewActive">Weckruf aktivieren</label>
My attempts with
$fritzbox->post( path => '/fon_devices/alarm.lua?active=1' );
failed.
Please could you explain, how to activate checkboxes in your module ?
Many thanks and cheers!
Mike