Comments (6)
hi thomas-villagers,
which fritzbox and which version (7.00/7.01) exactly do you use? And which devices have you connected or do you expect from the response?
from pydect200.
Hi mperlet.
Thank you for the quick reply.
I have one FRITZ!DECT 200 wall plug switch and Fritz!OS 07.01 on a 7490.
- thomas
from pydect200.
I can only reproduce the error if I use the wrong password. The error handling is not good at this point yet.
In [1]: from PyDect200 import PyDect200
In [2]: f = PyDect200("correct_password")
In [3]: f.get_device_names()
Out[3]:
{u'0876xxx': u'Steckdose 1',
u'0875xxx': u'Steckdose 2'}
In [4]: f.sid
Out[4]: u'27bbc6f485e6e123'
In [5]: f2 = PyDect200("wrong_password")
In [6]: f2.get_device_names()
Out[6]: {u'inval': u'inval'}
In [7]: f2.sid
Out[7]: u'0000000000000000'
Have you possibly created a user with a username for the login? This is actually not implemented yet. I'll add that later.
from pydect200.
yes, I think that's the point. I HAD to add a user with username a while ago for NAS related stuff.
Odd, before the upgrade to 7.01 your script worked fine.
from pydect200.
Hey @thomas-villagers,
i added a username argument with PR: #7.
So after a pip install --upgrade PyDect200
you shoud get version 0.0.16.
You can use
f = PyDect200('password', username='fritzbox-user')
to create instance.
I also added a login_ok()
method to check a valid fritzbox session id. Hopefully it'll help you.
from pydect200.
great & works, thank you!
from pydect200.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pydect200.