more G-Labs products

Author Topic: 1Wire temperature sensor notifications driving me crazy  (Read 1567 times)

February 02, 2015, 12:20:12 AM
Read 1567 times

enterprised

  • ****
  • Information
  • Sr. Member
  • Posts: 101
  • Things are only impossible until they are not
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?
4a 75 73 74 20 61 20 70 65 72 73 6f 6e 20 68 61 76 69 6e 67 20 66 75 6e 20 77 69 74 68 20 68 6f 6d 65 20 61 75 74 6f 6d 61 74 69 6f 6e
enterprised == guytpetj

February 02, 2015, 05:05:04 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
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:
Code: [Select]
Program.Notify(...);and comment it out:
Code: [Select]
//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.

February 02, 2015, 06:34:45 PM
Reply #2

Marco

  • **
  • Information
  • Jr. Member
  • Posts: 36
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

February 03, 2015, 01:48:35 AM
Reply #3

enterprised

  • ****
  • Information
  • Sr. Member
  • Posts: 101
  • Things are only impossible until they are not
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.
4a 75 73 74 20 61 20 70 65 72 73 6f 6e 20 68 61 76 69 6e 67 20 66 75 6e 20 77 69 74 68 20 68 6f 6d 65 20 61 75 74 6f 6d 61 74 69 6f 6e
enterprised == guytpetj