ControlR (Android/iOS app for unRAID)


Recommended Posts

v3.0.3 is out (OTA release) !

 

3.0.3

 

- Optimize server refresh
- Fix issues with docker & vm tabs selection
- Fix font size of ticker widgets
 

I think this finally fixes the issues with tab selection.

 

I've changed a bit how the server is refreshed: when you pull down to refresh, it doesn't update dockers & vms.

 

It should make the full server refresh a bit faster.

 

But it still updates both tabs whenever you switch to them.

 

And now you have a refresh button, so you can remain in the tab to update docker/vm status, no need to switch tabs to update.

 

Also, when you update to plugin v2.4.0, there's another small optimization in terms of retrieving data from the server.

 

Let me know how this works for you.

 

Link to comment
If anyone has a UPS connected to their server, could you send me the output of 
/sbin/apcaccess

(pm if you prefer)
 
I'm looking into incorporating UPS status into the app.



root@MediaOne:~# /sbin/apcaccessAPC      : 001,048,1105DATE     : 2017-10-10 15:20:45 +0400HOSTNAME : MediaOneVERSION  : 3.14.14 (31 May 2016) slackwareUPSNAME  : UPS_IDENCABLE    : Custom Cable SmartDRIVER   : APC Smart UPS (any)UPSMODE  : Stand AloneSTARTTIME: 2017-10-07 09:37:15 +0400MODEL    : Smart-UPS SC1500STATUS   : ONLINELINEV    : 228.0 VoltsLOADPCT  : 9.1 PercentBCHARGE  : 100.0 PercentTIMELEFT : 85.0 MinutesMBATTCHG : 10 PercentMINTIMEL : 10 MinutesMAXTIME  : 0 SecondsMAXLINEV : 228.0 VoltsMINLINEV : 226.0 VoltsOUTPUTV  : 228.0 VoltsSENSE    : HighDWAKE    : 0 SecondsDSHUTD   : 60 SecondsDLOWBATT : 2 MinutesLOTRANS  : 208.0 VoltsHITRANS  : 253.0 VoltsRETPCT   : 0.0 PercentALARMDEL : 5 SecondsBATTV    : 26.8 VoltsLINEFREQ : 50.0 HzLASTXFER : Line voltage notch or spikeNUMXFERS : 0TONBATT  : 0 SecondsCUMONBATT: 0 SecondsXOFFBATT : N/ASELFTEST : NOSTESTI   : 336STATFLAG : 0x05000008REG1     : 0x00REG2     : 0x00REG3     : 0x00MANDATE  : 04/16/12SERIALNO : 5S1216T00762BATTDATE : 04/16/12NOMOUTV  : 230 VoltsNOMBATTV : 24.0 VoltsFIRMWARE : 738.3.IEND APC  : 2017-10-10 15:20:51 +0400

  • Like 1
Link to comment
19 hours ago, jbrodriguez said:

 

I'll look into it. Could you send me the output of 


/usr/bin/upsc ups 127.0.0.1

(adjust the name and/or ip if needed)

 

Here's the output

 

root@Tower:~# /usr/bin/upsc ups 127.0.0.1

Error: Variable not supported by UPS

 

Also tried localhost with no luck.

Sorry, this doesn't seem very helpful.

 

once again thanks heaps for this.

Edited by BillClinton
fixed a text color issue.
Link to comment
6 hours ago, jbrodriguez said:

 

Actually, this one's on me. It was the wrong command syntax.

 

Please try with


/usr/bin/upsc [email protected]

 

 

I see it now

 

root@Tower:~# /usr/bin/upsc [email protected]
battery.charge: 100
battery.charge.low: 30
battery.runtime: 1000
battery.type: PbAc
device.mfr: MGE UPS SYSTEMS
device.model: Nova 1100 AVR
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: no
driver.version: 2.7.4.1
driver.version.data: MGE HID 1.42
driver.version.internal: 0.42
outlet.1.status: on
output.voltage: 230.0
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 6
ups.mfr: MGE UPS SYSTEMS
ups.model: Nova 1100 AVR
ups.power.nominal: 1100
ups.productid: ffff
ups.status: OL
ups.timer.shutdown: -1
ups.timer.start: -10
ups.vendorid: 0463

 

