首页 > 解决方案 > What is the easiest way to make a RaspberryPi forward data to a database?

问题描述

I have a smartplug (Tp link HS110) installed in my local network. Now I want that the power usage that this smartplug uses is "captured" by my Raspberry (also in my local network), and the raspberry should send this data to a influxDB or DynamoDB hosted on an aws server.

How can I achieve this in an efficient way, having as less programs/ stuff running on the raspberry as possible? Which OS could fit here? Maybe someone has done something similar and can help me out?

I would prefer a solution with node.js, since I want to work with the data out of the DB later on in an aws Lambda function (which will probably be written in node.js) and process it further.

Thanks!

标签: amazon-web-servicesaws-lambdaraspberry-pi

解决方案


两种选择:

选项 1:通过 MQTT 将数据发送到 AWS 物联网 (IoT),然后将数据存储在 DynamoDB 中:

AWS 物联网

选项 2:将 AWS 开发工具包放在设备上并直接与 DynamoDB 通信。

看:


推荐阅读