Giter Site home page Giter Site logo

tridenttd_linenotify's Introduction

TridentTD_LineNotify Latest release

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

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

วิธีใช้จะค่อนข้างง่าย

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

โดยการส่งค่าไปยัง LINE สำเร็จฟังกชั่นจะคืนค่าเป็น true หากไม่สำเร็จจะคืนค่าเป็น false คืนกลับมาให้

Example_01.png

หมายเหตุ สำหรับภาษาไทยจะส่ง LINE ได้ให้ save ไฟล์ใน ArduinoIDE ออกมาก่อน
จึงจะส่งภาษาไทยไปยัง LINE ได้

วิธีสร้าง 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

หมายเหตุ

วิธีการใช้งาน โดยละเอียด โดยคุณประภาส http://www.praphas.com/forum/index.php?topic=356.0

วิธีทำ IP Camera ส่งแจ้งเตือน Line Notify.
โดยละเอียด โดยคุณ MaxMac.
https://maxmacstn.wordpress.com/2019/06/16/diy-esp8266-doorbell-mod/

วิธีทำ ESP32 Camera Line Notify โดยคุณ S Bit
ESP32 CAM ส่งภาพแจ้งเตือนด้วย LINE Notify เมื่อมีผู้บุกรุก esp32 camera line notify
https://www.youtube.com/watch?v=I-HbdRWwMVY

Version

