Upgrade to Pro — share decks privately, control downloads, hide ads and more …

obnizを制御するChatGPT自作プラグイン #iotlt #chatgpt

n0bisuke
September 21, 2023

obnizを制御するChatGPT自作プラグイン #iotlt #chatgpt

IoTLT vol103 at ソフトバンクでの発表 https://iotlt.connpass.com/event/294281/

n0bisuke

September 21, 2023
Tweet

More Decks by n0bisuke

Other Decks in How-to & DIY

Transcript

  1. ඞཁͳϚχϡϑΣετϑΝΠϧXFMMLOPXOBJQMVHJOKTPO \ TDIFNB@WFSTJPOW  OBNF@GPS@IVNBOPCOJ[ͷ੍ޚϓϥάΠϯ  OBNF@GPS@NPEFMPCOJ[@DPOUSPM@QMVHJO  EFTDSJQUJPO@GPS@IVNBOPCOJ[Λ੍ޚͯ͠*P5Λ࣮ݱ͠·͢ɻ 

    EFTDSJQUJPO@GPS@NPEFM5IJTQMVHJODPOUSPMTPCOJ[UPSFBMJ[FBTNBSUIPNF*USFDPHOJ[FTMJHIUJOHPOP ff BOEDPMPS JOGPSNBUJPOBOEDPOWFSUTJUUP3(#WBMVFTGPSDPOUSPM  BVUI\ UZQFOPOF ^  BQJ\ UZQFlPQFOBQJ  VSMIUUQTϗετ໊PQFOBQJZBNM ^  MPHP@VSMIUUQTϗετ໊MPHPQOH  DPOUBDU@FNBJMTVQQPSU!FYBNQMFDPN  MFHBM@JOGP@VSMIUUQTFYBNQMFDPNMFHBM ^ EFTDSJQUJPO@GPS@NPEFMʹͲΜͳจষॻ͔͕͘ॏཁ
  2. ࣗવݴޠͰ৭Λࢦఆ͢Δͱ಺෦ม׵Λউखʹ΍ͬͯ͘ΕΔ app.post('/colorLED/:rgb', (req, res) => { console.log(`color LED..!!`) const rgb

    = req.params.rgb; const [r, g, b] = rgb.split(','); rgbled.rgb(r,g,b); // console.log(req.params, rgb, req.body, rgb.split(',')) res.status(200).send('OK'); }); ʮਫ৭ʹͯ͠ʯ಺෦తʹ   ʮ୶͍੨ʹͯ͠ʯ಺෦తʹ   NBJOKT DPMPS-&%SHCͷؔ਺಺෦ -JLF'VODUJPO$BMMJOH
  3. ࠶ܝؔ਺ݺͼग़͠ͷΩϞ \ TDIFNB@WFSTJPOW  OBNF@GPS@IVNBOPCOJ[ͷ੍ޚϓϥάΠϯ  OBNF@GPS@NPEFMPCOJ[@DPOUSPM@QMVHJO  EFTDSJQUJPO@GPS@IVNBOPCOJ[Λ੍ޚͯ͠*P5Λ࣮ݱ͠·͢ɻ 

    EFTDSJQUJPO@GPS@NPEFM5IJTQMVHJODPOUSPMTPCOJ[UPSFBMJ[FBTNBSUIPNF*USFDPHOJ[FTMJHIUJOHPOP ff BOEDPMPS JOGPSNBUJPOBOEDPOWFSUTJUUP3(#WBMVFTGPSDPOUSPM  BVUI\ UZQFOPOF ^  BQJ\ UZQFlPQFOBQJ  VSMIUUQTϗετ໊PQFOBQJZBNM ^  MPHP@VSMIUUQTϗετ໊MPHPQOH  DPOUBDU@FNBJMTVQQPSU!FYBNQMFDPN  MFHBM@JOGP@VSMIUUQTFYBNQMFDPNMFHBM ^