[Solved] Force update when using openLuup

Would the magic URL to force an upgrade be the same if running openLuup on a separate device? I’m having trouble with thermostat setpoints updating in AltUI (if the change is intiated at the thermostat itself) and think it might have been addressed in a later version, but I can’t get the upgrade dialogue to show up again. I’m currently running 1.0.1012.

could you see if this would help you especially the part which explains how to use the ALTUI plugin page to force the upgrade to a particular version? the key point is to get this magic number but I explained there how I think. http://forum.micasaverde.com/index.php/topic,35739.msg264517.html#msg264517
http://forum.micasaverde.com/index.php/topic,33305.msg264518.html#msg264518
hope this helps

I didn’t want to try that prior to asking my question because I thought things might be a little different given that I’m running openLuup on an RPi.

I tried the URL http://:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=8246&Version=30020 and now my AltUI instance doesn’t run. ??? See attached screenshot.

Indeed, openLuup IS, alas, different. It retrieves its copy of AltUI from the MiOS Trac repository using the build number, so the syntax you’d need for the latest (current) version is:

http://<yourip>:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=8246&TracRev=1098

However, as for AltUI on Vera, all you SHOULD need to do is simply refresh the browser and say Yes to the update prompt.

Since you now seem to be stuck, I’d close the AltUI browser window and revert to the version that openLuup can load from scratch using the request:

http://<yourip>:3480/data_request?id=altui

A wait about a minute before restarting openLuup (tailing the log will show you when the download has finished.) From there you should be able to update in the usual way.

