JS tab with Ajax via Mios

Are the bugs related? The situation you describe is to have multiple js files; my problem here is the issue of not being able to load one js via mios (sure, it may not work with many as well if the feature would be available).

Maybe it doesn’t find the file? Can I try the plugin to see if I can reproduce the issue here?

sure, please try. It is the plugin available here
http://code.mios.com/trac/mios_visonic-powermax/wiki

Sorry for the late reply. I tested your plugin on one of our Veras remotely, and it worked. Do you have any firewalls that could block the receiving of the file?

Thanks for testing.

I have only tested remote access from one location and a firewall is in the way. I will check if this is the culprit here.

I briefly enabled remote access on my Vera to test a bug that has been reported for the Caddx plugin. I get exactly the same behaviour as @utz.

[ul][li]Clicking on a tab (even twice) leads only to the Opening configuration barbershop animation.[/li]
[li]The JavaScript file is mentioned in the plugin’s static JSON file.[/li]
[li]Over remote access, the requested URL (https://fwd1.mios.com/sid-XXXXXXXXXXXXXXXXXXXXXXXXX/port_3480/J_CaddxNX584Security.js) has a 200 OK response but the body is empty.[/li]
[li]I am behind NAT but the outgoing connection is not filtered in any other way.[/li][/ul]

This is on 1.1.1245.

@futzle
Can you add the following user to you Vera unit?

Username: web
E-mail address: vali@micasaverde.com

He implemented this functionality (user-made JS tabs) and will do some debugging on your Vera to find why it doesn’t work. FYI, your plugin works just fine on my Vera when accessed remotely, that’s why we need access to your Vera.

Done. Knock yourself out. When you’re done, it’d be really helpful to know what you did, because I’m not the only one (see @utz) with this issue.

When I am using remote access and attempt to access a JavaScript file, I get this in the LuaUPnP log of the Vera:

02	10/12/11 8:58:31.106	luvd_get_info mg conn can't read /etc/cmh-ludl//J_DebuggingUtilities.js?fwdserver=1& or /etc/cmh-lu//J_DebuggingUtilities.js?fwdserver=1& from filename /J_DebuggingUtilities.js?fwdserver=1& pPtrFile (null) <0x5808>

So the forwarder at mios.com is sending the request for the file back to my Vera.

Here is what is in my /etc/cmh-ludl directory:

# ls -l /etc/cmh-ludl/J_*
-rw-r--r--    1 root     root        11493 Oct  6 20:33 /etc/cmh-ludl/J_CaddxNX584Security.js.lzo
-rw-r--r--    1 root     root         3893 Jul 11 20:09 /etc/cmh-ludl/J_CurrentCostEnviR1.js.lzo
-rw-r--r--    1 root     root          914 Mar 29  2011 /etc/cmh-ludl/J_DebuggingUtilities.js.lzo
-rw-r--r--    1 root     root         3709 Jun 26 14:20 /etc/cmh-ludl/J_HomeCare.js.lzo

Edit: Vera2 with 1.1.1245

I haven’t heard back about this, so I’m going to disable this user on my Vera. Let me know when you’re ready to look, and I’ll re-enable it.

I did not look into this for a while as I was busy with work. The problem is still there , I will see if I can find out more.