Wirrunna;416441 Wrote: > Goedon, you've done it again ! Great addition, looks good, > understandable menu and works as advertised, also shows up under Extras > on iPeng 1.1 on my iPod Touch which means that I can shutdown / restart > / suspend the server from the iPod. > The "Block Shutdown/Suspend/etc." menu item is a good addition. Maybe > the "Clear Block" could be better explained, such as > "Shutdown/Suspend/etc. Blocked, Clear ?". Does it reset on a non Server > Power Control induced shutdown and restart ? > > Edit: Just confused the plugin by clicking Block Shutdown/Suspend on > the iPod, then clicking Block Shutdown/Suspend on the web interface > before it had toggled to Clear Block. Very unlikely scenario in real > life, just thought I'd tell you. Re showing up on iPeng: that isn't new with this version. Jörg, clever chap that he is, has been supporting everything that can show up on the SBR's extras menu in iPeng for a while now. PeterW's PowerCenter plugin works great with iPeng too. I love the fact that I can turn lights on and off all over the house with my iPhone+iPeng.
Re Blocks surviving shutdown & restart: The only block that would survive a system restart would be a blockfile on a windows machine: C:\Windows\temp\spc-block. All the other blocks are "volatile" and will disappear upon system restart, no matter from whence it is initiated. Re "Clear Block" being unclear: do you feel differently about this now that you know that blocks are "volatile"? I'm conscious of the fact that a lot of the syntax displayed by SrvrPowerCtrl is pretty mangled. If anyone wants to go through and do a thorough re-write of the strings.txt file, please be my guest. Feel free to post a new version of strings.txt to this thread. Probably best if you zip it and attach it to a post. Re confused the plugin: Confused it how? What did you see? It really ought to be able to handle two block or unblock requests in a row just fine. The "soft-block" mechanism (i.e. a "memory block" kept by the plugin, vs. a block-file) accommodates a stack 'o blocks. Multiple blocks can be set by different users using the CLI. Picking "Clear Block" from the web menu will clear just the top 'o the stack of blocks. You might have to run "Clear Block" via the web UI several times in order to clear all the blocks. Also: it is possible to set a block from the CLI that is unclearable from the web UI. The full syntax for setting a block from the CLI is: [ srvrpowerctrl setblock reason_for_blocking block_owner_name ] If, when setting a block via the CLI, you use "viacli" as the block_owner_name, this becomes, in a sense, an anonymous block that can be cleared by anyone. This is how the web UI does it. If one uses a block_owner name other than "viacli", SrvrPowerCtrl returns a randomly generated "blockcode" which must be used to clear the block. E.G.: [ srvrpowerctrl setblock Because_I_say_so Fernando ] ..returns: srvrpowerctrl setblock Because_I_say_so Fernando 901557 To clear this block, you would have to request, via the CLI: [ srvrpowerctrl clearblock 901557 Fernando ] SrvrPowerCtrl returns: srvrpowerctrl clearblock 901557 Fernando 0 The "0" indicates that there are no more blocks to clear. If there are more blocks on the "stack", SrvrPowerCtrl returns the number of remaining blocks. If there is an error clearing the block (wrong block_code or wrong block_owner) then SrvrPowerCtrl return -1. -- gharris999 ------------------------------------------------------------------------ gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=48521
_______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
