Skip to content

Return Value to Script? #6

Open
@tottka

Description

@tottka

Hi,
Thank you for putting this on the web. Your documentation is great.
I've written a small script to get the value from WU & push it out to other devices in my network but can't seem to grab the returned value. This is what I have
import os
os.system("pywu fetch api-key 12345")
a = os.system("pywu -f 1 current temp_f")
print(a)

The results are
50 from pywu as show on console
0 from the value of a

Is this even possible?
thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions