OpenClaw is an open-source project that allows you to turn a Raspberry Pi into a capable AI agent. It provides a framework for connecting large language models (LLMs) to physical sensors and actuators, enabling the Pi to interact with the real world. This article details how to set up OpenClaw, including installing the necessary software, configuring the LLM, and connecting sensors like a microphone and camera. It also explores potential applications, such as home automation, robotics, and environmental monitoring.
This week in Python on Microcontrollers, we have the CircuitPython 10.1.0 release candidate, a new guide for AI on microcontrollers, and more!
Train your neural network in TensorFlow or PyTorch, and run it inside CircuitPython using a single line of Python code.
import EasyCrypt
keystring = "SixteenByteKey!!"
inpstring = "Some super secret string, that I don't want you to see."
# This is the initialisation vector/nonce. I generated it with the below code. As you
# will need it to decrypt later on, you might want to store it and not just generate it each time
# I just generated it like this and printed this one out to store it.
#
# import os
# from binascii import hexlify, unhexlify
# ivstring = hexlify(os.urandom(16)).decode()
ivstring = "aba0a3bde34a03487eda3ec96d5736a8"
crypted = EasyCrypt.encrypt_string(keystring, inpstring, ivstring)
print(crypted)
decrypted = EasyCrypt.decrypt_string(keystring, crypted, ivstring)
print(decrypted)