Skip to content

Instantly share code, notes, and snippets.

@ZigFisher
Last active November 4, 2018 13:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ZigFisher/9e8fe2036b3853b0159c15f349aa8229 to your computer and use it in GitHub Desktop.
{
:global lat
:global lon
/system gps monitor once do={
:set $lat $("latitude")
:set $lon $("longitude")
}
tool fetch mode=http url="http://sight.octonix.net/index.php" port=80 http-method=post \
http-data=("{\"lat\":\"" . $lat . "\",\"lon\":\"" . $lon . "\"}") http-content-type="application/json"
:put ("{\"lat\":\"" . $lat . "\",\"lon\":\"" . $lon . "\"}")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment