Page 2 of 3
Re: Battery
Posted: Mon Feb 23, 2015 6:04 pm
by reinholdkorst
if i execute autostart thab i get this massage
C:\Program Files (x86)\EventGhost\plugins\Battery\__init__.py:1269: RuntimeWarning: Parent module 'eg.CorePluginModule.Battery' not found while handling absolute import
from urllib2 import urlopen
Re: Battery
Posted: Mon Feb 23, 2015 6:38 pm
by Pako
I understand your sentence unfortunately very little.
However, it looks like you have a wrong file __init__.py.
Can you please put the file here as an attachment?
I need to see the contents of the file, that you have in the directory Battery.
Pako
Re: Battery
Posted: Mon Feb 23, 2015 7:02 pm
by reinholdkorst
I put the file here
https://drive.google.com/folderview?id= ... sp=sharing
My engles is not verry good sorry.
Re: Battery
Posted: Mon Feb 23, 2015 7:14 pm
by Pako
Yes, my suspicions were confirmed.
Unfortunately, you did not follow my instructions.
This is not a file that you can download from the opening post of this topic.
This is autoremote plugin.
Pako
Re: Battery
Posted: Tue Feb 24, 2015 6:30 pm
by reinholdkorst
I douwload the file from the first post and i save the file in the battery map.
Re: Battery
Posted: Tue Feb 24, 2015 9:00 pm
by Pako
reinholdkorst wrote:I douwload the file from the first post and i save the file in the battery map.
It is impossible. In some of the steps you're making a mistake.
Unfortunately I can not see in which.
I am not able to help more.
Pako
Re: Battery
Posted: Wed Feb 25, 2015 6:41 pm
by reinholdkorst
I douwnload the file from the first post
I make the map battery in eventghoste/plugin
I copy the file that i douwnloaded
I restart eventghost
I have don it agin but it dont work.
But thaks for the time.
Re: Battery
Posted: Wed Feb 25, 2015 7:08 pm
by Pako
When I download the file and look into it with an editor (notepad.exe)
so the file begins as follows:
Can you explain to me how it can be changed as follows (you saying, that you have this file in the folder Battery):
Code: Select all
# -*- coding: utf-8 -*-
import eg
eg.RegisterPlugin(
name = "AutoRemote",
author = "joaomgcd",
Pako
Re: Battery
Posted: Thu Feb 26, 2015 4:51 am
by krambriw
Could it be so simple....that when you download the file, it is already one existing in the download folder with the same name (__init__.py) ????
If you then download a new file with the same name it will automatically get the name __init__ (1).py, the third will be __init__ (2).py etc etc
Check carefully in the download folder that it is not having those files inside. Then clean up and redo download again
Re: Battery
Posted: Thu Feb 26, 2015 7:19 am
by Pako
Dear Walter,
I am sure you are right.
That's the only possible explanation of how this can happen.
Thank you for your help.
Luboš
Re: Battery
Posted: Thu Aug 13, 2015 11:11 am
by ashfaaaa
hello pako
can you tell me how to use this plugin. i'm a new to eventghost.. when i play the "get battery percentage" nothing happens
Re: Battery
Posted: Thu Aug 13, 2015 2:47 pm
by krambriw
Pako is currently on vacation, will be back later in autumn
Maybe some other user using this plugin can help you out
Re: Battery
Posted: Sat Sep 26, 2015 10:21 am
by math
Do you use windows10?
I installed it yesterday and it seems that nothing happens.
Maybe the way to get the batterystatus is different to previous versions?
Does anybody use it with windows10 and it works?
Re: Battery
Posted: Sat Sep 26, 2015 12:02 pm
by krambriw
A lot is not working any longer in Windows 10, there are not only problems with some plugins for EG
Re: Battery
Posted: Sat Sep 26, 2015 3:50 pm
by math
it works

My mistake was to edit the plugin without restart.
Your plugin is listed in autorun?
You did edit the plugin?
Otherwise make a doubleclick and add some alarmlevels.
After pressing OK restart the plugin.
You should find an event called "battery.AlarmLevel.
yourname[/]", when percentage is reached.