Open kostasgrevenitis opened 3 months ago
optiplant solution seems to work but simulator + orion does not. Simulator upsert function completes with no errors:
https://kitt4sme.collab-cloud.eu/orion/v2/entities?options=upsert
{'id': 'urn:ngsi-ld:ElevatorMachine:1', 'type': 'ElevatorMachine', 'uuid': {'type': 'Text', 'value': '46c6b056-c2b6-4180-a97b-4f231f4a7c23'}, 'noise': {'type': 'Number', 'value': 1.9077603619619894}, 'vibration': {'type': 'Number', 'value': 1.8562703619619894}, 'humidity': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_1_status': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_1_rslr': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_1_rslm': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_1_voltage': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_1_ampere': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_2_status': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_2_rslr': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_2_rslm': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_2_voltage': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_2_ampere': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_3_status': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_3_rslr': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_3_rslm': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_3_voltage': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_3_ampere': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_4_status': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_4_rslr': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_4_rslm': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_4_voltage': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_4_ampere': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_5_status': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_5_rslr': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_5_rslm': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_5_voltage': {'type': 'Number', 'value': 1.8562703619619894}, 'motor_5_ampere': {'type': 'Number', 'value': 1.8562703619619894}}
{'fiware-service': 'optiplant'}
<Response [204]>
But when the entity is queried, there are no updates to the values. When simulator is started some entity update is done because optiplant solution is processing update (though given estimate is always 0). This is from Optiplant logs:
12 2024-05-29 12:12:33,891 - urllib3.connectionpool - DEBUG : Line 456 - http://orion:1026 "POST /v2/op/update HTTP/1.1" 204 0
11 2024-05-29 12:12:33,892 - urllib3.connectionpool - DEBUG : Line 456 - http://orion:1026 "POST /v2/op/update HTTP/1.1" 204 0
10 INFO: 127.0.0.6:47745 - "POST /prediction HTTP/1.1" 200 OK
9 2024-05-29 12:12:33,892 - urllib3.connectionpool - DEBUG : Line 456 - http://orion:1026 "POST /v2/op/update HTTP/1.1" 204 0
8 2024-05-29 12:12:33,898 - urllib3.connectionpool - DEBUG : Line 456 - http://orion:1026 "POST /v2/op/update HTTP/1.1" 204 0
7 INFO: 127.0.0.6:34039 - "POST /prediction HTTP/1.1" 200 OK
Please @souayb, support @RyanKelvinFord and @karikolehmainen on this.
Highlight what needs to be fixed and why in order to have the Optiplant demo up and running.