Closed georgeExotic closed 11 months ago
This is what I did to successfully install the library on my raspberry pi.
sudo apt update sudo apt install git sudo apt-get install unzip patch xsltproc gcc libreadline-dev python3-dev python3-setuptools
git clone https://github.com/gotthardp/python-mercuryapi.git
cd python-mercuryapi/
nano Makefile - delete last two lines
download inside python-mercuryapi folder the API from Jadak (https://www.jadaktech.com/wp-content/uploads/2022/08/mercuryapi-AHAB-1.35.2.72-1.zip)
folder tree looks like this: . ├── LICENSE ├── long_description.txt ├── Makefile ├── MANIFEST.in ├── mercuryapi-AHAB-1.35.2.72-1.zip ├── mercuryapi_osx.patch ├── mercuryapi.patch ├── mercuryapi.pyproj ├── mercuryapi.sln ├── mercury.c ├── README.md ├── setup.py ├── setup-win.py └── test.py
make
sudo make install
Commands I ran in the raspberry pi 4:
sudo apt update sudo apt upgrade sudo apt install git sudo apt-get install unzip patch xsltproc gcc libreadline-dev python3-dev python3-setuptools git clone https://github.com/gotthardp/python-mercuryapi.git
Download mercuryapi-BILBO-1.37.0.80.zip API from https://www.dropbox.com/sh/vy5og9bawg2mygk/AACguVDDJ1Cet8mlYTmANAbra?dl=0
Add API zip to python-mercuryapi.git
Modify Makefile to match zip file, here is my Makefile:
This is how my folder looked:
make
This is the last bit from the terminal:
Sudo make install
When I run test.py I get the following error:
I can't use any of the functions to actually get readings from the device. However, the code can access the device.
I need help with reading the tags data.