Broadlink rmpro plugin

Got a good idea? You can suggest new features here.
Post Reply
User avatar
Medy
Experienced User
Posts: 129
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Broadlink rmpro plugin

Post by Medy » Sat Dec 07, 2019 11:12 am

Just wanted to ask if it would be possible to get this library : https://github.com/mjg59/python-broadlink
to run with the current eventghost build ?

If you could help me make it runnable I could try creating a plugin .. to learn / send commands...

User avatar
kgschlosser
Site Admin
Posts: 5495
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Broadlink rmpro plugin

Post by kgschlosser » Sun Dec 08, 2019 6:21 am

ok so this is the short version of how to use/install python libraries into EG.

you need to download and install these 2 things
http://www.stackless.com/binaries/pytho ... ckless.msi
https://download.microsoft.com/download ... thon27.msi

MAKE SURE YOU DO NOT HAVE THE INSTALLER SET THE PATH OR ENVIRONMENT

this is assuming you used the default installation path

once that is installed open a command prompt and key in the following commands

Code: Select all

c:\stackless27\python -m pip install -upgrade pip
c:\stackless27\scripts\pip install setuptools
that is going to upgrade the python package installers for you.

most libraries\packages are on pypi (pypi.org) in order to install a package from pypi open up a command prompt and key in the following.

Code: Select all

c:\python27\scripts\pip install PACKAGE_NAME
that is all there is to it.


If you are grabbing a package from github you can use the following to download and install it.

Code: Select all

pip install https://github.com/{USER NAME}/{REPOSITORY NAME}/tarball/{BRANCH NAME}#egg={PACKAGE NAME}
or this will also work i believe.

Code: Select all

pip install git+https://github.com/{USER NAME}/{REPOSITORY NAME}
after you install a package you will need to restart EG in order for it to be accessible.
If you like the work I have been doing then feel free to Image

User avatar
Medy
Experienced User
Posts: 129
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: Broadlink rmpro plugin

Post by Medy » Sun Dec 08, 2019 8:38 am

wait so if I use this way of installing , then eg can acces the packages by default since its python 2.7 ?


I have the latest python already installed will this be an issue ?


do you think that github library will be runnable ? I dont want to start on a fruitless endevour ?

User avatar
kgschlosser
Site Admin
Posts: 5495
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Broadlink rmpro plugin

Post by kgschlosser » Mon Dec 09, 2019 6:45 am

it works. if you have python 2.7 x86 installed and you install packages into that Python EG will be able to load most packages. we have run across a few that do not work.. the QT library being one of them.
If you like the work I have been doing then feel free to Image

User avatar
Medy
Experienced User
Posts: 129
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: Broadlink rmpro plugin

Post by Medy » Mon Dec 09, 2019 10:03 am

alrighty that would be perfect. will give that a shot.

User avatar
Medy
Experienced User
Posts: 129
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: Broadlink rmpro plugin

Post by Medy » Mon Dec 09, 2019 12:49 pm

Ok library seems to work ... but device discovery doesnt seem to work...

User avatar
kgschlosser
Site Admin
Posts: 5495
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Broadlink rmpro plugin

Post by kgschlosser » Mon Dec 09, 2019 6:33 pm

then that is an issue with the library and has nothing to do with EG at all.
If you like the work I have been doing then feel free to Image

User avatar
Medy
Experienced User
Posts: 129
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: Broadlink rmpro plugin

Post by Medy » Tue Dec 10, 2019 6:20 am

yes thx anyway ... this will be helpful nonetheless

Post Reply