Page 1 sur 1

Besoin d'aide pour localisation Android

Publié : 15 oct. 2016, 13:34
par Chris54220
Bonjour

je cherche a localiser mon téléphone android j'ai trouve une Solution avec Google
si avec mon Raspi je consulte cette adresse
qui me renvois
HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Date: Sat, 15 Oct 2016 11:28:02 GMT
Vary: X-Origin
Content-Type: application/json; charset=UTF-8
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: quic=":443"; ma=2592000; v="36,35,34"
Accept-Ranges: none
Vary: Origin,Accept-Encoding
Transfer-Encoding: chunked

{
"location": {
"lat": 48.7042527,
"lng": 6.1810541
},
"accuracy": 2695.0
}
je cherche a déchiffré ce fichier pour qu'il me reste que la localisation et l'envoyer a Domoticz

Merci d'avance

Re: Besoin d'aide pour localisation Android

Publié : 15 oct. 2016, 17:21
par patrice

Re: Besoin d'aide pour localisation Android

Publié : 15 oct. 2016, 19:34
par Chris54220
patrice a écrit :Bonjour ./jq est ton ami
http://easydomoticz.com/manipuler-les-d ... -en-shell/
Merci j'ai deja essai mais je ne y arrive pas voila ce qui en ressort
pi@Domoticz:~/domoticz/scripts/shell $ ./Localisation.sh
Warning: Couldn't read data from file "your_filename.json", this makes an
Warning: empty POST.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 83 0 83 0 0 214 0 --:--:-- --:--:-- --:--:-- 215
parse error: Invalid numeric literal at line 1, column 9

pi@Domoticz:~/domoticz/scripts/shell $