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

Questions and comments specific to a particular plugin should go here.
reinholdkorst
Posts: 13
Joined: Fri Feb 20, 2015 8:34 pm

Re: Battery

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

Re: Battery

Post 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
You know flattr ? You can Image
reinholdkorst
Posts: 13
Joined: Fri Feb 20, 2015 8:34 pm

Re: Battery

Post by reinholdkorst »

I put the file here

https://drive.google.com/folderview?id= ... sp=sharing

My engles is not verry good sorry.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Battery

Post 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
You know flattr ? You can Image
reinholdkorst
Posts: 13
Joined: Fri Feb 20, 2015 8:34 pm

Re: Battery

Post by reinholdkorst »

I douwload the file from the first post and i save the file in the battery map.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Battery

Post 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
You know flattr ? You can Image
reinholdkorst
Posts: 13
Joined: Fri Feb 20, 2015 8:34 pm

Re: Battery

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

Re: Battery

Post by Pako »

When I download the file and look into it with an editor (notepad.exe)
so the file begins as follows:

Code: Select all

version="0.0"

# Plugins/Battery/__init__.py
#
# Copyright (C)  2014 Pako  ([email protected])
#
# This file is a plugin for EventGhost.
# Copyright (C) 2005-2009 Lars-Peter Voss <[email protected]>
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
You know flattr ? You can Image
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Battery

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

Re: Battery

Post 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š
You know flattr ? You can Image
ashfaaaa
Posts: 2
Joined: Sat Apr 11, 2015 1:52 pm

Re: Battery

Post 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
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Battery

Post by krambriw »

Pako is currently on vacation, will be back later in autumn

Maybe some other user using this plugin can help you out
math
Posts: 3
Joined: Sun Mar 15, 2015 7:20 pm

Re: Battery

Post 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?
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Battery

Post by krambriw »

A lot is not working any longer in Windows 10, there are not only problems with some plugins for EG
math
Posts: 3
Joined: Sun Mar 15, 2015 7:20 pm

Re: Battery

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