Skip to content
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

Evo thermal script will discover evo_64px #5

Open
robmarkcole opened this issue Sep 19, 2019 · 1 comment
Open

Evo thermal script will discover evo_64px #5

robmarkcole opened this issue Sep 19, 2019 · 1 comment

Comments

@robmarkcole
Copy link
Contributor

robmarkcole commented Sep 19, 2019

As title. Discovered as I wish to use both devices on the same pi. A solution would be:

if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument(
        "--portname",
        default="/dev/ttyACM0",
        help="portname, find using ls /dev/tty*",
    )
@robmarkcole robmarkcole changed the title Evo thermal script will discover evo_64px as shared port 5740 Evo thermal script will discover evo_64px Sep 19, 2019
@pl-kabaradjian
Copy link
Contributor

That is definitely a neat idea.
Indeed, the Evo64 class default behaviour is to look for an "Evo-like" serial device if no portname is defined which causes drivers to open the first port where an Evo sensor is recognized. But the constructor was initially designed take a portname as an argument.

We will try to include in the next update but no promises.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants