Last active
November 4, 2018 13:00
-
-
Save ZigFisher/9e8fe2036b3853b0159c15f349aa8229 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| :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