{"id":13801147,"url":"https://github.com/PerfecXX/micropython-linenotify","last_synced_at":"2025-05-13T11:30:53.030Z","repository":{"id":64038861,"uuid":"571952493","full_name":"PerfecXX/Micropython-Linenotify","owner":"PerfecXX","description":"Line Notify with MicroPython on ESP32/ESP8266 ","archived":false,"fork":false,"pushed_at":"2023-09-20T18:46:06.000Z","size":689,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-20T06:34:55.251Z","etag":null,"topics":["esp32","esp8266","library","line-notify","micropython","micropython-esp32","micropython-esp8266"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/micropython-linenotify/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PerfecXX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-29T08:41:48.000Z","updated_at":"2024-09-15T01:58:44.000Z","dependencies_parsed_at":"2024-08-04T00:16:15.939Z","dependency_job_id":null,"html_url":"https://github.com/PerfecXX/Micropython-Linenotify","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfecXX%2FMicropython-Linenotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfecXX%2FMicropython-Linenotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfecXX%2FMicropython-Linenotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfecXX%2FMicropython-Linenotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PerfecXX","download_url":"https://codeload.github.com/PerfecXX/Micropython-Linenotify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253932771,"owners_count":21986445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esp32","esp8266","library","line-notify","micropython","micropython-esp32","micropython-esp8266"],"created_at":"2024-08-04T00:01:20.032Z","updated_at":"2025-05-13T11:30:51.956Z","avatar_url":"https://github.com/PerfecXX.png","language":"Python","readme":"# Micropython-linenotify\n\n[![Version](https://img.shields.io/badge/version-0.0.5-blue.svg)](https://github.com/yourusername/netpie-python-library)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nIt is a MicroPython library for sending notifications to Line Notify,which can be used with ESP8266 and ESP32.\n\nCan send both text messages, stickers and images.\n\n# Installation\n\nBefore you receive any messages, you need to install this library on your device.\n\nby choosing one of the following methods:\n\n1. Manual upload\n   - You can install this library by simply uploading **linenotify.py** to your device.\n\n2. Package Management in Thonny IDE\n   - If you are using the Thonny IDE, you can go to Tools \u003e Manage Packages.\n   - At the search bar, simply search for \"micropython-linenotify\" and install it.\n   ![](https://github.com/PerfecXX/Micropython-linenotify/blob/main/doc/image/search_bar.png)\n\n\n# Prerequisite\n- ESP32/ESP8266 with MicroPython installed and can connect to the internet \n- Line Notify Token\n\n# How to get Line Notify Token\nLogin at https://notify-bot.line.me/en/.\n\n![](https://github.com/PerfecXX/MicroPython_LineNotify/blob/main/doc/image/1_linePage.png?raw=true)\n\nAt the top-right dropdown menu, select **my page** .\n\n![](https://github.com/PerfecXX/MicroPython_LineNotify/blob/main/doc/image/3_selectMyPage.png?raw=true)\n\nScroll down the browser window to find **Generate Token**.\n\n![](https://github.com/PerfecXX/MicroPython_LineNotify/blob/main/doc/image/4_GenerateToken.png?raw=true)\n\nEnter your **Notify Name** then select **chat** or **group**.\n\n![](https://github.com/PerfecXX/MicroPython_LineNotify/blob/main/doc/image/5_GenToken.png?raw=true)\n\nClick **Generate Token**, and the token will be generated.\n\n![](https://github.com/PerfecXX/MicroPython_LineNotify/blob/main/doc/image/6_copyToken.png?raw=true)\n\n# Usage\n\n- Import Library \n```python\nfrom linenotify import LineNotify\n```\n\n- Create Instance and set token\n```python\nline = LineNotify('\u003ctoken\u003e')\n```\n- Notify text message\n```python\nline.notify('\u003cmessage\u003e')\n```\n- Notify sticker with text message\n\nSticker List: https://developers.line.biz/en/docs/messaging-api/sticker-list/ \n```python\nline.notifySticker('\u003cSticker Package ID\u003e','\u003cSticker ID\u003e','\u003cMessage\u003e')\n```\n- Notify image from URL with text message\n```python\nline.notifyImageURL('\u003cImage URL\u003e','\u003cMessage\u003e')\n```\n\n# Example Code\n\n```python\n# Import Library\nfrom linenotify import LineNotify\nfrom network import WLAN,STA_IF\n\n# Network Setup\nssid = '\u003cssid\u003e'\npassword = '\u003cpassword\u003e'\nwlan = WLAN(STA_IF)\nwlan.active(True)\nprint('Connecting...')\nwlan.connect(ssid,password)\nwhile not wlan.isconnected():\n    pass\nprint(wlan.ifconfig())\n\n# Set Line Token \nline = LineNotify('\u003ctoken\u003e')\n# Notify text message \nline.notify('Hello World!')\n# Notify sticker with message\nline.notifySticker(3,240,'Nice Sticker')\n# Notify image from URL with message\nline.notifyImageURL('https://static.wikia.nocookie.net/chainsaw-man/images/1/1b/Pochita.PNG','Pochita')\n\n```\n\n![](https://github.com/PerfecXX/MicroPython_LineNotify/blob/main/doc/image/8_result.png?raw=true)\n\n# Reference \n\n[https://developers.line.biz/en/docs/messaging-api/sticker-list/](https://developers.line.biz/en/docs/messaging-api/sticker-list/)\n\n[https://notify-bot.line.me/doc/en/](https://notify-bot.line.me/doc/en/)\n\n\n","funding_links":[],"categories":["Libraries"],"sub_categories":["Communications"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPerfecXX%2Fmicropython-linenotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPerfecXX%2Fmicropython-linenotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPerfecXX%2Fmicropython-linenotify/lists"}