genielabs / HomeGenie

HomeGenie, the programmable automation intelligence
https://homegenie.it
GNU General Public License v3.0
388 stars 154 forks source link

1.2-stable.19 load /refresh using a CM19 #348

Closed tuicemen closed 5 years ago

tuicemen commented 5 years ago

The Web UI to load to display and respond as quickly no mater which X10 interface is loaded

Actual behavior

the WEB UI loads much faster using a CM15 interface verses a Cm19, If a Cm19 is used the Page seems to load quickly with all widgets then blanks out showing theme and background only with out any devices or modules, sometimes the loading spinning Icon displays but then disappears. I have a remote machine on a slow internet connection running a Cm15 and pages load faster the a local machine running the CM19

Steps to reproduce the problem starting from a fresh install

  1. connect a CM19
  2. load a HG backup
  3. open the dashboard
  4. If it loads quick give it a second and select another group

Specifications

Additional configuration notes

HomeGenie seems to be overall slower running the CM19 verses the CM15 it is almost like it is trying to load the CM15 before the CM19 As even X10 events tasks are much slower with the Cm19. I'm connecting to both locations using the same PC the only difference besides the CM19 verses the CM15 is the distance . If I swap out the cm19 for the CM15 loads are much quicker as are X10 events Configuration screens load about the same regardless of X10 controller or location. However doing a backup seems to take much longer with the CM19 then the Cm15 and sometimes will hang. I never noticed this lag with the last HG build.

tuicemen commented 5 years ago

I may have found my root cause of this. while trying to compare a Cm19 functions I added security modules to the same backup I already had associated with the Cm15. Although the same modules and same codes HG seems to get confused with both and tries to select the correct Interface. It always gets the correct cm to connect with but since so many RF receives are coming in from heart beats I think this is slowing things up as it gets overwhelmed. Most users will not be attempting to load the same configuration file for a cm15 as then Cm19 so this should be a rare occurrence. I do a bit more testing to confirm my findings before closing the issue.

tuicemen commented 5 years ago

Ok it does indeed look like this is the issue at least for sure if using a Cm15 and cm19 security widgets are also used in the HG layout. I'll load up the cm19 with the cm15 security widgets removed and see it that helps in that scenario as well

alzzy commented 5 years ago

I installed latest release on win 10 PC and it would not control a cm19a.

tuicemen commented 5 years ago

@alzzy this I don't believe has been tested on a Windows PC do you have a CM15 to try? Was this a new install or an update from an older version of HG?

alzzy commented 5 years ago

Download page says win10 supported! It was a new install. No I can't take my cm15 out of service just now.

On Tue, Dec 18, 2018 at 12:22 PM Tuicemen notifications@github.com wrote:

@alzzy https://github.com/alzzy this I don't believe has been tested on a Windows PC do you have a CM15 to try? Was this a new install or an update from an older version of HG?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/genielabs/HomeGenie/issues/348#issuecomment-448300405, or mute the thread https://github.com/notifications/unsubscribe-auth/AZCSXqGyNx6CWOvt4lEWd-j7vlo37m1uks5u6SRhgaJpZM4ZWV3Q .

tuicemen commented 5 years ago

maybe start a new issue for it as not to get lost with this one.

mralapete commented 5 years ago

@tuicemen have you edited your /etc/hosts file to include your raspberry Pi computer name. You can off load a lot of the overhead on the web Api this way.

tuicemen commented 5 years ago

I though I had it setup the same as the image were working but since this is a different mono in use I may not have in order to keep them easy to distinguish, I'll check as soon as I get HG back up it seems to have lost its port.

tuicemen commented 5 years ago

It was indeed the fact that i had loaded cm19 security widgets and cm15 security widgets.I insread created two backups,one for the cm19 and one for the CM15.