Line Notify with MicroPython on ESP32/ESP8266
Reason this release was yanked:
fix the documentation
Project description
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.
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')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for micropython-linenotify-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae8bd8cb07fb4cff3e90b16e824ac0628b18659482f3bd0cfbb99af23453d569 |
|
MD5 | 3d7d37af40d67f29a501e03c7d979759 |
|
BLAKE2b-256 | 12841b4d845418bc473212dc9d14ae47e12441cdf37c98f877cc94b412ea051f |