I've configured the config file to start sending data to a webhook:
<entry key='forward.enable'>true</entry>
<entry key='forward.url'>https://webhook.site/738f7eff-8923-4b9a-b5e8-40fdf552c4c2?name={name}&uniqueId={uniqueId}&gprms={gprmc}&protocol={protocol}&fixTime={fixTime}&lat={latitude}&lon={longitude}&altitude={altitude}&speed={speed}&course={course}&valid={valid}&other={other}</entry>
<entry key='forward.json'>true</entry>
I receive:
name {name}
uniqueId 353813082828087
gprms $GPRMC,110005.000,A,5221.0413,N,00453.2712,E,0.00,0.00,160619,,*09
protocol {protocol}
fixTime 1560682805000
lat 52.350688
lon 4.887853
altitude {altitude}
speed {speed}
course {course}
valid {valid}
other {other}
As you can see, a lot of parameters are not substituted with the accurate values. I'm using the iPhone app. Does anybody know what I am doing wrong? In the GUI I am able to see the altitude, valid, speed and course values, so they are known to the server.
Another thing is that I still receive a GET request with parameters instead of a POST request with a JSON payload.
To get POST with JSON, you need to configure forward.json
config parameter.
I've configured the config file to start sending data to a webhook:
<entry key='forward.enable'>true</entry> <entry key='forward.url'>https://webhook.site/738f7eff-8923-4b9a-b5e8-40fdf552c4c2?name={name}&uniqueId={uniqueId}&gprms={gprmc}&protocol={protocol}&fixTime={fixTime}&lat={latitude}&lon={longitude}&altitude={altitude}&speed={speed}&course={course}&valid={valid}&other={other}</entry> <entry key='forward.json'>true</entry>
I receive:
name {name}
uniqueId 353813082828087
gprms $GPRMC,110005.000,A,5221.0413,N,00453.2712,E,0.00,0.00,160619,,*09
protocol {protocol}
fixTime 1560682805000
lat 52.350688
lon 4.887853
altitude {altitude}
speed {speed}
course {course}
valid {valid}
other {other}
As you can see, a lot of parameters are not substituted with the accurate values. I'm using the iPhone app. Does anybody know what I am doing wrong? In the GUI I am able to see the altitude, valid, speed and course values, so they are known to the server.
Another thing is that I still receive a GET request with parameters instead of a POST request with a JSON payload.