Giter Site home page Giter Site logo

tridenttd_linenotify's Introduction

TridentTD_LineNotify

[TridentTD] Manabu's Esp8266 IoT Library

TridentTD_LineNotify เป็นไลบรารี่สำหรับส่งเตือนเข้า Line Notify โดยสามารถใช้ได้กับ ESP8266 และ ESP32
สามารถส่งได้ทั้ง ข้อความ สติ๊กเกอร์ และ รูปภาพด้วย URL ได้
ความสามารถในการส่ง หากส่งไม่สำเร็จจะพยายามส่งให้ใหม่อัตโนมัติ 3 ครั้ง

ตัวอย่างการส่ง

วิธีใช้จะค่อนข้างง่าย
หากส่งข้อความ ใช้คำสั่ง LINE.notify( .... );
หากส่งสติ๊กเกอร์ ใช้คำสั่ง LINE.notifySticker( .... );
โดยสามารถเลือกสติ๊กเกอร์ได้จาก https://devdocs.line.me/files/sticker_list.pdf
หากส่งรูปภาพด้วย URL ใช้คำสั่ง LINE.notifyPicture( .... );

Example_01.png

วิธีสร้าง Line Token

ทำการ Log in ที่ https://notify-bot.line.me/en/

Linenotify.png

จากนั้น เข้าไปที่ https://notify-bot.line.me/my/ เพื่อทำการ สร้าง Line Token ขึ้นมา ให้กดปุ่ม Generate token

CreateLineToken.png

ตั้งชื่อ Token อะไรก็ได้ พร้อมทั้งเลือก กลุ่มใน Line ที่ต้องการให้มีการแจ้งเตือนไปยังกลุ่ม

CreateNotifyNameSelectGroup.png

Version

1.0.0 TridentTD_LineNotify
1.1 เพิ่ม ให้ส่งซ้ำอัตโนมัติ หากส่งไม่ได้ 3 หน, สามารถส่งแบบตัวเลข หรือ ทศนิยมได้
2.0 เพิ่มความสามารถส่ง ข้อความ สติ๊กเกอร์ และ รูปภาพได้
2.1 ปรับโคดให้มีขนาดเล็กลง กระทัดรัดขึ้น

tridenttd_linenotify's People

Contributors

tridenttd avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.