This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//wheelchair kickstand | |
base = 120; | |
width = 50; | |
height = 200; | |
camber = 25; | |
difference(){ | |
union(){ | |
rotate([0,45,0]){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import board | |
import digitalio | |
import random | |
from adafruit_hid.mouse import Mouse | |
from adafruit_hid.keyboard import Keyboard | |
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS | |
from adafruit_hid.keycode import Keycode | |
# Initialize mouse and keyboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from openai import OpenAI | |
import os | |
client = OpenAI(api_key='sk-...') | |
import pyfiglet | |
import time | |
from pyfiglet import Figlet | |
import keyboard | |
f = Figlet(font='basic', justify='center', width=80) | |
# Set your OpenAI API key here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import os | |
import cv2 | |
import libcamera | |
from picamera2 import Picamera2 | |
import PIL.Image | |
import time | |
# Directory to save the captured images | |
output_dir = "/home/pi/captured_images" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import RPi.GPIO as GPIO | |
import os | |
import signal | |
import atexit | |
import random | |
from PIL import Image | |
import time | |
from picamera2 import MappedArray, Picamera2, Preview | |
import cv2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: ESP32 Door Alarm | |
description: "Control LEDs and buzzer based on door sensor states" | |
domain: automation | |
input: | |
door_sensor_1: | |
name: Door Sensor 1 | |
description: "Select the door sensor for Door 1" | |
selector: | |
entity: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Notify if door open too long | |
description: This automation will send a notification if a door sensor has been open for a specified duration. | |
domain: automation | |
input: | |
door_sensor: | |
name: Door sensor | |
description: The door sensor to monitor. | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyaudio | |
import wave | |
import os | |
import datetime | |
import speech_recognition as sr | |
import openai | |
import re | |
import threading | |
import time | |
import rainbowhat as rh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import openai | |
openai.api_key = "sk-..." | |
from google.cloud import texttospeech | |
from google.oauth2 import service_account | |
creds = service_account.Credentials.from_service_account_file('/home/pi/key.json') | |
client = texttospeech.TextToSpeechClient(credentials=creds) | |
voices = client.list_voices().voices | |
standardVoices = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import openai | |
import time | |
import random | |
import os | |
import keyboard | |
import subprocess | |
from pyfiglet import Figlet | |
# API key for OpenAI API | |
openai.api_key = "sk-" |
NewerOlder