micropython-linenotify


Namemicropython-linenotify JSON
Version 0.0.5 PyPI version JSON
download
home_pagehttps://github.com/PerfecXX/micropython-linenotify
SummaryLine Notify with MicroPython on ESP32/ESP8266
upload_time2022-12-01 08:59:43
maintainerTeeraphat Kullanankanjana
docs_urlNone
authorTeeraphat Kullanankanjana
requires_python
licenseMIT
keywords linenotify esp32 esp8266 micropython
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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
============

.. code:: python

   upip install micropython-linenotify

Usage
=====

-  Create Instance and set token

.. code:: python

   line = LineNotify('<token>')

-  Notify text message

.. code:: python

   line.notify('<message>')

-  Notify sticker with text message

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

.. code:: python

   line.notifySticker('<Sticker Package ID>','<Sticker ID>','<Message>')

-  Notify image from URL with text message

.. code:: python

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

Example Code
============

.. code:: python

   # 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')



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/PerfecXX/micropython-linenotify",
    "name": "micropython-linenotify",
    "maintainer": "Teeraphat Kullanankanjana",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "ku.teeraphat@hotmail.com",
    "keywords": "linenotify,esp32,esp8266,micropython",
    "author": "Teeraphat Kullanankanjana",
    "author_email": "ku.teeraphat@hotmail.com",
    "download_url": "https://files.pythonhosted.org/packages/12/0a/41b8bf6f5e9a099026bf3df3c2b22f724659d4a54f8dce5329a6bf51d19b/micropython-linenotify-0.0.5.tar.gz",
    "platform": null,
    "description": "micropython-linenotify\r\n======================\r\n\r\n| It is a MicroPython library for sending notifications to Line\r\n  Notify,which can be used with ESP8266 and ESP32.\r\n| Can send both text messages, stickers and images.\r\n\r\ngithub: https://github.com/PerfecXX/micropython-linenotify\r\n\r\nInstallation\r\n============\r\n\r\n.. code:: python\r\n\r\n   upip install micropython-linenotify\r\n\r\nUsage\r\n=====\r\n\r\n-  Create Instance and set token\r\n\r\n.. code:: python\r\n\r\n   line = LineNotify('<token>')\r\n\r\n-  Notify text message\r\n\r\n.. code:: python\r\n\r\n   line.notify('<message>')\r\n\r\n-  Notify sticker with text message\r\n\r\nSticker List:\r\nhttps://developers.line.biz/en/docs/messaging-api/sticker-list/\r\n\r\n.. code:: python\r\n\r\n   line.notifySticker('<Sticker Package ID>','<Sticker ID>','<Message>')\r\n\r\n-  Notify image from URL with text message\r\n\r\n.. code:: python\r\n\r\n   line.notifyImageURL('<Image URL>','<Message>')\r\n\r\nExample Code\r\n============\r\n\r\n.. code:: python\r\n\r\n   # Import Library\r\n   from linenotify import LineNotify\r\n   from network import WLAN,STA_IF\r\n\r\n   # Network Setup\r\n   ssid = '<ssid>'\r\n   password = '<password>'\r\n   wlan = WLAN(STA_IF)\r\n   wlan.active(True)\r\n   print('Connecting...')\r\n   wlan.connect(ssid,password)\r\n   while not wlan.isconnected():\r\n       pass\r\n   print(wlan.ifconfig())\r\n\r\n   # Set Line Token \r\n   line = LineNotify('<token>')\r\n   # Notify text message \r\n   line.notify('Hello World!')\r\n   # Notify sticker with message\r\n   line.notifySticker(3,240,'Nice Sticker')\r\n   # Notify image from URL with message\r\n   line.notifyImageURL('https://static.wikia.nocookie.net/chainsaw-man/images/1/1b/Pochita.PNG','Pochita')\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Line Notify with MicroPython on ESP32/ESP8266",
    "version": "0.0.5",
    "split_keywords": [
        "linenotify",
        "esp32",
        "esp8266",
        "micropython"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "0d6da819438a68cd73dad00206239f03",
                "sha256": "7953161f8039a21f47983ae015ce0150b27c4679e358eca0e2a8efdc0deb5695"
            },
            "downloads": -1,
            "filename": "micropython-linenotify-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "0d6da819438a68cd73dad00206239f03",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3689,
            "upload_time": "2022-12-01T08:59:43",
            "upload_time_iso_8601": "2022-12-01T08:59:43.467563Z",
            "url": "https://files.pythonhosted.org/packages/12/0a/41b8bf6f5e9a099026bf3df3c2b22f724659d4a54f8dce5329a6bf51d19b/micropython-linenotify-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-01 08:59:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "PerfecXX",
    "github_project": "micropython-linenotify",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "micropython-linenotify"
}
        
Elapsed time: 0.02253s