Replies: 1 comment
-
``Hi again, as this is a higher need for us internally I thought about it and implemented it as an example for TasmotaPowerPort here. As far as I understand the architecture of Labgrid this might be the most correct location for such code. Basically as soon as the exporter is running and creating the resource The outcome of this approach is:
Would this idea be of any interest for upstream? |
Beta Was this translation helpful? Give feedback.
-
Hi,
we want to build up a overview page for all our Labgrid Places and Resources. In this overview we for example want to be able to see the power state of each Place (if it has a PowerPort). This obviously is not the intended way of accessing Resources in current Labgrid. The status must be available regardless of if the Place is currenlty acquired or not.
The "simple" way would be to just do this by getting the information from eg. th power resource(s) of the place and externally reimplementing the power.get functionality, at least for devices where this is possible (eg. MQTT). However for many others this is just not possible and too much duplicated code.
Can you think of a way a (eventually special) ApplicationSession could somehow act on Resources even if those are not acquired / acquired by someone else? Or would it even be interesting to implement some kind of a polled status information for (some) resources which then could simply be retrieved by anyone?
Thanks for your input and any ideas.
Regards,
sessl3r
Beta Was this translation helpful? Give feedback.
All reactions