1.0.0 TridentTD_LineNotify
1.1 เพิ่ม ให้ส่งซ้ำอัตโนมัติ หากส่งไม่ได้ 3 หน, สามารถส่งแบบตัวเลข หรือ ทศนิยมได้
2.0 เพิ่มความสามารถส่ง ข้อความ สติ๊กเกอร์ และ รูปภาพได้
2.1 ปรับโคดให้มีขนาดเล็กลง กระทัดรัดขึ้น
2.2 เพิ่ม notify(ตัวเลข) ได้ด้วย
2.3 rename DEBUG_PRINT
2.4 สนับสนุน Arduino ESP8266 ทุก version จนไปถึง version ล่าสุด 2.5.0-rc1, 2.5.0-rc2
3.0 เพิ่ม คำสั่งให้ส่ง Jpg File ที่อยู่บน SPIFFS หรือ SD รวมทั้ง jpg data ออกไปได้ด้วย
3.0.1 ทำความสะอาดบรรทัดที่เกินมา 1 บรรทัดตอนท้าย เวลาส่งเฉพาะข้อความ ( request by K'Kik boonsug )
3.0.2 support ESP32 version 1.0.5, 1.0.6
3.0.3 support ESP8266 version 3.0.0 ( support all version 2.3.0 - 3.0.0 )
3.0.4 support ESP32 core 2.0.x - 2.0.4 ( support all version 1.0.x - 2.0.4)
3.0.5 add new examples
3.0.6 add new example with static library version

tridenttd_linenotify's People

Contributors

blynkgo avatar tridenttd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tridenttd_linenotify's Issues

connection LINE failed

TridentTD_LineNotify version 3.03

Using with PlatformIO

platform = espressif8266
board = nodemcuv2
framework = arduino


[Log]

image

  • at setup() Line.notify seems to work perfectly fine from TD_DEBUG_PRINT
    HTTP/1.1 200
    HTTP/1.1 200

  • at loop()
    SELFCHECK connection Success from WiFiClientSecure client; (main.cpp)

if (!client.connect("notify-api.line.me", 443)) 
    {
      Serial.println("SELFCHECK connection failed\n");
    }
    else
    {
      Serial.println("SELFCHECK connection Success\n");
    }

connection LINE failed from TD_DEBUG_PRINT

image

I tried to use
WiFiClientSecure _clientSecure; but will make Line.notify in setup() connection LINE failed

ถ้าขึ้นแบบนี้ต้องแก้ตรงไหนครับ

error message ครับ
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Users\Palm\Documents\Arduino\libraries\TridentTD_LineNotify-master\src\TridentTD_LineNotify.cpp:43:10: fatal error: WiFiClientSecureAxTLS.h: No such file or directory

43 | #include <WiFiClientSecureAxTLS.h>

  |          ^~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

exit status 1

Error compiling for board NodeMCU 0.9 (ESP-12 Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

รบกวนช่วยเพิ่มการใส่ Emoji ใน Message ให้หน่อยครับ

สวัสดีครับ

พอดีผมจำเป็นต้องใช้ Emoji ควบคู่กับ ข้อความในการส่ง Line Notify น่ะครับ ไม่ทราบว่าพอจะสามารถเพิ่มฟีเจอร์นี้เข้าไปได้บ้างไหมครับ?

ผมพยายามหาดูนานมากแต่ก็ยังไม่พบว่าจะทำอย่างไรได้น่ะครับ เห็นแต่วิธีใช้ Emoji แบบดั้งเดิมที่ LINE เคยมีมี แต่เขาก็เขียนไว้ว่าเป็นวิธีที่ล้าหลังไปแล้วน่ะครับ

รบกวนผู้พัฒนาด้วยนะครับผม

ขอบคุณมากครับ

โหลดLibrary TridentTD_LineNotify เเล้วเเต่ยังขึ้น error ครับ

นี่คื่อ error messages ครับ
Arduino: 1.8.10 (Windows 10), Board: "Arduino/Genuino Uno"

sketch_jan19a:1:10: error: TridentTD_LineNotify.h: No such file or directory

Multiple libraries were found for "TridentTD_LineNotify.h"
compilation terminated.

Used: C:\Users\นพรัตน์มาร์ตี้\Documents\Arduino\libraries\TridentTD_LineNotify
Not used: C:\Users\นพรัตน์มาร์ตี้\Documents\Arduino\libraries\TridentTD_LineNotify-master
exit status 1
TridentTD_LineNotify.h: No such file or directory

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

error: libraries\TridentTD_LineNotify\TridentTD_LineNotify.a: No such file or directory

Arduino: 1.8.5 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Archiving built core (caching) in: C:\Users\Som\AppData\Local\Temp\arduino_cache_314486\core\core_esp8266_esp8266_nodemcuv2_CpuFrequency_80,FlashSize_4M1M,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None____,FlashErase_none,UploadSpeed_115200_aa388067a821a694b2260c380a97f394.a
xtensa-lx106-elf-gcc: error: libraries\TridentTD_LineNotify\TridentTD_LineNotify.a: No such file or directory

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

ลงใหม่ 2-3 รอบแล้ว ทั้ง Add zip แล้วก็ extract file ใส่เองยังเป็นเหมือนเดิมเลยค่ะ

Ethernet connection

is it possible to make this library compatible for both WiFi and Ethernet connection
for Ethernet connection, I cannot get this library to work

Compilation error บน Arduin IDE version 2.3.2

Library TridentTD_Linenotify has been declared precompiled:
Using precompiled library in c:\Users\KID\Documents\Arduino\libraries\TridentTD_Linenotify\src\esp8266
The platform does not support 'compiler.libraries.ldflags' for precompiled libraries.
xtensa-lx106-elf-gcc: error: C:\Users\KID\AppData\Local\Temp\arduino\sketches\5FA0D3ECDFE2FF52F2E74CBB2AB32DAA\libraries\TridentTD_Linenotify\TridentTD_Linenotify.a: No such file or directory

exit status 1

Compilation error: exit status 1

ส่งไฟล์

ไลน์สามารถส่งไฟล์ได้ไหมครับ?

ถ้าส่งได้มีวิธี ตัวอย่าง หรือคำแนะนำไหมครับ

ขอบคุณครับ @TridentTD

how i can slove this help please.

Arduino: 1.8.12 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:3MB OTA:~512KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\aeea\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\aeea\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\aeea\OneDrive\เอกสาร\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=legacy,ssl=all,eesz=4M3M,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -vid-pid=10C4_EA60 -ide-version=10812 -build-path C:\Users\aeea\AppData\Local\Temp\arduino_build_960519 -warnings=none -build-cache C:\Users\aeea\AppData\Local\Temp\arduino_cache_189075 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.python3.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.mklittlefs.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\2.5.0-4-69bd9e6 -prefs=runtime.tools.mklittlefs-2.5.0-4-69bd9e6.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\2.5.0-4-69bd9e6 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-4-b40a506.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506 -prefs=runtime.tools.mkspiffs.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-4-b40a506 -prefs=runtime.tools.mkspiffs-2.5.0-4-b40a506.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-4-b40a506 -verbose C:\Users\aeea\OneDrive\Desktop\bellae\bellae.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\aeea\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\aeea\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\aeea\OneDrive\เอกสาร\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=legacy,ssl=all,eesz=4M3M,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -vid-pid=10C4_EA60 -ide-version=10812 -build-path C:\Users\aeea\AppData\Local\Temp\arduino_build_960519 -warnings=none -build-cache C:\Users\aeea\AppData\Local\Temp\arduino_cache_189075 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.python3.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.mklittlefs.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\2.5.0-4-69bd9e6 -prefs=runtime.tools.mklittlefs-2.5.0-4-69bd9e6.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\2.5.0-4-69bd9e6 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-4-b40a506.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506 -prefs=runtime.tools.mkspiffs.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-4-b40a506 -prefs=runtime.tools.mkspiffs-2.5.0-4-b40a506.path=C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-4-b40a506 -verbose C:\Users\aeea\OneDrive\Desktop\bellae\bellae.ino
Using board 'nodemcuv2' from platform in folder: C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3
Using core 'esp8266' from platform in folder: C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3
Detecting libraries used...
"C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3/tools/sdk/include" "-IC:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3/tools/sdk/lwip2/include" "-IC:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\aeea\AppData\Local\Temp\arduino_build_960519/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD="ESP8266_NODEMCU"" -DLED_BUILTIN=2 -DFLASHMODE_DIO -DESP8266 "-IC:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\cores\esp8266" "-IC:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\variants\nodemcu" "C:\Users\aeea\AppData\Local\Temp\arduino_build_960519\sketch\bellae.ino.cpp" -o nul
Alternatives for TridentTD_LineNotify.h: [[email protected]]
ResolveLibrary(TridentTD_LineNotify.h)
-> candidates: [[email protected]]
"C:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3/tools/sdk/include" "-IC:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3/tools/sdk/lwip2/include" "-IC:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\aeea\AppData\Local\Temp\arduino_build_960519/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD="ESP8266_NODEMCU"" -DLED_BUILTIN=2 -DFLASHMODE_DIO -DESP8266 "-IC:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\cores\esp8266" "-IC:\Users\aeea\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\variants\nodemcu" "-IC:\Users\aeea\OneDrive\เอกสาร\Arduino\libraries\TridentTD_Linenotify\src" "C:\Users\aeea\AppData\Local\Temp\arduino_build_960519\sketch\bellae.ino.cpp" -o nul
Alternatives for TridentTD_LineNotify.h: [[email protected]]bellae:12:34: fatal error: TridentTD_LineNotify.h: No such file or directory

ResolveLibrary(TridentTD_LineNotify.h) #include <TridentTD_LineNotify.h>

                              ^

-> candidates: [[email protected]]

compilation terminated.

Using library TridentTD_Linenotify at version 3.0.1 in folder: C:\Users\aeea\OneDrive\เอกสาร\Arduino\libraries\TridentTD_Linenotify
exit status 1
TridentTD_LineNotify.h: No such file or directory

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.