02-07-2025, 06:15 PM
(This post was last modified: 02-08-2025, 01:33 AM by kencottrell.
Edit Reason: Clarify and shorten
)
Hello everyone.
I am involved in developing a “panic button” app for mobile phones and watches so that a worker in a hotel, hospital, or other environment can press a button and have their location sent to a safety response team. I’ve written some python code on my laptop that uses the GPS experiment to poll lat, Lon, z, and time data every second.
I am trying to setup the GPS app to send info to my local python flask web service / sensor-data endpoint.
I've editted the .phyphox file to include this entry, then loaded into a new experiment and used QR to create my new experiment. However I do not see the network block in the generated XML nor do I see any updates to <>/config output. Can you see anything wrong?
...
<network>
<connection id="gps_stream" service="http/post" address="http:---.---.---.---/sensor-data" interval="1">
<send id="gps_latitude" type="buffer" datatype="number" keep="false">lat</send>
<send id="gps_longitude" type="buffer" datatype="number" keep="false">lon</send>
<send id="gps_longitude" type="buffer" datatype="number" keep="false">z</send>
</connection>
</network>
...
I am involved in developing a “panic button” app for mobile phones and watches so that a worker in a hotel, hospital, or other environment can press a button and have their location sent to a safety response team. I’ve written some python code on my laptop that uses the GPS experiment to poll lat, Lon, z, and time data every second.
I am trying to setup the GPS app to send info to my local python flask web service / sensor-data endpoint.
I've editted the .phyphox file to include this entry, then loaded into a new experiment and used QR to create my new experiment. However I do not see the network block in the generated XML nor do I see any updates to <>/config output. Can you see anything wrong?
...
<network>
<connection id="gps_stream" service="http/post" address="http:---.---.---.---/sensor-data" interval="1">
<send id="gps_latitude" type="buffer" datatype="number" keep="false">lat</send>
<send id="gps_longitude" type="buffer" datatype="number" keep="false">lon</send>
<send id="gps_longitude" type="buffer" datatype="number" keep="false">z</send>
</connection>
</network>
...