Homebridge temperature humidity sensor

Hello,
I have an emonpi running, I have some temperature sensors that I log.
I want to create some temperature accessories in homebridge that can fetch the data of the emonpi.

I see that I can fetch the feeds data with a simple url:
http://192.168.1.252/feed/fetch.json?ids=4,5
and the respond is:

[
  24.4,
  37.3
]

I found a homebridge plugin named " Homebridge Http Temperature Humidity Sensor" that need the http respond to be in the following format:

{
    "temperature": 25.8,
    "humidity": 38
}

Is there a way to manipulate the url or somehow the json output to make it as the requested format?

Best regards

Sound like a job for Node-Red.

1 Like