{"id":19394,"date":"2025-12-08T07:00:00","date_gmt":"2025-12-07T22:00:00","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=19394"},"modified":"2025-12-05T17:06:12","modified_gmt":"2025-12-05T08:06:12","slug":"%e3%80%90python%e3%80%91ev%e3%81%ae%e5%85%85%e9%9b%bb%e9%9f%b3%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%97%e3%80%81%e5%ae%8c%e4%ba%86%e3%81%97%e3%81%9f%e3%82%89line%e9%80%9a%e7%9f%a5%e3%81%97%e3%81%a6","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=19394","title":{"rendered":"\u3010Python\u3011EV\u306e\u5145\u96fb\u97f3\u3092\u76e3\u8996\u3057\u3001\u5b8c\u4e86\u3057\u305f\u3089LINE\u901a\u77e5\u3057\u3066\u307f\u305f\uff01"},"content":{"rendered":"\n<p>\u3055\u3066\u3055\u3066\u30014\u6708\u672b\u306bEV\uff08\u30c8\u30a5\u30af\u30c8\u30a5\u30af\u3002\u30c9\u30a2\u306a\u3057\uff09\u3092\u8cfc\u5165\u3057\u3001\u751f\u6d3b\u306e\u8cea\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u305f\u306e\u3067\u3059\u304c\u30011\u3064\u300c<strong>\u3053\u3046\u3060\u3063\u305f\u3089\u3044\u3044\u306e\u306b\u306a\u2026\ud83e\udd14<\/strong>\u300d\u3068\u601d\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"350\" height=\"323\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/08\/tuktuk-with-boy-small.png\" alt=\"\" class=\"wp-image-16070\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/08\/tuktuk-with-boy-small.png 350w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/08\/tuktuk-with-boy-small-300x277.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/figure><\/div>\n\n\n<p>\u305d\u308c\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>\u5145\u96fb\u304c\u7d42\u308f\u3063\u305f\u3089\u901a\u77e5\u3057\u3066\u307b\u3057\u3044<\/strong>\u3002<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u901a\u5e38\u306eEV\u306a\u3089\u30e1\u30fc\u30eb\u901a\u77e5\u306a\u3069\u3092\u3057\u3066\u304f\u308c\u305f\u308a\u3082\u3059\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u79c1\u306e\u8eca\u306b\u306f\u305d\u3093\u306a\u6a5f\u80fd\u306f\u3064\u3044\u3066\u3044\u306a\u3044\u306e\u3067\u3001<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>\u300c\u305d\u308d\u305d\u308d\u5145\u96fb\u7d42\u308f\u3063\u305f\u304b\u306a\uff1f\u300d<\/strong><\/p>\n\n\n\n<p>\u3063\u3066\u898b\u306b\u884c\u304f\u3068<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>\u300c\u3042\u3002\u307e\u3060\u3084\u3063\u305f\u308f\u2026\ud83d\ude05\u300d<\/strong><\/p>\n\n\n\n<p>\u3066\u3053\u3068\u304c\u4f55\u56de\u3082\u767a\u751f\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u3001\u4f55\u304b\u5bfe\u7b56\u306f\u306a\u3044\u304b\u3092\u8003\u3048\u3066\u305f\u3089\u601d\u3044\u3064\u304d\u307e\u3057\u305f\uff01<br>\u79c1\u306e\u6a5f\u4f53\u306f\u3001\u5145\u96fb\u3059\u308b\u3068\u304d\u306b\u30d5\u30a1\u30f3\u304c\u56de\u308b\u3001\u3064\u307e\u308a\u97f3\u304c\u51fa\u308b\u306e\u3067\u3001<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>\u30d5\u30a1\u30f3\u97f3\u3092\u76e3\u8996\u3057\u3066\u3001\u9759\u304b\u306b\u306a\u3063\u305f\u3089\u901a\u77e5\u3059\u308b<\/strong><\/p>\n\n\n\n<p>\u3068\u3044\u3046\u4f5c\u6226\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\uff01<br>\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u65b9\u306b\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u300cPython\u3084\u30bb\u30f3\u30b5\u30fc\u6280\u8853\u3092\u5b66\u3073\u305f\u3044\u300d<\/li>\n\n\n\n<li>\u300c\u65e5\u5e38\u306e\u4e0d\u4fbf\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u89e3\u6c7a\u3057\u305f\u3044\u300d<\/li>\n\n\n\n<li>\u300c\u30b9\u30de\u30fc\u30c8\u30db\u30fc\u30e0\u5316\u3084DIY\u96fb\u5b50\u5de5\u4f5c\u306b\u8208\u5473\u304c\u3042\u308b\u4eba\u300d<\/li>\n\n\n\n<li>\u300cEV\u306e\u904e\u5145\u96fb\u3092\u9632\u304e\u305f\u3044\u4eba\u300d<\/li>\n\n\n\n<li>\u300cLINE API\u306e\u6d3b\u7528\u65b9\u6cd5\u3092\u5b66\u3073\u305f\u3044\u4eba\u300d<\/li>\n<\/ul>\n\n\n\n<p>\u305c\u3072\u6700\u5f8c\u307e\u3067\u8aad\u3093\u3067\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"226\" height=\"320\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12.png\" alt=\"\" class=\"wp-image-6068\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12.png 226w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12-212x300.png 212w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\">\u300c\u4e45\u3057\u3076\u308a\u306ePython<br>\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\uff01\u300d<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u524d\u63d0\u3068\u3057\u3066<\/h2>\n\n\n\n<p>\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u6d41\u308c\u3067\u97f3\u58f0\u3092\u76e3\u8996\u3057\u3001\u7121\u97f3\u306b\u306a\u3063\u305f\u3089\u901a\u77e5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>EV\u5145\u96fb\u3092\u958b\u59cb\uff1a\u30d5\u30a1\u30f3\u306e\u97f3\u304c\u51fa\u308b<\/li>\n\n\n\n<li>\u30de\u30a4\u30af\u4ed8\u304d\u30a4\u30e4\u30db\u30f3\u8a2d\u7f6e\uff1aBluetooth\u3067\u30d1\u30bd\u30b3\u30f3\u3068\u63a5\u7d9a<\/li>\n\n\n\n<li>Python\u3092\u5b9f\u884c\uff1a\u97f3\u3092\u76e3\u8996\u3059\u308b<\/li>\n\n\n\n<li>\u5145\u96fb\u304c\u5b8c\u4e86\uff1a\u97f3\u304c\u306a\u304f\u306a\u308b<\/li>\n\n\n\n<li>LINE\u901a\u77e5\uff1a5\u79d2\u9593\u306e\u7121\u97f3\u3092\u30c8\u30ea\u30ac\u30fc\u3068\u3057\u3066\u901a\u77e5<\/li>\n<\/ol>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001\u5148\u306bLINE\u901a\u77e5\u3059\u308b\u305f\u3081\u306e<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\uff1aLINE Messaging API\u30a2\u30af\u30bb\u30b9\u306b\u5fc5\u8981<\/li>\n\n\n\n<li>\u9001\u4fe1\u5148\u306e\u30e6\u30fc\u30b6\u30fcID\uff1aLINE ID\u3067\u306f\u306a\u3044\u3067\u3059\u3002\u203b<\/li>\n<\/ul>\n\n\n\n<p class=\"has-small-font-size\"><strong>\u203bLINE \u30e6\u30fc\u30b6\u30fcID\u306f<code>Webhook<\/code>\u3067\u3057\u304b\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002<\/strong><\/p>\n\n\n\n<p>\u3082\u3057\u307e\u3060\u53d6\u5f97\u3057\u3066\u3044\u306a\u3044\u65b9\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u3066\u7528\u610f\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\uff1a<a href=\"https:\/\/blog.capilano-fw.com\/?p=4285#LINE_Messaging_API\" data-type=\"post\" data-id=\"4285\" target=\"_blank\" rel=\"noreferrer noopener\">Laravel\u3067LINE\u306b\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u3064\u304f\u308b\uff08QR\u30b3\u30fc\u30c9\u4f5c\u6210\uff09<\/a><\/li>\n\n\n\n<li>\u9001\u4fe1\u5148\u306e\u30e6\u30fc\u30b6\u30fcID\uff1a<a href=\"https:\/\/blog.capilano-fw.com\/?p=12525#Webhook\" data-type=\"post\" data-id=\"12525\" target=\"_blank\" rel=\"noreferrer noopener\">Laravel + LINE \u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3067\u300c\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30ea\u30b9\u30c8\u53d6\u308a\u300d\u6a5f\u80fd\u3092\u3064\u304f\u308b<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"has-small-font-size\">\u203bWebhook\u3067\u306f\u4ee5\u4e0b\u306e\u90e8\u5206\u3067LINE\u306e\u300c\u30e6\u30fc\u30b6\u30fcID\u300d\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>$line_id = $event-&gt;getSource()-&gt;getUserId();<\/strong><\/pre>\n\n\n\n<p>\u307e\u305f\u3001LINE\u306ePUSH\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u7121\u6599\u67a0\u306f\u67081,000\u56de\u307e\u3067\u3067\u3059\u3002<br>\u6c17\u3092\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u306d\ud83d\ude0a<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u97f3\u3092\u76e3\u8996\u3057\u3066\u3001\u7121\u97f3\u306b\u306a\u3063\u305f\u3089LINE\u901a\u77e5\u3059\u308b\u90e8\u5206\u3092\u3064\u304f\u308b<\/h2>\n\n\n\n<p>\u3067\u306f\u3001\u30e1\u30a4\u30f3\u306e<code>Python<\/code>\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-verse\"><strong>#!\/usr\/bin\/env python3<br>import time<br>import math<br>import json<br>import numpy as np<br>import sounddevice as sd<br>import requests<br><br># ========= \u8a2d\u5b9a =========<br><br>INPUT_DEVICE_ID = None<br><br>SAMPLE_RATE = 16000          # \u3069\u306e\u304f\u3089\u3044\u7d30\u304b\u304f\u97f3\u3092\u53d6\u308b\u304b\u3002\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u30ec\u30fc\u30c8(Hz)<br>BLOCK_SIZE  = 1024           # 1\u56de\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3042\u305f\u308a\u306e\u30b5\u30f3\u30d7\u30eb\u6570<br><br>THRESHOLD   = 0.0001         # \u7121\u97f3\u3068\u307f\u306a\u3059\u3057\u304d\u3044\u5024\uff08\u2190\u3053\u3053\u306e\u8abf\u6574\u96e3\u3057\u3044\u3067\u3059\uff09<br>SILENT_SECONDS = 5           # \u4f55\u79d2\u9593\u7121\u97f3\u304c\u7d9a\u3044\u305f\u3089\u5145\u96fb\u5b8c\u4e86\u3068\u307f\u306a\u3059\u304b<br><br>LINE_CHANNEL_ACCESS_TOKEN = \"\uff08\u3053\u3053\u306b\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\uff09\"<br>LINE_USER_ID = \"\uff08\u3053\u3053\u306bLINE\u306e\u30e6\u30fc\u30b6\u30fcID\uff09\"<br><br># ========= LINE\u901a\u77e5\u95a2\u6570 =========<br><br>def send_line_push(message: str) -&gt; bool:<br>    url = \"https:\/\/api.line.me\/v2\/bot\/message\/push\"<br>    headers = {<br>        \"Content-Type\": \"application\/json\",<br>        \"Authorization\": f\"Bearer {LINE_CHANNEL_ACCESS_TOKEN}\",<br>    }<br>    body = {<br>        \"to\": LINE_USER_ID,<br>        \"messages\": [<br>            {\"type\": \"text\", \"text\": message}<br>        ]<br>    }<br>    try:<br>        resp = requests.post(url, headers=headers, data=json.dumps(body), timeout=10)<br>        print(f\"[LINE] status={resp.status_code}\")<br>        return 200 &lt;= resp.status_code &lt; 300<br>    except Exception as e:<br>        print(f\"[LINE ERROR] {e}\")<br>        return False<br><br># ========= \u7121\u97f3\u691c\u51fa\u30ed\u30b8\u30c3\u30af =========<br><br>class SilenceDetector:<br>    def __init__(self, threshold: float, silent_seconds: int):<br>        self.threshold = threshold<br>        self.silent_seconds = silent_seconds<br>        self.silent_time = 0.0<br>        self.finished = False  # \u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u306e\u7d42\u4e86\u30d5\u30e9\u30b0<br><br>    def process_block(self, indata: np.ndarray, frames: int):<br>        if self.finished:<br>            return<br><br>        try:<br>            mono = np.mean(indata, axis=1)<br>            rms = math.sqrt(float(np.mean(mono ** 2)))<br>            volume = rms<br><br>            bar = \"|\" * int(volume * 50)<br>            print(f\"vol={volume:.4f} {bar}\")<br><br>            block_duration = frames \/ SAMPLE_RATE<br>            if volume &lt; self.threshold:<br>                self.silent_time += block_duration<br>            else:<br>                self.silent_time = 0.0<br><br>            if self.silent_time &gt;= self.silent_seconds:<br>                print(f\"[INFO] {self.silent_time:.1f}\u79d2\u4ee5\u4e0a\u7121\u97f3 -&gt; LINE\u901a\u77e5\")<br>                ok = send_line_push(\"EV\u306e\u5145\u96fb\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\")<br>                if ok:<br>                    print(\"[INFO] \u901a\u77e5\u6210\u529f\u3002\u76e3\u8996\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002\")<br>                else:<br>                    print(\"[INFO] \u901a\u77e5\u5931\u6557\u3002\u76e3\u8996\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002\")<br>                self.finished = True<br>        except Exception as e:<br>            print(f\"[CALLBACK ERROR] {e}\")<br><br># ========= \u30b3\u30fc\u30eb\u30d0\u30c3\u30af =========<br><br>detector = SilenceDetector(THRESHOLD, SILENT_SECONDS)<br><br>def audio_callback(indata, frames, time_info, status):<br>    try:<br>        if status:<br>            print(f\"[STATUS] {status}\")<br>        detector.process_block(indata, frames)<br>    except Exception as e:<br>        print(f\"[AUDIO CALLBACK ERROR] {e}\")<br>        detector.finished = True<br><br># ========= \u30e1\u30a4\u30f3 =========<br><br>def main():<br>    print(\"\u76e3\u8996\u958b\u59cb!\")<br>    print(f\"device={INPUT_DEVICE_ID}, threshold={THRESHOLD}, silent_seconds={SILENT_SECONDS}\")<br><br>    with sd.InputStream(<br>        device=INPUT_DEVICE_ID,<br>        channels=1,<br>        samplerate=SAMPLE_RATE,<br>        blocksize=BLOCK_SIZE,<br>        callback=audio_callback,<br>    ):<br>        try:<br>            while not detector.finished:<br>                time.sleep(0.5)<br>        except KeyboardInterrupt:<br>            print(\"\u624b\u52d5\u7d42\u4e86\")<br>        finally:<br>            print(\"\u76e3\u8996\u7d42\u4e86\")<br><br>if __name__ == \"__main__\":<br>    main()<\/strong><\/pre>\n\n\n\n<p>\u3061\u306a\u307f\u306b<code>INPUT_DEVICE_ID<\/code>\u306e\u90e8\u5206\u306fNone\u306e\u5834\u5408\u3001\u73fe\u5728\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u306a\u3063\u3066\u3044\u308b\u3082\u306e\u304c\u9078\u629e\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u3061\u306a\u307f\u306b\uff1a\u30de\u30a4\u30af\u4ed8\u304d\u30a4\u30e4\u30db\u30f3\u306e\u8a2d\u7f6e\u65b9\u6cd5\u306f\u2026\uff1f<\/h2>\n\n\n\n<p><code>Bluetooth<\/code>\u3067\u63a5\u7d9a\u3067\u304d\u308b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7121\u7dda\u30a4\u30e4\u30db\u30f3\uff08<a href=\"https:\/\/amzn.to\/44Aceqa\" target=\"_blank\" rel=\"noreferrer noopener\">Sony WI-C310<\/a>\uff09\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"457\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/12\/ev-charge-notification-2.png\" alt=\"\" class=\"wp-image-19478\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/12\/ev-charge-notification-2.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/12\/ev-charge-notification-2-300x214.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>\u3053\u306e\u30a4\u30e4\u30db\u30f3\u3092<code>Bluetooth<\/code>\u3067\u30d1\u30bd\u30b3\u30f3\u306b\u63a5\u7d9a\u3057\u305f\u3089\u3001\u30b5\u30a6\u30f3\u30c9\u306e\u5165\u529b\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3001\u30de\u30a4\u30af\u306e\u97f3\u3092\u53d6\u5f97\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"539\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/12\/ev-charge-notification-3.png\" alt=\"\" class=\"wp-image-19484\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/12\/ev-charge-notification-3.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/12\/ev-charge-notification-3-300x253.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p class=\"has-small-font-size\">\u203b\u79c1\u306e\u74b0\u5883\u306fLinux\u3067\u3059\u304c\u3001windows\u3067\u3082\u307b\u307c\u540c\u3058\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3067\u5148\u307b\u3069\u306e<code>Python<\/code>\u30b3\u30fc\u30c9\u304b\u3089\u97f3\u3092\u76e3\u8996\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3067\u4f5c\u696d\u306f\u5b8c\u4e86\u3067\u3059\uff01<br>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\ud83d\ude0a<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h2>\n\n\n\n<p>\u3067\u306f\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p>\u2026\u3068\u3044\u3044\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u3069\u3046\u3084\u3089\u79c1\u306e\u30d1\u30bd\u30b3\u30f3\u306f<code>Bluetooth<\/code>\u304c\u5f31\u3044&amp;\u81ea\u5ba4\u304b\u3089\u306fEV\u306f\u8ddd\u96e2\u304c\u3042\u308b\u305f\u3081\u5b9f\u969b\u306b\u306f\u3046\u307e\u304f\u884c\u304d\u307e\u305b\u3093\u3067\u3057\u305f\ud83d\ude2b\uff08\u671f\u5f85\u3057\u305f\u65b9\u3001\u30b4\u30e1\u30f3\u30ca\u30b5\u30a4\u3002\u30b9\u30de\u30db\u306a\u3089\u3044\u3051\u308b\u3093\u3067\u3059\u304c\u2026\uff09<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u90e8\u5c4b\u306b\u3042\u308b\u7a7a\u6c17\u6e05\u6d44\u6a5f\u306eON\/OFF\u3067\u8a66\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"291\" height=\"307\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/12\/ev-charge-notification-4.png\" alt=\"\" class=\"wp-image-19497\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/12\/ev-charge-notification-4.png 291w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/12\/ev-charge-notification-4-284x300.png 284w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/figure>\n\n\n\n<p>\u306f\u3044\uff01<br><code>Python<\/code>\u4e0a\u3067\u306f\u3046\u307e\u304f\u7121\u97f3\u3092\u30c8\u30ea\u30ac\u30fc\u306b\u3057\u3066\u901a\u77e5\u3057\u3066\u304f\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u3001<code>LINE<\/code>\u306e\u65b9\u3082\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"530\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/12\/ev-charge-notification-1.png\" alt=\"\" class=\"wp-image-19491\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/12\/ev-charge-notification-1.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2025\/12\/ev-charge-notification-1-300x248.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>\u306f\u3044\uff01<br>\u3053\u3061\u3089\u3082\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\ud83d\ude0a<\/p>\n\n\n\n<p>\uff08\u4eee\u3067\u3059\u304c\uff09\u6210\u529f\u3067\u3059\ud83d\udc4d<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h2>\n\n\n\n<p>\u4eca\u56de\u306e\u3088\u3046\u306b\u97f3\u3060\u3051\u3067\u306a\u304f\u3001<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6e29\u5ea6\u30bb\u30f3\u30b5\u30fc<\/li>\n\n\n\n<li>\u6e7f\u5ea6\u30bb\u30f3\u30b5\u30fc<\/li>\n\n\n\n<li>\u8fd1\u63a5\u30bb\u30f3\u30b5\u30fc<\/li>\n\n\n\n<li>\u4eba\u611f\u30bb\u30f3\u30b5\u30fc<\/li>\n\n\n\n<li>GPS\u30bb\u30f3\u30b5\u30fc<\/li>\n\n\n\n<li>\u8d64\u5916\u7dda\u30bb\u30f3\u30b5\u30fc<\/li>\n\n\n\n<li>\u632f\u52d5\u30bb\u30f3\u30b5\u30fc<\/li>\n<\/ul>\n\n\n\n<p>\u306a\u3069\u305d\u306e\u4ed6\u306e\u72b6\u6cc1\u5909\u5316\u3092\u30c8\u30ea\u30ac\u30fc\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3082\u3057\u305d\u3046\u3044\u3063\u305f\u6a5f\u80fd\u3067\u696d\u52d9\u306e\u52b9\u7387\u5316\u3084\u30b3\u30b9\u30c8\u30c0\u30a6\u30f3\u3092\u3054\u5e0c\u671b\u3067\u3057\u305f\u3089\u3001\u304a\u6c17\u8efd\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\ud83d\ude0a<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u304a\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u97f3\u3092\u76e3\u8996\u3059\u308b\u30b7\u30b9\u30c6\u30e0\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\uff01<\/p>\n\n\n\n<p>\u30d6\u30ed\u30b0\u8a18\u4e8b\u304b\u3089\u3059\u308b\u3068\u77ed\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u8abf\u67fb\u6642\u9593\u304c\u9577\u304f\u3001\u3080\u3057\u308d\u3044\u3064\u3082\u3088\u308a\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff08\u7b11\uff09<\/p>\n\n\n\n<p class=\"has-small-font-size\">\u30bf\u30a4\u30e0\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001\u3080\u305a\u3044\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001\u4eca\u56de\u306e\u96e3\u3057\u3044\u306a\u3068\u611f\u3058\u305f\u306e\u306f<code>THRESHOLD<\/code>\uff08\u3057\u304d\u3044\u5024\uff09\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3064\u307e\u308a\u306f\u3001\u3053\u306e\u6570\u5024\u4ee5\u4e0a\u306e\u97f3\u304c\u51fa\u3066\u3044\u305f\u3089\u5145\u96fb\u4e2d\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u304c\u3001\u30d5\u30a1\u30f3\u97f3\u304c\u5fae\u5999\u306a\u5834\u5408\u306f\u8a2d\u5b9a\u304c\u96e3\u3057\u3044\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001\u98a8\u304c\u5f37\u3044\u65e5\u304c\u3042\u308b\u3068\u5145\u96fb\u304c\u6b62\u307e\u3089\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u308a\u3046\u308b\u306e\u3067\u3001\u3084\u306f\u308a\u5b8c\u5168\u306b\u3084\u308b\u306b\u306f\u96fb\u6c17\u7cfb\u7d71\u3068\u306e\u9023\u643a\u304c\u5fc5\u8981\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3068\u306f\u3044\u3048\u3001\u4eca\u56de\u3082\u697d\u3057\u3044\u5b9f\u9a13\u3067\u3057\u305f\u3002<br>\u305c\u3072\u7686\u3055\u3093\u3082\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u3067\u306f\u301c\uff01<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"338\" height=\"320\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/no_15.png\" alt=\"\" class=\"wp-image-8777\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/no_15.png 338w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/no_15-300x284.png 300w\" sizes=\"auto, (max-width: 338px) 100vw, 338px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\">\u300cEV\u304c\u30ab\u30ef\u30a4\u30a4\u3068\u8a00\u308f\u308c\u308b\u3068\u3001<br>\u81ea\u5206\u306f\u95a2\u4fc2\u306a\u3044\u306e\u306b\u3001\u7167\u308c\u3061\u3083\u3044\u307e\u3059\ud83d\ude0a\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u30014\u6708\u672b\u306bEV\uff08\u30c8\u30a5\u30af\u30c8\u30a5\u30af\u3002\u30c9\u30a2\u306a\u3057\uff09\u3092\u8cfc\u5165\u3057\u3001\u751f\u6d3b\u306e\u8cea\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u305f\u306e\u3067\u3059\u304c\u30011\u3064\u300c\u3053\u3046\u3060\u3063\u305f\u3089\u3044\u3044\u306e\u306b\u306a\u2026\ud83e\udd14\u300d\u3068\u601d\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u308c\u306f\u30fb\u30fb &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=19394\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010Python\u3011EV\u306e\u5145\u96fb\u97f3\u3092\u76e3\u8996\u3057\u3001\u5b8c\u4e86\u3057\u305f\u3089LINE\u901a\u77e5\u3057\u3066\u307f\u305f\uff01&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":19439,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"class_list":["post-19394","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/19394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19394"}],"version-history":[{"count":107,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/19394\/revisions"}],"predecessor-version":[{"id":19522,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/19394\/revisions\/19522"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/19439"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}