more G-Labs products

Author Topic: Widgets turns undefined  (Read 751 times)

February 01, 2017, 05:00:04 PM
Read 751 times

raptorjr

  • ***
  • Information
  • Full Member
  • Posts: 78
I have a problem. After only a few days widgets that were working turns to undefined. It always start with the Energy widget, and after that the Thermostat widget. If I do a factory reset everything turns back to normal. But I don't want to do that a couple of times every week.

Any suggestions on what I could try?

February 01, 2017, 08:06:38 PM
Reply #1

Bounz

  • ***
  • Information
  • Full Member
  • Posts: 94
Widgets become undefined when corresponding program fails to start or stop unexpectedly. Instead of performing factory reset go to Programs page and start failed program.

February 01, 2017, 11:23:03 PM
Reply #2

raptorjr

  • ***
  • Information
  • Full Member
  • Posts: 78
Thank you. Now I need to figure out why it stops after a few days =)

February 06, 2017, 12:16:06 AM
Reply #3

raptorjr

  • ***
  • Information
  • Full Member
  • Posts: 78
After above help from Bounz I can restart the Energy program when that widget gets undefined.
But which program controls the Basic Thermostat widget?

HG has been running for about 4 days. When I got back home now the Energy and Thermostat widget was undefined. Restarted the Energy program and that widget turned to life again. But what about the Thermostat widget? How can I get that working again without having to reset everything?

February 06, 2017, 06:19:26 AM
Reply #4

Bounz

  • ***
  • Information
  • Full Member
  • Posts: 94
Basic Thermostat Widget is controlled by Basic Thermostat Program (PID: 78). In my setup this program is located inside "Weather and Environment" group.

February 06, 2017, 09:38:06 AM
Reply #5

raptorjr

  • ***
  • Information
  • Full Member
  • Posts: 78
You are gold to this forum Bounz! (or me atleast) I think you know everything about HG =)

There should be a automatic restart option for programs that stop. And maybe a notifiction in some log. But not good that you have to restart them manually all the time. Although I guess they shouldn't crash at all:P

February 06, 2017, 09:47:05 AM
Reply #6

Bounz

  • ***
  • Information
  • Full Member
  • Posts: 94
Yes, this is strange, that programs in your setup suddenly stop. I have HG running for months without any problems.
I'll try to check sources and implement the auto-restart feature.

February 12, 2017, 02:21:06 PM
Reply #7

Bounz

  • ***
  • Information
  • Full Member
  • Posts: 94
Hi, raptorjr.
I have made an auto-restart feature (and also merged your new Add Module dialog). Check the download link for testing build here: http://www.homegenie.it/forum/index.php?topic=129.msg11843#msg11843.

February 12, 2017, 09:01:21 PM
Reply #8

raptorjr

  • ***
  • Information
  • Full Member
  • Posts: 78
Nice, will try it as soon as I can.

Could you make a pull request or something? Would be nice to have this in my local dev branch.
« Last Edit: February 12, 2017, 09:30:10 PM by raptorjr »

February 12, 2017, 09:58:12 PM
Reply #9

Bounz

  • ***
  • Information
  • Full Member
  • Posts: 94
No problem: https://github.com/raptorjr/HomeGenie/pull/2
You can easily do such pull requests into your own repo by yourself also.

February 12, 2017, 10:25:42 PM
Reply #10

raptorjr

  • ***
  • Information
  • Full Member
  • Posts: 78
Thank you. Everything is new to me. JavaScript, HTML, Web development and GitHub. But I'm slowly learning.

February 14, 2017, 06:25:28 AM
Reply #11

Bounz

  • ***
  • Information
  • Full Member
  • Posts: 94
I was found this git tutorial very helpful when started to use git as a main version control system. Maybe it will help you too.
http://learngitbranching.js.org/