This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Hello, I am currently working on a personal project. However, I need to send the data collected by phyphox to Python. I modeled the following program based on the depth sensor (lidar) category, but in the Python console, it gets stuck at d=0.2m. I want to obtain the real-time distance from my phone to the object in Python. THANK YOU! Here's my code (PS: I'm hiding my IP):


import requests
import time

while True:
        url = PP_ADDRESS + "/get?" + ("&".join(PP_CHANNELS))
        data = requests.get(url=url).json() 
        for i, control in enumerate(PP_CHANNELS):
            value = data["buffer"][PP_CHANNELS[i]]["buffer"][0]
            print("Channel " + str(control) + " = " + str(value))
    except Exception as e:
        print("An error occurred:", e)
You need to fetch “x” (depth in meter) or “xmm” (depth in millimeter). The container “d” is the width of the LOESS fit in the settings tab.

You can find such details in the experiment's source at

Forum Jump: