Grafana to send mqtt messages through aws iot core

0

How can I send a message to my IOT device which is connected to AWS IOT core, through Grafana? I am already receiving data from my IOT device: IOT device ---> IOT core --->Amazon message rule-----> Amazon DataStream --->Amazon GRAFANA

How can I reverse this operation; Amazon Grafana---> IOT rule ---->send Mqtt message to IOT device

gefragt vor einem Jahr736 Aufrufe
2 Antworten
0

Amazon Managed Grafana is a fully managed data visualization service, and while I don't want to say it's not possible to send data from Grafana to AWS IoT devices, I think I'd like to better understand the use case.

Can you describe the outcome you're looking to achieve in this scenario? What type of message would you want to source from Grafana and send to your IoT device? Is this IoT device running FreeRTOS or AWS IoT Greengrass (or using the AWS IoT SDK)?

profile pictureAWS
beantwortet vor einem Jahr
  • I just want to send command to start and stop a motor , and to reset alarms

0

Hi.

Amazon Grafana---> IOT rule ---->send Mqtt

The rules engine would not likely be involved for downlink. More likely you would use an SDK and call the HTTP iot-data publish API. For example, with boto3: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/iot-data/client/publish.html

Amazon Managed Grafana doesn't yet support third party plugins so you, can't for example, install a button panel like this: https://grafana.com/grafana/plugins/cloudspout-button-panel/. If you would like to see this supported, please make your voice heard here: https://github.com/aws/amazon-managed-grafana-roadmap/issues. A workaround is to perhaps spin up your own Grafana in EC2 and install a button panel.

It should be possible however to use AMG to send automated messages in response to alarm conditions. If an AMG alert triggers a notification on SNS, a Lambda could be used to process the SNS message and publish back to the device.

profile pictureAWS
EXPERTE
Greg_B
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen