-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example tag_test.py is wrong — no output #59
Comments
Hi @bevolz! Where is this tag_test.py script? |
Hi:
It is at https://github.com/ttu/ruuvitag-sensor/blob/master/install_guide_pi.md. Sorry for not including the link.
…---
Open nano editor and create test script tag_test.py
$ nano tag_test.py
Add this content. Exit with Ctrl-X and select Y to save
from ruuvitag_sensor.ruuvi import RuuviTagSensor
RuuviTagSensor.find_ruuvitags()
Execute script just created. Expect the same result as from find all tags executed from the command line.
$ python3 tag_test.py
---
* Bernie
From: Tomi Tuhkanen <notifications@github.com>
Reply-To: ttu/ruuvitag-sensor <reply@reply.github.com>
Date: Wednesday, November 21, 2018 at 4:19 PM
To: ttu/ruuvitag-sensor <ruuvitag-sensor@noreply.github.com>
Cc: Bernie Volz <volz@cisco.com>, Mention <mention@noreply.github.com>
Subject: Re: [ttu/ruuvitag-sensor] Example tag_test.py is wrong — no output (#59)
Hi @bevolz<https://github.com/bevolz>!
Where is this tag_test.py script?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#59 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABm3YSHf86UKtJiBwmzu-amBco9nOXT9ks5uxcNEgaJpZM4YsGlc>.
|
Thanks! Didn't remember that there was an example in the install guide :) Would you like to fix that and do a PR? |
Hi ... OK, will do.
- Bernie
On Nov 22, 2018, at 2:50 PM, Tomi Tuhkanen <notifications@github.com<mailto:notifications@github.com>> wrote:
Thanks! Didn't remember that there was an example in the install guide :)
Would you like to fix that and do a PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#59 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABm3YaNkBoEIHIZF63BcV5uQ4PyblOJbks5uxv_vgaJpZM4YsGlc>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to change the tag_test.py script to get any output. Had to change it to:
Import ruuvitag_sensor
From ruuvitag_sensor.log import log
From ruuvitag_sensor.ruuvi import RuuviTagSensor
ruuvitag_sensor.log.enable_console()
RuuviTagSensor.find_ruuvitags()
(The import & from should be lower case).
The text was updated successfully, but these errors were encountered: