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.

Using mobile phone gps to notify location for panic button
#1
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>
...
Reply


Messages In This Thread
Using mobile phone gps to notify location for panic button - by kencottrell - 02-07-2025, 06:15 PM

Forum Jump: