HomeGenie Forum
Automation Program Plugins and Wizard Scripting => Help => Topic started by: enterprised on February 02, 2015, 12:20:12 AM
-
I have several 1Wire temperature sensors attached to my RPi's running HomeGenie.
I'm using the One-Wire Devices module to read the sensors.
There is one thing driving me a bit nuts. HomeGenie does a notification, the little pop-up window, every time the sensors update. This means if I want the sensors to refresh every 30 seconds I have a series of notifications every 30 seconds.
My question: how can I make these notifications stop and still have the sensor data available?
-
I don't use the 1-wire code, but it sounds like you are seeing notification dialogs in the upper right corner. Those can be turned off by modifying the code. Assuming you are not a programmer, you need to locate the 1-wire module in the Automation menu and select "Edit". Switch to the program tab and locate the following code:
Program.Notify(...);
and comment it out:
//Program.Notify(...);
Then, select the "Compile" button in the upper left corner. If all goes well, you will see something that said "save complete" and the icon for the script should remain green or yellow after it's done compiling (if it's red or purple something went wrong).
You should be good to go and no longer see such dialogs.
-
Hi
I requested an enhancement for the "notifications" and Gene write next release, so I hope is possible in the short term. ;D
https://github.com/genielabs/HomeGenie/issues/46
@bkenobi: I would try your solution in this week. Thank ;)
Marco
-
Seems like "Program.RaiseEvent() is the culprit.
Program.RaiseEvent(module, "Sensor.Temperature", temperatureCelsius.ToString(), "1-Wire Device");
Unfortunately you can't disable this, this code is used to forward the sensor data to the widget.