thanks for letting me help

 

 

  • Upvote 1
Link to comment
  • 2 weeks later...

v3.1.0 is available on App Store / Play Store !

 

3.1.0

This release implement UPS status support !

 

The latest plugin version (2.5.0) needs to be installed on the server.

 

Additionally, hardware back button handling has been restored (Android only)
 

This should support both APC and NUT.

 

It first looks for nut, then defaults to apc, if present at all.

  • Like 1
Link to comment

Looks to be working properly on my iPhone with my APC.

 

I’m wondering if it would be possible to add a setting to disable this or perhaps add a separate screen for UPS. I find the scrolling to be a little distracting.

 

No idea how hard this would be to implement and it’s really only a cosmetic issue. Not a high priority if you decide to do it.

Link to comment
5 minutes ago, jbrodriguez said:

But I could look into into a setting to slow down (speed up) the scrolling rate.

 

Would that help ?

If you're going to implement special settings for the UPS feature, I think my preference would be an on/off switch or maybe show/hide. The scroll speed might be a nice touch too though.

Link to comment

I can't get my Controlr companion plugin to start. It is stuck on the 'stopped' setting.

 

I have toggled the enable controlr between yes and no with 0 effect.

I have changed the port number with 0 effect. (no conflicting ports with any dockers)

I have removed the plugin and reinstalled with 0 effect.

I have deleted the .cfg file with 0 effect.

I have removed the default Cirt Directory info with 0 effect.

 

it also wasn't working before the upgrade, but wasn't too worried about it before, but with NUT integration I was hopping to get it working.

 

here is the tail of the Server Logs

 

