Commit 93143edc authored by Simon Delamare's avatar Simon Delamare

[lyon] Add /pdus/ directory to ref API for Lyon (#5438)

parent 86851ece
{
"model": "",
"sensors": [
{
"power": {
"per_outlets": true,
"wattmetre": {
"available": true,
"unit": "W",
"www": {
"url": "http://wattmetre.lyon.grid5000.fr/GetWatts-json.php"
}
}
}
}
],
"type": "pdu",
"uid": "wattmetre",
"vendor": "OmegaWatt"
}
\ No newline at end of file
site :lyon do |site_uid|
pdu "wattmetre" do |pdu_uid|
vendor "OmegaWatt"
model ""
sensors [
{
:power => {
:per_outlets => true,
:wattmetre => {
:available => true,
:www => { :url => 'http://wattmetre.lyon.grid5000.fr/GetWatts-json.php' },
:unit => "W",
}
}
}
]
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment