Govee API doc: https://govee-public.s3.amazonaws.com/developer-docs/GoveeDeveloperAPIReference.pdf
Hardware needed:
AM312 motion sensor: https://amzn.to/3HgShIX
ESP32 dev board: https://amzn.to/3tOSyzI
Govee API doc: https://govee-public.s3.amazonaws.com/developer-docs/GoveeDeveloperAPIReference.pdf
Hardware needed:
AM312 motion sensor: https://amzn.to/3HgShIX
ESP32 dev board: https://amzn.to/3tOSyzI
image_files = [f for f in os.listdir(input_folder) if f.lower().endswith(('.png', '.jpg', '.jpeg', '.gif', '.bmp'))] |
#include <opencv2/opencv.hpp> | |
int main() { | |
std::string inputVideoPath = "in_vid.mp4"; // Input video file | |
std::string outputVideoPath = "out_vid.mp4"; // Output video file with the desired frame rate | |
// Open the input video file | |
cv::VideoCapture inputVideo(inputVideoPath); |
import RPi.GPIO as GPIO | |
from time import sleep | |
import curses | |
# Define GPIO pin numbers | |
RIGHT_FORWARD_PIN = 17 | |
RIGHT_BACKWARD_PIN = 18 | |
RIGHT_ENABLE_PIN = 4 | |
LEFT_FORWARD_PIN = 22 |
#include "Wire.h" //allows communication over i2c devices | |
const int sensorPin = A0; | |
float sensorVal = 0; | |
float p_max = 5000; | |
float p_min = 0; | |
float v_max = 5; | |
float v_min = 0; |
def get_jpgs(path): | |
jpgs = [] | |
for root, dirs, files in os.walk(path): | |
for file in files: | |
if file.endswith('.jpg'): | |
jpgs.append(os.path.join(root, file)) | |
return jpgs |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import re | |
def camel_case_split(str): | |
return re.sub(r'((?<=[a-z])[A-Z]|(?<!\A)[A-Z](?=[a-z]))', r' \1', str) | |
f = [ |
function getCertificate(name, date) { | |
//=getCertificate(B2,C2) | |
var formData = { | |
transformations: { | |
date:{text:date}, | |
name:{text:name} | |
}, | |
template_id:'<template-id>', | |
format:'pdf' | |
} |
<?php | |
use GuzzleHttp\Client; | |
$client = new Client(); | |
$data = json_decode($request->getContent(), true); | |
$action = $data['action']; | |
$feedback = $data['feedback']; | |
$project = $feedback['project']; | |
$reporter = $feedback['reporter']; |