iMicknl / iMicknl/python-sagemcom-api

[FAST3890V2] Incompatible model using example code

Offen
#1 5 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@iMicknl arbeitet bereits daran.

Seit 23.5.2020.

blocked help wanted new-device
Vorherrschende Sprache
Python
Sterne
141
Forks
49
Ø Merge
7 Std. 54 Min.
Gemergte PRs (30 T.)
4

Beschreibung

Hi. I got this model:

Key Value
Board ID: FAST3890_D0
Symmetric CPU Threads: 2
Build Timestamp: 20190823_1045
Linux Version: 3.14.28-Prod_6.1.2mp2
Wireless Driver Version: 7.14.164.17 (r683874)
Systime: 2020-05-21T11:04:28+01:00
Standard Specification Compliant Docsis 3.1
Hardware Version FAST3890V2 Rev:V2.0
Software Version FAST3890_TDC_50.10.22.T1
Cable Modem Serial Number DM1705907002004
CM certificate Installed

I tried your example script with my informations, but received this error:

christian@desktop:~$ python3 sagemcom.py 
Traceback (most recent call last):
  File "sagemcom.py", line 19, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.8/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "sagemcom.py", line 9, in main
    logged_in = await sagemcom.login()
  File "/home/christian/.local/lib/python3.8/site-packages/sagemcom_api/client.py", line 204, in login
    response = await self.__api_request_async([actions], True)
  File "/home/christian/.local/lib/python3.8/site-packages/sagemcom_api/client.py", line 149, in __api_request_async
    async with session.post(api_host, data="req=" + json.dumps(payload, separators=(',', ':'))) as response:
  File "/home/christian/.local/lib/python3.8/site-packages/aiohttp/client.py", line 1012, in __aenter__
    self._resp = await self._coro
  File "/home/christian/.local/lib/python3.8/site-packages/aiohttp/client.py", line 504, in _request
    await resp.start(conn)
  File "/home/christian/.local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 847, in start
    message, payload = await self._protocol.read()  # type: ignore  # noqa
  File "/home/christian/.local/lib/python3.8/site-packages/aiohttp/streams.py", line 591, in read
    await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: None

Using Python 3.8.2

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.