omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Access cellular service strength?

    Pythonista
    2
    4
    1379
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • kylenessen
      kylenessen last edited by

      Hi all,

      I want to write a script that will repeatedly log my location and cell service strength so I can identify dead zones along my commute. Gaining access to location information seems simple enough, but I'm wondering if anyone can help me get access to cell strength.

      Here's one article that shows how to manually access what I'm looking for, rsrp0.

      Thanks for the help!

      mikael 1 Reply Last reply Reply Quote 0
      • mikael
        mikael @kylenessen last edited by

        @kylenessen, try this, not documented API, and just returns 100 for me, could be blocked by Apple.

        
        from objc_util import *
        import ctypes
        
        load_framework('CoreTelephony')
        
        CTGetSignalStrength = c.CTGetSignalStrength
        CTGetSignalStrength.restype = ctypes.c_int
        CTGetSignalStrength.argtypes = []
        
        print(CTGetSignalStrength())
        
        1 Reply Last reply Reply Quote 0
        • kylenessen
          kylenessen last edited by

          It's returning 100 for me as well :/

          Will have to reconsider my project. Thank you for the code, though!

          1 Reply Last reply Reply Quote 0
          • kylenessen
            kylenessen last edited by ccc

            For any future readers, the app Sensorly seems to do exactly what I want. Unfortunately, development seems to have officially stopped.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors