RFQuack icon indicating copy to clipboard operation
RFQuack copied to clipboard

Troublesome installation and use of cli

Open maxdd opened this issue 1 year ago • 3 comments

Hello, This is not really a bug but it's more related to the flow in using this project. I'm currently struggling to find a somewhat flawless or the intended installation method and usage. I have compiled and flashed my esp32devikit with make clean build flash and i get

[RFQK]        134 T: Standalone mode network setup: done!
...
[RFQK]        630 T: Setup is over.
[RFQK]        630 T: Transport is sending 2 bytes on topic RFQUACK/out/set/discovery/rfquack_CmdReply/discovery
<RFQUACK/out/set/discovery/rfquack_CmdReply/discovery~CAA=␀[RFQK]       1652 T: Starting main loop.

but the proper usage of the cli in this repo is somewhat undocumented, the repo says

The CLI is now integrated in this repository. The old rfquack/RFQuack-cli repository is no longer used nor maintained. but unless a setup.py isn't provided the rfq command will never work. It also misses some dependencies as well (loguru).

maxdd avatar Nov 02 '24 13:11 maxdd

The only reasonable solution i've found was

make docker-build-image
docker run --device /dev/ttyUSB0 --user=root --rm -it rfquack/rfquack bash
pip install loguru rich
cd client
PYTHONPATH=$PYTHONPATH:$(pwd) python3 rfquack/cli.py tty -P /dev/ttyUSB0

maxdd avatar Nov 02 '24 13:11 maxdd

I saw your comment on missing the import time ; did you solve this? If yes, do you mind sending a pull request?

phretor avatar Nov 02 '24 16:11 phretor

If you are talking about the import time i generally type it right before starting interacting with the cli.

maxdd avatar Nov 02 '24 19:11 maxdd