02-17-2025, 10:46 PM
(02-11-2025, 07:01 PM)kencottrell Wrote: If I can't use the web editor to generate the config the uploaded <network> block, what is the alternative approach?You need to edit the source itself for now, unfortunately.
Quote:I have tried to to use this command to upload a /phyphox command from a local web server, but how can I do this if the GPS experiment is already running?First, you need to activate the “remote access” in the three dots menu. An ip address will show up then in the footer and that's just what you need as source address, so something like
I assume I have to insert the config file before I start the GPS experiment, otherwise how can it listen on port 80?
phone_url = myphone-ip-address/control?cmd=load&url=mylaptop-ip-address:8000/myfile.phyphox"
try:
response = requests.get(phone_url)
print(response.status_code, response.text)
except Exception as e:
print(f"Failed to load config file: {e}")
Code:
phone_url = footer-ip-address:optional-port/get?…
The response is in JSON format.