Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Raritan Driver (energy usage sensor) #352

Open
w-le opened this issue Aug 19, 2022 · 0 comments
Open

Request: Raritan Driver (energy usage sensor) #352

w-le opened this issue Aug 19, 2022 · 0 comments

Comments

@w-le
Copy link
Contributor

w-le commented Aug 19, 2022

Integration to Raritan can be done by Power IQ web services REST API. This integration is based on a Basic Access Authentication and all request bodies will need to be in JSON format although GET methods don’t require any content in the body of the request.

The relevant API functional area for this project is Power and Sensor reading (see page 40 of API guide) which consist of GET methods to the following endpoints:
/api/v2/outlet_readings
/api/v2/outlet_readings_rollups/hourly
/api/v2/outlet_readings_rollups/daily
/api/v2/outlet_readings_rollups/monthly
/api/v2/circuit_breaker_readings
/api/v2/circuit_breaker_readings_rollups/hourly
/api/v2/circuit_breaker_readings_rollups/daily
/api/v2/circuit_breaker_readings_rollups/monthly
/api/v2/inlet_readings
/api/v2/inlet_readings_rollups/hourly
/api/v2/inlet_readings_rollups/daily
/api/v2/inlet_readings_rollups/monthly

An example of sensor readings is shown below. The sensor readings are created from data collected from PDU sensors and the response will have reading time and value. If rollups endpoint is chosen, the value will be an average of the rollup interval chosen (hourly, daily, monthly)

SensorReadings
{"sensor_reading":
{
"id":4950,
"reading_time":"2011/10/19 14:39:34 +0000",
"value":44.0,
"sensor_id":3,
"max_value":null,
"min_value":null,
"uom":"%"
}
}

SensorReadings*Rollups
{
"sensor_reading_hourly_rollup": {
"id": 1,
"rollup_interval": 1,
"reading_time": "2011/10/07 14:00:00 +0000",
"min_value": 31.0,
"max_value": 31.0,
"average_value": 31.0,
"sensor_id": 45
}
}

Sensors must be retrieved to access sensor specs. I.e.

{"sensor":
{
"id":10,
"pdu_id":28,
"type":"HumiditySensor",
"label":"H6_45.246",
"removed":null,
"position":"INLET",
"reading":{},
"state":{}
}
}

For more info, chat to Mario or Will

@w-le w-le added the status: blocked This issue is blocked. label Sep 6, 2022
@jeremyw24 jeremyw24 removed the status: blocked This issue is blocked. label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants