Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Battery level %
-
careingemt
- Posts: 20
- Joined: Thu Apr 14, 2016 12:12 pm
Battery level %
Hello,
Is it possible to get a notification sent to my Nexus 6 of my battery percent on my laptop? I do have an AutoRemote plugin..
thanks for any help
Is it possible to get a notification sent to my Nexus 6 of my battery percent on my laptop? I do have an AutoRemote plugin..
thanks for any help
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Battery level %
sure is possible.
If you use the new beta version of EventGhost it will report battery use.. You can download it from here
viewtopic.php?f=12&t=9581
if you do not want to use a beta version you would have to install the Battery Plugin which is located here
viewtopic.php?f=9&t=6304&hilit=Battery+Plugin
and then you can do one of 2 things.. and depending on if you know your sms e-mail address for your phone. you can use either the e-mail plugin with a gmail account to sent text messages to your phone. or you can use AutoRemote (which i am not familiar with) but there are a couple of different methods of getting a message to your phone.
If you use the new beta version of EventGhost it will report battery use.. You can download it from here
viewtopic.php?f=12&t=9581
if you do not want to use a beta version you would have to install the Battery Plugin which is located here
viewtopic.php?f=9&t=6304&hilit=Battery+Plugin
and then you can do one of 2 things.. and depending on if you know your sms e-mail address for your phone. you can use either the e-mail plugin with a gmail account to sent text messages to your phone. or you can use AutoRemote (which i am not familiar with) but there are a couple of different methods of getting a message to your phone.
-
careingemt
- Posts: 20
- Joined: Thu Apr 14, 2016 12:12 pm
Re: Battery level %
hello,
im able to get the battery % but cant figure out how to use autoremote ....
an sms message would work if some one could show how to do sms to phone

http://imgur.com/fxygD3z
im able to get the battery % but cant figure out how to use autoremote ....
an sms message would work if some one could show how to do sms to phone
http://imgur.com/fxygD3z
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Battery level %
You may also consider the possibility of using Pushbullet instead of Autoremote. It is much easier to bring it into operation.
Pako
Pako
You know flattr ? You can 

- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Battery level %
the pushbullet plugin would be the easiest way. that is a fantastic suggestion Pako. and it does not require a 3rd party like the e-mail. and doesn't have the complexities of trying to use AutoRemote.
-
careingemt
- Posts: 20
- Joined: Thu Apr 14, 2016 12:12 pm
Re: Battery level %
Hi,
I'd prefer to to use Autoremote because then I can incorporate tasker...
if there is no other way but pushbullet.. Is there a plugin in event ghost ... and how to set it up so i can obtain current battery %
my objective is to use my phone or a different pc and ask my laptop what is the battery % ........ is this an option?
I'd prefer to to use Autoremote because then I can incorporate tasker...
if there is no other way but pushbullet.. Is there a plugin in event ghost ... and how to set it up so i can obtain current battery %
my objective is to use my phone or a different pc and ask my laptop what is the battery % ........ is this an option?
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Battery level %
You most certainly can use AutoRemote. You will have to search the forum for "send notifications to android autoremote". and I am sure someone has provided instruction on how to do so. I am not familiar with AutoRemote
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Battery level %
This is (of course) also possible and very easy with Pushbullet.careingemt wrote: I'd prefer to to use Autoremote because then I can incorporate tasker ...
Pako
You know flattr ? You can 

-
careingemt
- Posts: 20
- Joined: Thu Apr 14, 2016 12:12 pm
Re: Battery level %
Hello,
[img]pushbullet_settings[/img] http://imgur.com/ZLnRyNt
I've done a search with no result's
[img]search_for_instructions[/img] http://imgur.com/6WYOSM1
Thanks for any help
Are There any instructions on how to set it up ,, I don't see where i enter my device ?This is (of course) also possible and very easy with Pushbullet.
[img]pushbullet_settings[/img] http://imgur.com/ZLnRyNt
I've done a search with no result's
[img]search_for_instructions[/img] http://imgur.com/6WYOSM1
Thanks for any help
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Battery level %
Well, here is a series of pictures that should help you.
Tasker setting I can add too, but it very much depends on what type of notification or action you need. Anyway it's also easy, because there (I mean Tasker) Pushbullet plugin is also available.
However, there is a little trouble, I've got a Tasker in the Czech language, and I do not know how to switch it to English.Pako
Tasker setting I can add too, but it very much depends on what type of notification or action you need. Anyway it's also easy, because there (I mean Tasker) Pushbullet plugin is also available.
However, there is a little trouble, I've got a Tasker in the Czech language, and I do not know how to switch it to English.Pako
You know flattr ? You can 

