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.


    Apple Watch support

    Pythonista
    5
    7
    3335
    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.
    • ihf
      ihf last edited by

      Has anyone developed anything to support the Apple Watch from Pythonista? Is this possible? Workflow has a watch complication so I suppose it might be possible to write a workflow which gets input runs a pythonista script and returns output to the watch. What would it take to do this without Workflow? While I'm dreaming, if Pythonista had a watch app that it could talk to, it could conceivably populate a face with whatever a user wanted. AFAIK such a capability is absent form the Apple Watch.

      1 Reply Last reply Reply Quote 0
      • jaco
        jaco last edited by

        That would be fantastic. I’m also looking for a way to display custom information on the watch face.

        1 Reply Last reply Reply Quote 0
        • austingreisman
          austingreisman last edited by

          Has anyone figured out a way to connect to the Apple Watch yet? I’ve been trying to import the “SRDevice” class from the Apple SDK, but it seems Pythonista doesn’t have access to it. I wanted to create a battery monitor system that alerts you when your Apple Watch is charged.

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

            @austingreisman, SensorKit availability says iOS 14+. Do you have the beta?

            1 Reply Last reply Reply Quote 0
            • JonB
              JonB last edited by

              How have you "imported" SRDevice?

              You beed to know the sensorkit framework location, then ought to load it

              SensorKit = NSBundle.bundleWithPath_('/System/Library/Frameworks/SensorKit.framework')
              SensorKit.load()

              (I'm guessing the path)

              Then, you should be able to use

              ObjCClass('SRDevice')
              
              mikael 1 Reply Last reply Reply Quote 0
              • mikael
                mikael @JonB last edited by

                @JonB, is that not the same as:

                objc_util.load_framework('SensorKit')
                
                1 Reply Last reply Reply Quote 0
                • JonB
                  JonB last edited by

                  Yeah you are probably right -- I was looking back through very old beta forum posts.

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