@amenomade:
Also 1. habe ich den Entwickler angeschrieben welcher mich an Entwickler für die Synology verwiesen hat.
Es scheint wohl so zu sein, das laut "1sthandy", welcher der Entwickler für die Synology ist, nur die Installationsroutine für die Synology angepasst wurde.
Der Rest scheint Java zu sein.
2. habe ich mit Deinen Tipps der URL herum gespielt und konnte schonmal auf die Header und einige weitere Infos aus der MYSQL zugreifen.
[{"id":1,"attributes":{},"name":"Denny","uniqueId":"627038","status":"online","lastUpdate":"2017-05-07T12:30:33.422+0000","positionId":1355,"groupId":0,"geofenceIds":[],"phone":"xxxxxxxxxxx","model":"BlackBerry","contact":"Denny","category":"car"},{"id":2,"attributes":{},"name":"Sabine","uniqueId":"264804","status":"online","lastUpdate":"2017-05-07T12:28:08.854+0000","positionId":1353,"groupId":0,"geofenceIds":[],"phone":"xxxxxxxxxxxx","model":"HTC one Mini II","contact":"Sabine","category":"person"},{"id":3,"attributes":{},"name":"Mama","uniqueId":"519929","status":"online","lastUpdate":"2017-05-07T12:29:26.476+0000","positionId":1354,"groupId":0,"geofenceIds":[],"phone":"xxxxxxxxxxxx","model":"Samsung J5","contact":"Beate","category":"person"}]
das list httpmodlistdevice:
Internals:
BUSY 0
CHANGED
DEF http://192.168.178.20:55000/api/devices?payload=[fhem,fhem] 60
HTTPCookies
Interval 60
JSONEnabled 1
LASTSEND 1494160844.04444
MainURL http://192.168.178.20:55000/api/devices?payload=[fhem,fhem]
ModuleVersion 3.3.9 - 23.3.2017
NAME Traccar_HTTPMOD_Login
NR 399
STATE ???
TRIGGERTIME 1494160904.04326
TRIGGERTIME_FMT 2017-05-07 14:41:44
TYPE HTTPMOD
addr http://192.168.178.20:55000
buf
code 415
conn
data
displayurl http://192.168.178.20:55000/api/devices?payload=[fhem,fhem]
header
host 192.168.178.20
httpheader HTTP/1.1 415 Unsupported Media Type
Date: Sun, 07 May 2017 12:40:44 GMT
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Origin: *
Content-Length: 61
Server: Jetty(9.2.21.v20170120)
httpversion 1.0
hu_blocking 0
hu_filecount 1195
hu_portSfx :55000
ignoreredirects 0
loglevel 4
path /api/devices?payload=[fhem,fhem]
protocol http
redirects 0
timeout 2
url http://192.168.178.20:55000/api/devices?payload=[fhem,fhem]
value 0
Httpcookiehash:
QUEUE:
Readings:
Request:
data
header
ignoreredirects 0
retryCount 0
type update
url http://192.168.178.20:55000/api/devices?payload=[fhem,fhem]
value 0
Sslargs:
Attributes:
enableCookies 1
extractAllJSON 1
room Halle
verbose 5
So hier noch der log:
2017.05.07 18:26:08 4: Traccar_HTTPMOD_Login: GetUpdate called (update)
2017.05.07 18:26:08 4: Traccar_HTTPMOD_Login: update timer modified: will call GetUpdate in 60.0 seconds at 2017-05-07 18:27:08
2017.05.07 18:26:08 4: Traccar_HTTPMOD_Login: AddToQueue adds update, initial queue len: 0
2017.05.07 18:26:08 5: Traccar_HTTPMOD_Login: AddToQueue adds type update to URL http://192.168.178.20:55000/api/devices?payload=[fhem,fhem], no data, no headers, retry 0
2017.05.07 18:26:08 5: Traccar_HTTPMOD_Login: HandleSendQueue called, qlen = 1
2017.05.07 18:26:08 4: Traccar_HTTPMOD_Login: HandleSendQueue sends request type update to URL http://192.168.178.20:55000/api/devices?payload=[fhem,fhem], No Data, No Header,
timeout 2
2017.05.07 18:26:08 4: HttpUtils url=http://192.168.178.20:55000/api/devices?payload=[fhem,fhem]
2017.05.07 18:26:08 5: HttpUtils request header:
GET /api/devices?payload=[fhem,fhem] HTTP/1.0
Host: 192.168.178.20:55000
User-Agent: fhem
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
2017.05.07 18:26:08 4: http://192.168.178.20:55000/api/devices?payload=[fhem,fhem]: HTTP response code 415
2017.05.07 18:26:08 4: HttpUtils http://192.168.178.20:55000/api/devices?payload=[fhem,fhem]: Got data, length: 61
2017.05.07 18:26:08 5: HttpUtils response header:
HTTP/1.1 415 Unsupported Media Type
Date: Sun, 07 May 2017 16:26:08 GMT
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Origin: *
Content-Length: 61
Server: Jetty(9.2.21.v20170120)
2017.05.07 18:26:08 4: Traccar_HTTPMOD_Login: Read callback: request type was update retry 0,
Header: HTTP/1.1 415 Unsupported Media Type
Date: Sun, 07 May 2017 16:26:08 GMT
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Origin: *
Content-Length: 61
Server: Jetty(9.2.21.v20170120),
Body: HTTP 415 Unsupported Media Type - NotSupportedException (...)
2017.05.07 18:26:08 3: Traccar_HTTPMOD_Login: error while parsing JSON data: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "HTTP 415 Unsupported...") at (eval 353189) line 1.
2017.05.07 18:26:08 5: Traccar_HTTPMOD_Login: looking for Cookies in HTTP/1.1 415 Unsupported Media Type
Date: Sun, 07 May 2017 16:26:08 GMT
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Origin: *
Content-Length: 61
Server: Jetty(9.2.21.v20170120)
2017.05.07 18:26:08 5: Traccar_HTTPMOD_Login: ExtractSid called, context reading, num
2017.05.07 18:26:08 5: Traccar_HTTPMOD_Login: Checking SID with JSON 1ohywg1ok72dl10939tfbvtgam
2017.05.07 18:26:08 4: Traccar_HTTPMOD_Login: CheckAuth decided no authentication required
2017.05.07 18:26:08 3: Traccar_HTTPMOD_Login: no parsed JSON structure available
2017.05.07 18:26:08 5: Traccar_HTTPMOD_Login: Read starts parsing response to update with defined readings:
2017.05.07 18:26:08 3: Traccar_HTTPMOD_Login: Read response to update didn't match any Reading
2017.05.07 18:26:08 5: Traccar_HTTPMOD_Login: HandleSendQueue called, qlen = 0
Gruss Denny