From 0effd338800f2b0cae549b6a6f7e7a79569bc3e4 Mon Sep 17 00:00:00 2001 From: aiglauer Date: Wed, 8 Apr 2026 08:21:24 +0200 Subject: [PATCH] Add ability to fetch SIM information and signal strength --- gli4py/glinet.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gli4py/glinet.py b/gli4py/glinet.py index 376c750..274b429 100644 --- a/gli4py/glinet.py +++ b/gli4py/glinet.py @@ -179,6 +179,28 @@ async def router_info(self) -> dict: return response + async def modem_info(self) -> dict: + """Retrieves information about the modems, requires authentication.""" + response = await self._request( + self.gen_sid_payload("call", ["modem", "get_info"], self.sid) + ) + return response + + async def modem_sim_info(self) -> dict: + """Retrieves information about the modems, requires authentication.""" + response = await self._request( + self.gen_sid_payload("call", ["modem", "get_sim_info"], self.sid) + ) + return response + + async def modem_sim_signal(self) -> dict: + """Retrieves information about the modems, requires authentication.""" + response = await self._request( + self.gen_sid_payload("call", ["modem", "get_sim_signal"], self.sid) + ) + return response + + async def router_get_status(self) -> dict[str, list[dict[str, Any]]]: """Retrieves the status of the router, requires authentication.""" response: dict[str, list[dict[str, Any]]] = await self._request(