firmware/src/packages/fff/fff-alfred-monitoring-proxy/files/usr/sbin/alfred-monitoring-proxy

8 lines
256 B
Bash
Executable File

#!/bin/ash
api_url="https://monitoring.freifunk-franken.de/api/alfred"
fetch_id="64"
(echo -n "{\"$fetch_id\": "; alfred-json -r "$fetch_id"; echo -n "}") | \
curl -k -v -H "Content-type: application/json; charset=UTF-8" -X POST --data "@-" $api_url