amazon-web-services - 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!
解决方案
两种选择:
选项 1:通过 MQTT 将数据发送到 AWS 物联网 (IoT),然后将数据存储在 DynamoDB 中:
选项 2:将 AWS 开发工具包放在设备上并直接与 DynamoDB 通信。
看:
推荐阅读
- python-sphinx - Sphinx Admonition 的自定义(多字)标题
- c# - 关闭窗体时 C# 组合框“对象引用未设置为对象的实例”
- angular - 单击按钮时未显示弹出窗口
- python - Python Selenium Beautifulsoup pdf
- algorithm - 块堆叠算法
- java - 在java中将树结构从数据库转换为JSON对象?
- python-3.x - pynput pip3 安装错误:找不到满足要求的版本 pynput(来自版本:无)
- java - 如何从另一个类中注销和注册 BroadcastReceiver?
- python - 将元素的索引附加到每个元素
- jquery - 为什么 SVG 对象的运动如此不可预测?