Oct 26 07:13:34 Tower root: plugin: creating: /boot/config/plugins/controlr/controlr-2.5.0.tgz - downloading from URL https://github.com/jbrodriguez/controlr/releases/download/2.5.0/controlr-2.5.0.tgz
Oct 26 07:13:49 Tower root: plugin: checking: /boot/config/plugins/controlr/controlr-2.5.0.tgz - MD5
Oct 26 07:13:49 Tower root: plugin: skipping: /boot/config/plugins/controlr/controlr.cfg already exists
Oct 26 07:13:49 Tower root: plugin: running: anonymous
Oct 26 07:13:50 Tower root: plugin: creating: /tmp/controlr-chkconf - from INLINE content
Oct 26 07:13:50 Tower sudo:     root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=root ; COMMAND=/bin/bash -c /usr/local/emhttp/plugins/controlr/controlr -port 2378 -certdir '/boot/config/ssl/certs'
Oct 26 07:13:50 Tower root: plugin: running: /tmp/controlr-chkconf
Oct 26 07:14:20 Tower php: /usr/local/emhttp/plugins/controlr/scripts/stop
Oct 26 07:14:24 Tower php: /usr/local/emhttp/plugins/controlr/scripts/start
Oct 26 07:14:24 Tower sudo:     root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=root ; COMMAND=/bin/bash -c /usr/local/emhttp/plugins/controlr/controlr -port 2378 -certdir '/boot/config/ssl/certs'
Oct 26 07:16:14 Tower php: /usr/local/emhttp/plugins/advanced.buttons/script/plugin 'remove' 'controlr.plg' &>/dev/null &
Oct 26 07:16:14 Tower root: plugin: running: anonymous
Oct 26 07:17:50 Tower emhttp: cmd: /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin install https://raw.githubusercontent.com/jbrodriguez/unraid/master/plugins/controlr.plg
Oct 26 07:17:51 Tower root: plugin: creating: /boot/config/plugins/controlr/controlr-2.5.0.tgz - downloading from URL https://github.com/jbrodriguez/controlr/releases/download/2.5.0/controlr-2.5.0.tgz
Oct 26 07:18:05 Tower root: plugin: checking: /boot/config/plugins/controlr/controlr-2.5.0.tgz - MD5
Oct 26 07:18:05 Tower root: plugin: creating: /boot/config/plugins/controlr/controlr.cfg - from INLINE content
Oct 26 07:18:05 Tower root: plugin: running: anonymous
Oct 26 07:18:05 Tower root: plugin: creating: /tmp/controlr-chkconf - from INLINE content
Oct 26 07:18:05 Tower root: plugin: running: /tmp/controlr-chkconf
Oct 26 07:18:20 Tower php: /usr/local/emhttp/plugins/controlr/scripts/start
Oct 26 07:18:20 Tower sudo:     root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=root ; COMMAND=/bin/bash -c /usr/local/emhttp/plugins/controlr/controlr -port 2378 -certdir '/boot/config/ssl/certs'
Oct 26 07:18:29 Tower emhttp: cmd: /usr/local/emhttp/plugins/dynamix/scripts/tail_log syslog
Oct 26 08:17:46 Tower kernel: mdcmd (1192): spindown 6
Oct 26 08:27:09 Tower kernel: mdcmd (1193): spindown 5
Oct 26 09:19:41 Tower php: /usr/local/emhttp/plugins/controlr/scripts/stop
Oct 26 09:19:50 Tower php: /usr/local/emhttp/plugins/controlr/scripts/start
Oct 26 09:19:50 Tower sudo:     root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=root ; COMMAND=/bin/bash -c /usr/local/emhttp/plugins/controlr/controlr -port 2378 -certdir ''
Oct 26 09:19:56 Tower emhttp: cmd: /usr/local/emhttp/plugins/dynamix/scripts/tail_log syslog
Oct 26 09:20:46 Tower php: /usr/local/emhttp/plugins/controlr/scripts/stop
Oct 26 09:20:52 Tower php: /usr/local/emhttp/plugins/controlr/scripts/stop
Oct 26 09:20:56 Tower php: /usr/local/emhttp/plugins/controlr/scripts/start
Oct 26 09:20:56 Tower sudo:     root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=root ; COMMAND=/bin/bash -c /usr/local/emhttp/plugins/controlr/controlr -port 2379 -certdir ''
Oct 26 09:21:05 Tower emhttp: cmd: /usr/local/emhttp/plugins/dynamix/scripts/tail_log syslog
Oct 26 09:21:35 Tower php: /usr/local/emhttp/plugins/controlr/scripts/stop
Oct 26 09:21:37 Tower php: /usr/local/emhttp/plugins/controlr/scripts/stop
Oct 26 09:22:37 Tower php: /usr/local/emhttp/plugins/controlr/scripts/start
Oct 26 09:22:37 Tower sudo:     root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=root ; COMMAND=/bin/bash -c /usr/local/emhttp/plugins/controlr/controlr -port  -certdir ''
Oct 26 09:23:58 Tower php: /usr/local/emhttp/plugins/controlr/scripts/stop
Oct 26 09:24:26 Tower php: /usr/local/emhttp/plugins/controlr/scripts/start
Oct 26 09:24:26 Tower sudo:     root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=root ; COMMAND=/bin/bash -c /usr/local/emhttp/plugins/controlr/controlr -port 2378 -certdir '/boot/config/ssl/certs'
Oct 26 09:31:56 Tower php: /usr/local/emhttp/plugins/controlr/scripts/stop
Oct 26 09:32:14 Tower php: /usr/local/emhttp/plugins/controlr/scripts/start
Oct 26 09:32:14 Tower sudo:     root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=root ; COMMAND=/bin/bash -c /usr/local/emhttp/plugins/controlr/controlr -port 2378 -certdir '/boot/config/ssl/certs'
Oct 26 09:42:43 Tower emhttp: cmd: /usr/local/emhttp/plugins/dynamix/scripts/tail_log syslog

controlr.log

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.