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')
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| micropython-linenotify-0.0.5.tar.gz | 3.7 kB | Without provenance | Details for micropython-linenotify-0.0.5.tar.gz |
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
|
Security for micropython-linenotify 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.