more G-Labs products

Author Topic: Battery devices  (Read 961 times)

January 26, 2016, 01:51:56 PM
Read 961 times

Maximo

  • ***
  • Information
  • Full Member
  • Posts: 84
Is there a way of getting a notification of when the battery level is low? I'd prefer something that covers all devices rather than create a script of each individual device.

Thanks,

Garry

January 26, 2016, 02:29:36 PM
Reply #1

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Widget of each device has a battery shows the level of battery at its bottom.
If you want an automatic report you have to write a C# script.

January 26, 2016, 09:03:52 PM
Reply #2

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
In C#, run a script every x minutes that checks each sensor widget (or whatever uses a battery and reports its status. If low/0.0, build an email to notify which modules need attention.  Probably best to also have a timeout such that you don't get informed every x minutes when you can't get to it right away.

January 26, 2016, 11:47:55 PM
Reply #3

Maximo

  • ***
  • Information
  • Full Member
  • Posts: 84
Thanks for the replies, I was hoping someone would have the code already. But I guess we can't have everything can we. Time to learn a little C#.

Regards,

Garry

January 27, 2016, 04:21:33 AM
Reply #4

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Code repositories exist based on user contributions.  If you figure the C# code out and submit it here, it will exist for the next person.   8)