-
careingemt
- Posts: 20
- Joined: Thu Apr 14, 2016 12:12 pm
Re: Battery level %
Hi,
Still having troubles... Is it normal to load with error's when i first start Eventghost? If i highlight the "PushBullet: Push: note to "Motorola Nexus 6" " and click the green icon (to manually run it) I do get a pushbullet notification of battery %. However... When I minamize eventghost (keep it running in the background... Do NOT x off) If I set the battery plugin to 97% and unplug my laptop, When the battery reaches 97% (manually watch it by clicking the battery icon every so often) I do not get the pushbullet notification..
I believe I've set things up as per your pics
Still having troubles... Is it normal to load with error's when i first start Eventghost? If i highlight the "PushBullet: Push: note to "Motorola Nexus 6" " and click the green icon (to manually run it) I do get a pushbullet notification of battery %. However... When I minamize eventghost (keep it running in the background... Do NOT x off) If I set the battery plugin to 97% and unplug my laptop, When the battery reaches 97% (manually watch it by clicking the battery icon every so often) I do not get the pushbullet notification..
I believe I've set things up as per your pics
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Battery level %
In your setup, an ending * is missing in the label for the event
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Battery level %
Krambriw is right - asterisk (as a wildcard) is missing in your setup.
However, I see another problem - the red lines in your log.
Maybe it could be a problem with encryption. You have enabled encryption? And if so, for all devices the same passwords set?
You have installed the Chrome extension and / or desktop Pushbullet application too? Its works smoothly?
Pako
However, I see another problem - the red lines in your log.
Maybe it could be a problem with encryption. You have enabled encryption? And if so, for all devices the same passwords set?
You have installed the Chrome extension and / or desktop Pushbullet application too? Its works smoothly?
Pako
You know flattr ? You can 

-
careingemt
- Posts: 20
- Joined: Thu Apr 14, 2016 12:12 pm
Re: Battery level %
ok fixedKrambriw is right - asterisk (as a wildcard) is missing in your setup.
how to enable encryption... is it the same password i use for pc / phone (log into my google account ??)However, I see another problem - the red lines in your log.
Maybe it could be a problem with encryption. You have enabled encryption?
Re: Battery level %
You can do this with Autoremote:
paste this in your EG tree:
You need to set your own recepient in the AutoRemote message action.
This will make your PC send its battery level whenever it receives an AutoRemote message like ÔÇ£pcbattÔÇØ. Of course you can change the trigger to anything you like.
Source: https://joaoapps.com/autoremote/eventgh ... nd-tricks/
paste this in your EG tree:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1630">
<Macro Name="Send Battery Level" Expanded="True">
<Event Name="AutoRemote.Message.pcbatt" />
<Action>
EventGhost.PythonScript(u'from ctypes import windll, byref, Structure, c_ubyte, c_ulong\n\nclass SYSTEM_POWER_STATUS(Structure):\n _fields_ = [("ACLineStatus", c_ubyte),\n ("BatteryFlag", c_ubyte),\n ("BatteryLifePercent", c_ubyte),\n ("Reserved1", c_ubyte),\n ("BatteryLifeTime", c_ulong),\n ("BatteryFullLifeTime", c_ulong)]\n\nsps = SYSTEM_POWER_STATUS()\nwindll.kernel32.GetSystemPowerStatus(byref(sps))\neg.result = sps.BatteryLifePercent')
</Action>
<Action>
AutoRemote.SendMessage(u'My device', '', u'dddd', u'pcbatt=:={eg.result}', u'', u'', u'', '', u'', u'')
</Action>
</Macro>
</EventGhost>This will make your PC send its battery level whenever it receives an AutoRemote message like ÔÇ£pcbattÔÇØ. Of course you can change the trigger to anything you like.
Source: https://joaoapps.com/autoremote/eventgh ... nd-tricks/
