Raspberry Pi IoT Platform powered by GPT-4. Customize your own IoT application with natural language.
- Clone this repository and install the required packages:
git clone https://github.com/JinghaoZhao/IoT-GPT.git pip install -r requirements.txt - Create a
.envfile to put your API key:
OPENAI_API_KEY=sk-xxxxxx - Run the IoT-GPT:
python run.py - Open your web browser at http://127.0.0.1:7860 to generate your own IoT application config.
- Store the config as
config.yaml, then run the IoT application on your Raspberry Pi:
python iot_app.py If you need security support, such as setting up CoAP DTLS or generate TLS certs for MQTT, please refer the Security Setup.
IoT-GPT supports using a knowledge base to answer IoT-related questions. You can preload documents or provide URLs as background knowledge for your IoT application. More details can be found in Knowledge Base.
