Skip to content

Instantly share code, notes, and snippets.

View saty9's full-sized avatar
💭
busy

Kyle Cooke saty9

💭
busy
View GitHub Profile
flex cable adapter https://www.modmypi.com/raspberry-pi/camera/camera-cables/raspberry-pi-zero-camera-cable-300mm/?gclid=CjwKCAiAqvXTBRBuEiwAE54dcM033w19gBKMbzWyG5doXgoc4FeQWvBHkUWxS1RIc4FWj6KAhzZTMRoCAOUQAvD_BwE
onecall: 2510728 pi camera
pizero w https://thepihut.com/collections/raspberry-pi/products/raspberry-pi-zero-w?variant=30332705425
onecall: MD00820 microsd card 8 GB
weird usb cable https://www.ebay.co.uk/i/263296079842?chn=ps&adgroupid=51456967435&rlsatarget=pla-400778349273&abcId=1130086&adtype=pla&merchantid=113470684&poi=&googleloc=9046887&device=c&campaignid=1029031571&crdt=0
@saty9
saty9 / pbx_ringer
Created June 6, 2018 13:19
a script for an esp8266 to trigger an action on an asterisk server
#include <ESP8266WiFi.h>
char ssid[] = "WIFI SSID";
char pass[] = "WIFI PASSWORD";
IPAddress pbx(192,168,0,60); //ip address of asterisk server
WiFiClient client;
void setup() {
Serial.begin(115200);
Serial.println();
/*
Created by Igor Jarc
Modified for emoncms by Kyle Cooke
See http://iot-playground.com for details
Please use community fourum on website do not contact author directly
Code based on https://github.com/DennisSc/easyIoT-ESPduino/blob/master/sketches/ds18b20.ino
External libraries:
- https://github.com/milesburton/Arduino-Temperature-Control-Library
@saty9
saty9 / pack_items
Last active January 17, 2024 20:09
bad gcode manipulation
import sys
import re
from copy import copy
START_STRING = "; G-code START <<<\n"
END_STRING = "; G-code END <<<\n"
X_REGEX = re.compile("X(-?[0-9]+(.[0-9]+)?)")
Y_REGEX = re.compile("Y(-?[0-9]+(.[0-9]+)?)")