Skip to main content

micropython-linenotify

It is a MicroPython library for sending notifications to Line Notify,which can be used with ESP8266 and ESP32.
Can send both text messages, stickers and images.

github: https://github.com/PerfecXX/micropython-linenotify

Installation

upip install micropython-linenotify

Usage

  • Create Instance and set token

line = LineNotify('<token>')
  • Notify text message

line.notify('<message>')
  • Notify sticker with text message

Sticker List: https://developers.line.biz/en/docs/messaging-api/sticker-list/

line.notifySticker('<Sticker Package ID>','<Sticker ID>','<Message>')
  • Notify image from URL with text message

line.notifyImageURL('<Image URL>','<Message>')

Example Code

# Import Library
from linenotify import LineNotify
from network import WLAN,STA_IF

# Network Setup
ssid = '<ssid>'
password = '<password>'
wlan = WLAN(STA_IF)
wlan.active(True)
print('Connecting...')
wlan.connect(ssid,password)
while not wlan.isconnected():
    pass
print(wlan.ifconfig())

# Set Line Token
line = LineNotify('<token>')
# Notify text message
line.notify('Hello World!')
# Notify sticker with message
line.notifySticker(3,240,'Nice Sticker')
# Notify image from URL with message
line.notifyImageURL('https://static.wikia.nocookie.net/chainsaw-man/images/1/1b/Pochita.PNG','Pochita')

Release files for micropython-linenotify 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for micropython-linenotify 0.0.5
File Size Uploaded
micropython-linenotify-0.0.5.tar.gz 3.7 kB Details

Release files / micropython-linenotify-0.0.5.tar.gz

Download URL micropython-linenotify-0.0.5.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7953161f8039a21f47983ae015ce0150b27c4679e358eca0e2a8efdc0deb5695
BLAKE2b-256 checksum
How to use checksums
120a41b8bf6f5e9a099026bf3df3c2b22f724659d4a54f8dce5329a6bf51d19b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.10

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page