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.

Battery level %

If you have a question or need help, this is the place to be.
careingemt
Posts: 20
Joined: Thu Apr 14, 2016 12:12 pm

Battery level %

Post by careingemt »

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
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Battery level %

Post by kgschlosser »

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 like the work I have been doing then feel free to Image
careingemt
Posts: 20
Joined: Thu Apr 14, 2016 12:12 pm

Re: Battery level %

Post by careingemt »

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

Image
http://imgur.com/fxygD3z
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Battery level %

Post by Pako »

You may also consider the possibility of using Pushbullet instead of Autoremote. It is much easier to bring it into operation.

Pako
You know flattr ? You can Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Battery level %

Post by kgschlosser »

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.
If you like the work I have been doing then feel free to Image
careingemt
Posts: 20
Joined: Thu Apr 14, 2016 12:12 pm

Re: Battery level %

Post by careingemt »

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?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Battery level %

Post by kgschlosser »

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
If you like the work I have been doing then feel free to Image
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Battery level %

Post by Pako »

careingemt wrote: I'd prefer to to use Autoremote because then I can incorporate tasker ...
This is (of course) also possible and very easy with Pushbullet.

Pako
You know flattr ? You can Image
careingemt
Posts: 20
Joined: Thu Apr 14, 2016 12:12 pm

Re: Battery level %

Post by careingemt »

Hello,
This is (of course) also possible and very easy with Pushbullet.
Are There any instructions on how to set it up ,, I don't see where i enter my device ?

[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
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Battery level %

Post by Pako »

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.
Tree.png
Tree.png (14.64 KiB) Viewed 5422 times
PB_Plugin.png
Battery_Plugin.png
Action-Level.png
Action-ACstatus.png
Pako
You know flattr ? You can Image
careingemt
Posts: 20
Joined: Thu Apr 14, 2016 12:12 pm

Re: Battery level %

Post by careingemt »

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
Attachments
error's.PNG
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Battery level %

Post by krambriw »

In your setup, an ending * is missing in the label for the event
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Battery level %

Post by Pako »

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
You know flattr ? You can Image
careingemt
Posts: 20
Joined: Thu Apr 14, 2016 12:12 pm

Re: Battery level %

Post by careingemt »

Krambriw is right - asterisk (as a wildcard) is missing in your setup.
ok fixed
However, I see another problem - the red lines in your log.
Maybe it could be a problem with encryption. You have enabled encryption?
how to enable encryption... is it the same password i use for pc / phone (log into my google account ??)
z3us
Posts: 42
Joined: Fri Jul 29, 2011 2:35 am

Re: Battery level %

Post by z3us »

You can do this with Autoremote:

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>
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/
Post Reply