PiBrewing / craftbeerpi4

GNU General Public License v3.0
57 stars 29 forks source link

plugins #61

Closed dimontau closed 2 years ago

dimontau commented 2 years ago

Hello. Can I add a plugin for physical buttons on gpio? Or how can I migrate the GPIObutton plugin to CraftBeerPi 3.0? will it work if i add setup.py?

prash3r commented 2 years ago

Hey,

cbpi3 and cbpi4 plugins are not compatible at all. If you are familiar with python then this documentation page and the

cbpi create

command should get you started in the right direction.

dimontau commented 2 years ago

I am not familiar with python at all. Can you help me write a plugin?

avollkopf commented 2 years ago

I don't know the plugin and if it is for cbpi3, somebody would need to port it to cbpi4. It won't be working out of the box. Not an issue with cbpi4 -> needs to be opened on the plugin repo.

prash3r commented 2 years ago

i tried to migrate the existing cbpi3 GPIOButton plugin https://github.com/jhhbe/cbpi but my tests regarding api calls are not successfull and at the moment i cant test the GPIO part of it.

Since i wont be able to test this on a Pi for some time i published my current state and if you want to try it you can. Then open any issues on my repo https://github.com/prash3r/cbpi4-GPIOButton

it may just doesnt work on my end because of docker restrictions or it may requires some sort of cookie for the request.

This issue can stay closed.