<div dir="ltr"><span style="color:rgb(80,0,80)">> What about making the device/type lists in PSUSensors extendable using JSON?</span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Say more about what you're wanting to do here..... </blockquote><div> Take <a href="https://github.com/openbmc/dbus-sensors/blob/master/src/PSUSensorMain.cpp#L43">https://github.com/openbmc/dbus-sensors/blob/master/src/PSUSensorMain.cpp#L43</a> and <a href="https://github.com/openbmc/dbus-sensors/blob/master/src/PSUSensorMain.cpp#L59">https://github.com/openbmc/dbus-sensors/blob/master/src/PSUSensorMain.cpp#L59</a> and make it so those can be extended using (for example) without an upstream code change. I picked JSON as the easiest example.<br>IIRC PSUSensors does validity checks to make sure that the device emits a name in its 'permit list' (hwmontempsensor is less picky) so tricking PSUSensors into gathering telemetry for a non-public device is tricky.<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> Can you give an<br>example of what you would use it for?</blockquote><div>Sure, the primary use case would be</div><div>It's a non public device. Would rather not broadcast information about it or have to obfuscate the device name. Really would rather not maintain patches until the device is made public.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 7, 2020 at 9:39 AM Ed Tanous <<a href="mailto:ed@tanous.net">ed@tanous.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Aug 7, 2020 at 9:36 AM Jason Ling <<a href="mailto:jasonling@google.com" target="_blank">jasonling@google.com</a>> wrote:<br>
><br>
> Slightly different topic:<br>
> What about making the device/type lists in PSUSensors extendable using JSON?<br>
><br>
<br>
Say more about what you're wanting to do here.....  Can you give an<br>
example of what you would use it for?<br>
</blockquote></div>