Closed araczkowski closed 4 years ago
open-zwave marge the pull request, soon (after release), we should be able to switch the package to the official OpanZwave repo https://github.com/OpenZWave/open-zwave
Hi, the PR you linked has been merged so is it okay to use the https://github.com/OpenZWave/open-zwave repo now?
Hi @Grimler91 yes it will be better to use the OpenZWave repo, but the fix was merged to the master branch, and it is not released yet. I don't know if it's possible to get the TERMUX_PKG_SRCURL directly from branch, instead of the release archive.
We can use 1.6 and add your extra commit as a patch. I fixed some other build errors in https://github.com/termux/termux-root-packages/commit/a04077a696f7a73f7ddb20fe2682be183a2d7eec
I will watch and learn :) thanks for taking this
We can use 1.6 and add your extra commit as a patch
They don't seem to make releases very often though so it might be easier to package the latest commit..
I see that it uses libusb also, so it should be possible to get it working without root if anyone is motivated enough to patch it (it needs something like this patch).
Could you test this deb: https://grimler.se/dists/testing/misc/binary-aarch64/open-zwave_1.6-git-0_aarch64.deb? (replace aarch64 by your arch if you are on another arch)
Could you test this deb
Unfortunately yesterday I left my z-wave stick in the office, I will grab it later to do the test - and I will let you know :)
I downloaded the arm version of the deb, from https://grimler.se/dists/testing/misc/binary-arm/open-zwave_1.6-git-0_arm.deb to my PC to quick look - it looks ok (similar to the version compiled on device).
But I noticed that the deb size is quite big: 130,8 MB, in my case (the compilation on device) the size was 11,6 MB
to check what is so big in this deb package I did:
mkdir tmp
dpkg-deb -R open-zwave_1.6-git-0_arm.deb tmp
cd temp/data/data/com.termux/files/usr/share
du -h
4,0K ./doc/open-zwave 352K ./doc/openzwave-1.6.0/images+css 3,3M ./doc/openzwave-1.6.0/api/html/search 157M ./doc/openzwave-1.6.0/api/html 157M ./doc/openzwave-1.6.0/api ...
as you can see the /data/data/com.termux/files/usr/share/doc/openzwave-1.6.0/api has 157M there is a lot of big images in this folder, I think that we should exclude this from the deb
Test on arm done - all works :+1:
pkg install libusb curl
curl https://grimler.se/dists/testing/misc/binary-arm/open-zwave_1.6-git-0_arm.deb -o open-zwave.deb && dpkg -i open-zwave.deb
MinOZW /dev/ttyACM0
*green == ok ;)
pkg install pkg-config python
pip install cython==0.28.6 six pyserial 'PyDispatcher>=2.0.5'
pip install python-openzwave --no-deps --install-option="--flavor=shared"
pyozw_check -i -d /dev/ttyACM0 --config_path /data/data/com.termux/files/usr/etc/openzwave
@araczkowski awesome, thanks for testing, I'll add the package!
And thanks for spotting that the docs are very large.
Hi, we were are able to compile open-zwave on Android device with this little change: OpenZWave/open-zwave#2178
The steps in Termux on device are:
After this all is ready, we can plug the USB Zwave stick to USB, the device is visible on: /dev/ttyACM*
and we can use zwave, like below:
Unfortunately we are not able to add this as termux package, the full log is below:
any idea how to fix this?