You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have used teslapy to create a process than can either run in the terminal or as a daemon. When I run it in the terminal it successfully talks to the tesla API and starts/stops my car charging. If I run it as a daemon then it no longer works. I think it has something to do with stdin being closed. When running it as a daemon it keeps reporting this error: "EOF when reading a line". If instead of connecting stdin to /dev/null, I connect it to a file containing just a newline then I get this error instead: "Please supply either code or authorization_response parameters.", hence why I think it is related to stdin being closed.
The text was updated successfully, but these errors were encountered:
Where will it look for the cache file? Perhaps if it used a fixed location (home directory of the user running the daemon for example) it might find it. I have made a temporary modification to your code locally to make the location of the cache.json file be in /tmp and now the daemon works. So it seems to be that it cannot find the cache file when running as a daemon.
I have used teslapy to create a process than can either run in the terminal or as a daemon. When I run it in the terminal it successfully talks to the tesla API and starts/stops my car charging. If I run it as a daemon then it no longer works. I think it has something to do with stdin being closed. When running it as a daemon it keeps reporting this error: "EOF when reading a line". If instead of connecting stdin to /dev/null, I connect it to a file containing just a newline then I get this error instead: "Please supply either code or authorization_response parameters.", hence why I think it is related to stdin being closed.
The text was updated successfully, but these errors were encountered: