ChatGPT Guidelines The World… Or, At Least, The Dwelling

With all of the hype about ChatGPT, it has to have crossed your thoughts: how can I make it management units? On the utopia aspect, you possibly can say, “Hey, ChatGPT, work out what hours I’m normally residence and set the thermostat greater when I’m away.” On the dysfunctional aspect, the AI might lock you in your house and torment you want some horror film. We aren’t to both excessive but, however [Chris] couldn’t resist writing a ChatGPT plugin to control a Raspberry Pi. You’ll be able to see a video of the way it turned out under.

In accordance with [Chris], writing a ChatGPT plugin is definitely a lot easier than you assume. You’ll be able to see within the video the AI can intuit what lights to activate and off based mostly in your exercise, and, in fact, many extra issues are potential. It could possibly even detect loud night breathing.

In a little bit of self-referential work, ChatGPT really wrote a great little bit of the code required. Right here’s the immediate:

Write me a Python Flask API to run on a Raspberry Pi and management some lights connected to GPIO pins.

I've the next lights:

Kitchen: pin 6
Bed room: pin 13
Eating desk: pin 19
Rest room: pin 26
Lounge: pin 5

I would like the next endpoints:

get lights - returns the record of lights together with their present state
publish toggle_light - switches a light-weight on or off

It additionally took the code and generated an OpenAPI file for it routinely. Fairly slick!

After all, that is simply the tip of the iceberg of what you possibly can do with a system like this. We’re each excited and a bit of nervous about what’s going to occur when AI takes over extra real-world {hardware}.

As we’ve identified, ChatGPT is nice for tedious programming duties, however you do have to confirm that it’s getting issues proper. We aren’t going to be put out of labor by AI — not less than, not but.