I'm trying to load the Sydney Fuel data (https://www.fuelcheck.nsw.gov.au/app) into Node-Red using the proposed API reuqtest (same comes from ChatGPT).
But somehow I'm missing something.
Has anybody had any luck with this ?
[
{
"id": "432632c571592cad",
"type": "inject",
"z": "f239c7a83fa7019c",
"name": "Get Fuel Data",
"props": [],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 190,
"y": 1120,
"wires": [
[
"ab4e830dce87f6dc"
]
]
},
{
"id": "ab4e830dce87f6dc",
"type": "http request",
"z": "f239c7a83fa7019c",
"name": "Fetch from FuelCheck",
"method": "GET",
"ret": "txt",
"paytoqs": "ignore",
"url": "https://api.nsw.gov.au/FuelPriceCheck/v2/fuel/prices/nearest?latitude=-33.8731&longitude=151.2065&fueltype=U91",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": false,
"headers": [
{
"keyType": "other",
"keyValue": "x-api-key",
"valueType": "other",
"valueValue": "abc"
}
],
"x": 390,
"y": 1120,
"wires": [
[
"a58de6ca9ade50a0"
]
]
},
{
"id": "a58de6ca9ade50a0",
"type": "debug",
"z": "f239c7a83fa7019c",
"name": "Fuel API Output",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 600,
"y": 1120,
"wires": []
}
]