The AltUI reload (http://:3480/data_request?id=altui) gets the interface up and running (and I’m prompted to upgrade as well). If I accept the upgrade via the GUI, I still get the thing I posted yesterday, where AltUI doesn’t fully load.

Since I was “stuck” again, I reloaded alt UI (using data_request?id=altui), and attempted to upgrade via Akboor’s other suggestion http://<yourip>:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=8246&TracRev=1098)

Got the same loading issue I experienced yesterday (see yesterday’s screen cap)

If this conversation should be moved to the openLuup forum please do so…

Well, OK, that’s good news.

If I accept the upgrade via the GUI, I still get the thing I posted yesterday, where AltUI doesn't fully load.

Hmm, less good. So you are saying that however you try to upgrade, AltUI hangs. I’m running build 1098 successfully.

This used to be a problem with earlier versions of openLuup, so what version ARE you running? Version 2015.12.09 is the latest for the server module. A quick look at the top of the log file after a reload will tell all.

If this conversation should be moved to the openLuup forum please do so..

Neither @amg0 nor myself have the power to move this thread between these two boards, so I think it stays here, if that’s OK with @amg0.

Well, OK, that’s good news.

If I accept the upgrade via the GUI, I still get the thing I posted yesterday, where AltUI doesn't fully load.

Hmm, less good. So you are saying that however you try to upgrade, AltUI hangs. I’m running build 1098 successfully.

This used to be a problem with earlier versions of openLuup, so what version ARE you running? Version 2015.1209 is the latest for the server module. A quick look at the top of the log file after a reload will tell all.

If this conversation should be moved to the openLuup forum please do so..

Neither @amg0 nor myself have the power to move this thread between these two boards, so I think it stays here, if that’s OK with @amg0.[/quote]

no issue at all.

if the page is not loading, the key thing to do is to look at the “network” page under chrome debugger and see which http request is not getting its http 200 return code properly and stays in “pending” mode. that could help us

The codes for all the files are either 200 or 304. There is an error in the console though, and I’ve attached a screen cap of it.

This used to be a problem with earlier versions of openLuup, so what version ARE you running? Version 2015.12.09 is the latest for the server module. A quick look at the top of the log file after a reload will tell all.

Server module is 2015.12.09.

[quote=“thegazelle, post:9, topic:190577”]

This used to be a problem with earlier versions of openLuup, so what version ARE you running? Version 2015.12.09 is the latest for the server module. A quick look at the top of the log file after a reload will tell all.

Server module is 2015.12.09.[/quote]

different problem I believe. we have a syntax error in _initOptions() in ALTUI.
can you open the source of the ALTUI HTML page ( even incomplete ) and give it. we are looking for a line with

var g_Options = and the json object after. something seems wrong in here.

can you also use that beta version of the ALTUI code ( I added a trace in the console ) ?
thx

I stopped openLuup, replaced the AltUI files with the ones you provided in the zip, and restarted openLuup. Same issue…

Here is the info you requested:

var g_Options = 'ShowVideoThumbnail=1,FixedLeftButtonBar=1,ShowWeather=1,UseVeraFavorites=0,SyncLastRoom=1,UseUI7Heater=0,ShowAllRows=0,Menu2ColumnLimit=15,TempUnitOverride=f,Theme=null';

I have attached a pic of the console as well.

Thanks!

[quote=“thegazelle, post:11, topic:190577”]I stopped openLuup, replaced the AltUI files with the ones you provided in the zip, and restarted openLuup. Same issue…

Here is the info you requested:

var g_Options = 'ShowVideoThumbnail=1,FixedLeftButtonBar=1,ShowWeather=1,UseVeraFavorites=0,SyncLastRoom=1,UseUI7Heater=0,ShowAllRows=0,Menu2ColumnLimit=15,TempUnitOverride=f,Theme=null';

I have attached a pic of the console as well.

Thanks![/quote]
Could you try to clear the variable ServerOptions from the altUI device and then restart luup and altUI and let me know what happens?

I’d be happy to but I’m not sure how to do it. I assume it can be done by editing a particular file without accessing the AltUI gui.

directly in UI5 or UI7, or AK could probably hint you on how to do on openLuup, I am not sure.
Alternatively, edit the file J_ALTUI_uimgr.js I sent you and after line 5850

console.log("serveroptions:",serveroptions);

add this line

serveroptions={};

then update the file J_ALTUI_uimgr.js on your box, restart… and let me know

Same as Vera, just go to the variable panel for the AltUI plugin, select all of the content of the ServerOptions variable and replace with {}. Reload Luup.

directly in UI5 or UI7, or AK could probably hint you on how to do on openLuup, I am not sure.
Alternatively, edit the file J_ALTUI_uimgr.js I sent you and after line 5850

console.log("serveroptions:",serveroptions);

add this line

serveroptions={};

Reset
then update the file J_ALTUI_uimgr.js on your box, restart… and let me know[/quote]

I stopped openLuuup, added the line (and indented properly) in J_ALTUI_uimgr.js and reloaded openLuup and got the same results.

Would’ve done that if I was able to but since I couldn’t get AltUI to load I couldn’t access the variable panel for the AltUI plugin.

Would’ve done that if I was able to but since I couldn’t get AltUI to load I couldn’t access the variable panel for the AltUI plugin.[/quote]
yep… this is why I proposed you this method (http://forum.micasaverde.com/index.php/topic,35765.msg264796.html#msg264796) to workaround this problem. The problem I suspect is that you are going from lua modeul version 1.0 to 1.2 and in fact 1.1 was a mandatory step as I had some changes to this variable format. not proven yet but high probability culprit.

so if you apply the method cited above, we should be able to get you up and running. then you should go to ALTUI option screen, change one option back & forth to force a save and then problem should be gone.

keep us informed.

OK, I misunderstood what you wanted me to do the first time. So, I reloaded AltUI on openLuup using AK’s command. Edited the server variable field and made it blank, refreshed the page and clicked to upgrade. I realized while it was attempting the upgrade that I forgot to add the “{}”, but the upgrade was successful!

Thanks for your help!

[quote=“thegazelle, post:19, topic:190577”]OK, I misunderstood what you wanted me to do the first time. So, I reloaded AltUI on openLuup using AK’s command. Edited the server variable field and made it blank, refreshed the page and clicked to upgrade. I realized while it was attempting the upgrade that I forgot to add the “{}”, but the upgrade was successful!

Thanks for your help![/quote]

yes that works too. if the variable is empty a good default is use. I do recommend you go into ALTUI option and change a few. that will set that variable properly.

the root cause is a bug in my code which was assuming people would install the version 1.1 before the version 1.2. if the person went from 1.0 to 1.2 this would have this issue.

glad it works now