rasberry pi 3 で温度センサー&Treasure Data格納まで
1378 ワード
この(http://qiita.com/daicham/items/0daa0efa8479e9502baa
)サイトをもとに、raspi3で温度センサーをtreasure Dataまで格納した。
とても丁寧で、わかりやすくこの通りでよかったです。
ただ、最後のfluent.confの作り方がわからなくて、
下記のサイト(http://qiita.com/shuntaro_tamura/items/e897cdc8a155cfcf9da7
)の、4行を実施。※意味は上記サイトを参照。
gem install fluentd --no-ri --no-rdoc
fluentd --setup ./fluent
fluentd -c ./fluent/fluent.conf -vv &
echo '{"json":"message"}' | fluent-cat debug.test
```<img width="523" alt="treasure.PNG" src="https://qiita-image-store.s3.amazonaws.com/0/160387/b6e58220-9470-066c-798c-ceb7d8eae988.png">
====================================================
後は、
gem install fluentd --no-ri --no-rdoc
fluentd --setup ./fluent
fluentd -c ./fluent/fluent.conf -vv &
echo '{"json":"message"}' | fluent-cat debug.test
```<img width="523" alt="treasure.PNG" src="https://qiita-image-store.s3.amazonaws.com/0/160387/b6e58220-9470-066c-798c-ceb7d8eae988.png">
====================================================
後は、
fluentd -c ./fluent/fluent.conf -vv &の実行を、
sudo fluentd -c ./fluent/fluent.conf -vv &にすれば、
```
treasure Data上に、データが送られます。
Author And Source
この問題について(rasberry pi 3 で温度センサー&Treasure Data格納まで), 我々は、より多くの情報をここで見つけました https://qiita.com/8msyk8/items/be5d6ee8e1f6c8ea5497著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .