Grove temp sensor 1.2.py

Hello iv been messing with the sample code for

And it is working well but was curious if there’s a way to print just an integer? Currently it returns

“Hat Name = ‘Grove Bade Hat RPi’
As a header to every sensor iv worked with. How do I remove that? Thanks
Sent from my iPhone

Hell,

pls check this file and change the line of code:

print(“Hat Name = ‘{}’”.format(self.name))

Thanks

best rgds
Mancy

Thanks I tried that but it’s still giving me the same issue, is there anything else I need to remove?
Sent from my iPhone

Hello,

Pls tell me that after you modify the code, have you installed it?


Thanks

best rgds
Mancy

Yes I updated the file to pi but it still gives “Hat Name = ‘Grove Base Hat RPi’
Thankyou
Sent from my iPhone

Hello,

after you upload, have you installed it? like the following steps:

Install grove.py

From source code

git clone https://github.com/Seeed-Studio/grove.py
cd grove.py
# Python2
sudo pip install .
# Python3
sudo pip3 install .
Thanks

best rgds
Mancy

Do I need to install helper.py from terminal?
When I tried I got:
“Could not find a version that satisfies the requirement helper.py…”

I replaced the original on the pi with the edited one with ssh

Thankyou for the help

Hello,

pls find the folder /grove.py/grove/helper/ and find if there is file named “***.pyc”, pls delete it and try again.
Thanks

best rgds
Mancy

It seems to have worked when I retired to install it, thankyou. Do you know if the cheaper basehat for rpi works with node red? Tried using that but it won’t output the sensor data
Sent from my iPhone

Hi there,


Sorry, it does not support the node-red. Thanks.

best rgds
Bill