LinuxMCE Forums

General => Users => Topic started by: cfernandes on March 06, 2014, 12:14:08 PM

Title: web orbiter refresh
Post by: cfernandes on March 06, 2014, 12:14:08 PM
hello guys, already have a certain time that a situation bothers me, the refresh of the web orbiter, I have studied the code and saw that the function exists however it never happens unless manually.
I made a change in javascript and is now working.
I wonder if anyone else has this problem and if we could discuss with anyone who has more knowledge of the web orbiter which the impact of this change


Carlos
Title: Re: web orbiter refresh
Post by: _if_ on March 06, 2014, 05:54:22 PM
wow, that would be a great benefit!
Title: Re: web orbiter refresh
Post by: uplink on March 06, 2014, 06:39:19 PM
Quote from: cfernandes on March 06, 2014, 12:14:08 PMI made a change in javascript and is now working.

I hope I'm not asking for much, but... can we have that change posted here as well, so we can see it?

We may look like mind readers, but we are not :)

Thanks

EDIT:
Quote from: cfernandes on March 06, 2014, 12:14:08 PMI wonder if anyone else has this problem and if we could discuss with anyone who has more knowledge of the web orbiter which the impact of this change

That would be me BTW.

Each time this comes up I compare the Dianemo code with the LMCE code, and I don't see anything relevant that would prevent LMCE from refreshing. That's why I'm up in flames that you didn't write the slightest hint about what you did.
Title: Re: web orbiter refresh
Post by: cfernandes on March 06, 2014, 06:53:45 PM
sorry for not sending my changes.

in my case is working on 10.04  including in security cameras via android orbiter


should be applied in weborbiter.js file in / var / www / lmce-admin / weborbiter


Carlos
Title: Re: web orbiter refresh
Post by: uplink on March 06, 2014, 08:39:25 PM
Right... so what that says is that the problem is in the Proxy_Orbiter. It doesn't set the "anynews" response to "yes" when a new screen is generated.

What you did is to force a full image reload on each timeout - which might be OK on a LAN, but becomes strenuous on slower connections. The "anynews" flag is a small message by comparison.

I'll have to look in Orbiter and Proxy_Orbiter to figure out why that flag is not set to "yes" when the screen changes. That mechanism works fine in Dianemo.
Title: Re: web orbiter refresh
Post by: uplink on March 06, 2014, 08:58:24 PM
OK... found the problem. Instead of "yes", I get "yes<LF>"... which of course doesn't match the test, so you don't get the refresh.
Title: Re: web orbiter refresh
Post by: uplink on March 06, 2014, 09:17:33 PM
You'll be happy to know that the problem is now fixed: http://svn.linuxmce.org/trac/changeset/28792
Title: Re: web orbiter refresh
Post by: Marie.O on March 06, 2014, 09:23:29 PM
Thank you uplink and thank you cfernandez! This bug has been with us a LOOOOOONG time, and you two made it go away. New package is on its way, and should be in the repo sometime Friday.
Title: Re: web orbiter refresh
Post by: cfernandes on March 06, 2014, 09:26:25 PM
yes I'm very happy

thank you
Title: Re: web orbiter refresh
Post by: Marie.O on March 07, 2014, 06:37:59 AM
new pluto-website-admin package is live in the repo
Title: Re: web orbiter refresh
Post by: Marie.O on March 07, 2014, 11:54:52 PM
New update for 1004 as well. _IF_, i hope you like it.
Title: Re: web orbiter refresh
Post by: _if_ on March 08, 2014, 05:38:19 PM
posde, did I ever mention that I love you?  ;D

thanks a lot, it's working perfectly!

IF
Title: Re: web orbiter refresh
Post by: Marie.O on March 09, 2014, 11:07:20 AM
glad to be of help. feels good to be loved  ;D