Commit da4ccacd authored by Elodie Bertoncello's avatar Elodie Bertoncello
Browse files

[Grenoble] add generator script for adonis pdus (does not work) for Maxence

parent 512e949a
site :grenoble do |site_uid|
2.times do |i|
pdu "adonis-pdu-#{i+1}" do |pdu_uid|
vendor "Eaton Corporation"
model "ePDU C20 16A"
sensors [
{
:power => [
{
:uid => "global",
:measures => [
{
:currentW => {
:unit => "W",
:shared => true,
:oid => ["iso.3.6.1.4.1.534.6.6.7.5.5.1.3.0.1"],
:api => "currentW"
}
},
{
:current => {
:unit => "VA",
:shared => "true",
:oid => ["iso.3.6.1.4.1.534.6.6.7.5.5.1.3.0.1"],
:api => "current"
}
},
{
:total => {
:unit => "W.h",
:shared => "true",
:oid => ["iso.3.6.1.4.1.534.6.6.7.5.5.1.3.0.1"],
:api => "total"
}
}
]
},
#à faire 2 x
{
:uid => "block-1",
:measures => [
{
:currentW => {
:unit => "W",
:shared => true,
:oid => ["iso.3.6.1.4.1.534.6.6.7.5.5.1.3.0.1"],
:api => "block-1-currentW"
}
},
{
:current => {
:unit => "VA",
:shared => "true",
:oid => ["iso.3.6.1.4.1.534.6.6.7.5.5.1.3.0.1"],
:api => "block-1-current"
}
},
{
:total => {
:unit => "W.h",
:shared => "true",
:oid => ["iso.3.6.1.4.1.534.6.6.7.5.5.1.3.0.1",],
:api => "block-1-total"
}
}
],
:parent => "global"
},
#à faire 12 fois par block
{
:uid => "outlet-1",
:measures => [
{
:currentW => {
:unit => "W",
:shared => true,
:oid => ["iso.3.6.1.4.1.534.6.6.7.5.5.1.3.0.1"],
:api => "outlet-1-currentW"
}
},
{
:current => {
:unit => "VA",
:shared => "true",
:oid => ["iso.3.6.1.4.1.534.6.6.7.5.5.1.3.0.1"],
:api => "outlet-1-current"
}
},
{
:total => {
:unit => "W.h",
:shared => "true",
:oid => ["iso.3.6.1.4.1.534.6.6.7.5.5.1.3.0.1",
:api => "outlet-1-total"
}
}
],
:parent => "block-X"
},
]
}
]
end
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