Retrieve Metadata from SMS
Similar to the approach from @cfaber , we also want to demonstrate how Metadata can be retrieved from, e.g., SMS, which is then used for creating Things, Locations, etc. This is actually the exact workflow of MaTS so we can re-use a lot of the logic form there.
I guess that we can re-use the first cells from https://codebase.helmholtz.cloud/stamplate/conferences/hmc-conference-2025/-/blob/main/sta-config-helper/STA-Config.ipynb?ref_type=heads where we enter the following information:
- URL of SMS Instance (e.g., https://sms.atmohub.kit.edu)
- URL of STA Endpoint (e.g., https://sensorthings.imk-ifu.kit.edu/v1.1)
- ID of configuration from which we want to retrieve the metadata (e.g., https://sms.atmohub.kit.edu/configurations/31/basic).
Then, we integrate the logic from https://codebase.helmholtz.cloud/hub-terra/mats/-/blob/46-Flexible-configuration-of-linked-services/app/app/mats/mats/sms/service.py?ref_type=heads for reading the respective metadata from the SMS.
Writing to STA can either be done with the same workflow that is used by MaTS, or by transforming the SMS-metadata into the data format that was used in @cfaber 's notebook
@benjamin.louisot @jasper.schalla could you please have a look at this?