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

Return Value to Script? #6

Open
tottka opened this issue May 11, 2017 · 0 comments
Open

Return Value to Script? #6

tottka opened this issue May 11, 2017 · 0 comments

Comments

@tottka
Copy link

tottka commented May 11, 2017

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

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

1 participant