Raspberry , Orange Pi ส่งรูปเข้า linenotify
บทความก่อนหน้าผมใช้ node red ดึงภาพจากกล้องวงจรปิดมาได้แล้ว ก็แสดงทาง dashboard node red แล้วผมก็ทำต่อไปโดยให้ node red save image เก็บไว้ จากนั้นทดสอบใช้ curl ส่งรูปที่ save ไว้ไปยัง linenotify
อันนี้ flow ที่เพิ่มขึ้น 1 object save image file
properties ชื่อไฟล์ให้ save ลงชื่อเดิมเพราะเราต้องการอัปเดทรูปปัจจุบัน และประหยัดพื้นที่
ด้านล่างจะเป็น command curl เพื่อส่งรูปที่เรา save ไว้ /tmp/local_image01.jpg เข้า linenotify ครับ
curl -X POST -H ‘Authorization: Bearer <your token>’ -F ‘message=test’ -F “imageFile=@/tmp/local_image01.jpg” https://notify-api.line.me/api/notify
Developer Project : IoT Phuket Lab
https://iotphuketlab.home.blog/
https://medium.com/@aegkaluk
https://www.facebook.com/iotphuket/
https://www.youtube.com/user/MrAegkaluk
https://sites.google.com/view/iot-phuket-lab-documents
https://pantip.com/profile/368674#topics
แวะเยี่ยมชมสินค้าของทางร้าน
https://www.phuket-it.com/iotphuketlab/
https://www.lazada.co.th/shop/phuket-bike-lover
https://shopee.co.th/aegkaluk