Query Sensor

Mike proclivis at gmail.com
Tue Jan 11 11:07:48 AEDT 2022


Ed,

Ok, now I feel dumb. I assumed it was obmc/redfish, not generic.

Thanks,

Mike

Sent from my iPhone

> On Jan 10, 2022, at 4:50 PM, Ed Tanous <edtanous at google.com> wrote:
> 
> On Mon, Jan 10, 2022 at 3:47 PM Mike Jones <proclivis at gmail.com> wrote:
>> 
>> Hi,
>> 
>> I could not find an example of a sensor query in the docs. I assume something like this:
>> 
>> dbus-send --system --print-reply \
>> 
>> --dest=xyz.openbmc_project.Hwmon-5a446562b1a2e55ef11da905907088a187a66b71eb7a1f29187594c05bb8fd9a.Hwmon1 \
>> 
>> /xyz/openbmc_project/sensors/temperature/lm75temp
>> 
>> xyz.openbmc_project.Sensor.Property.Get xyz.openbmc_project.Sensor.Value \
>> 
>> double:
>> 
> 
> I don't have an example offhand, but the interface you're looking for
> in the bolded area is
> org.freedesktop.DBus.Properties.Get
> 
> Stack overflow for essentially the same question with an example:
> https://stackoverflow.com/questions/48648952/set-get-property-using-dbus-send
> 
>> 
>> With the bold interface replaced with something correct.
>> 
>> Can some one give me an example, and a url about how to query properties?
>> 
>> Mike
>> 
>> Sent from my iPad


More information about the openbmc mailing list