Closed djerveren closed 11 months ago
Hello,
in the case of simpleLastData, the error means that the module name (here "internal") is unknown. This is just a name that you can define for each of your devices in the Netatmo web interface. It's easier to remember that a temperature module is named "Bedroom" rather than "76:03:24:12:56:35" 😁
You must set names for your modules in the web interface and reuse the same names in your code.
For the second example, it's related to a recent update of the library that has not yet been published to pypi. You should pick the library directly from github and test again. Sorry for the late update.
Ah, awesome! Everything working as intended now:
$ ./samples/simpleLastData
Current temperature (inside/outside): 21.3 / 17.1 °C
Many thanks. Close this. :)
Hello there. I'm sorry if this turns out to be a support ticket, but I'm kind of at a loss here.
Before the Netatmo API auth changes, I was able to use a simple bash script to pull indoors and outdoors temperature data from my weatherstation. When that broke, I didn't have the energy to troubleshoot, so I figured I'd try to find something that had already been written, and I stumbled on this project.
I cloned your repository, created a new token in my pre-existing app, populated
~/.netatmo.credentials
, installed your library with pip and made an attempt to run some of your sample scripts. The one I was interested in, in particular, wassamples/simpleLastData
as it appears to show the values I'm after, but when I run it, I get:Sadly, I don't know anything about Python programming, so I don't even know where to start troubleshooting this, but it seems to at least authenticate properly though, because if I run the
samples/printAllLastData
script, it does print correct values at the top, before spitting out the traceback:In my bash script, I was able to pull the values and populate an array with:
Any ideas why things are breaking with your library?