Skip to content

Instantly share code, notes, and snippets.

View pyrho's full-sized avatar
🕶️
8)

Damien Rajon pyrho

🕶️
8)
View GitHub Profile
@pyrho
pyrho / bottle_holder.diff
Created July 23, 2023 15:18
bottle_holder.diff
10a11
> boltZOffset=-15;
132c133,134
< for(z=[0.5,-0.5]) t([0,0,z*boltSpan]){
---
> t([0, 0, boltZOffset])
> for(z=[0.5,-0.5]) t([0,0,(z*boltSpan)]){
@pyrho
pyrho / timelapse.gcode
Last active October 11, 2023 13:14
GCode for timelapse trigger - Prusa MK4
;AFTER LAYER CHANGE
;[layer_z]
{ if layer_num >= 1 }
; Retraction is not needed
;G1 E-2 F3600 ; retract
G0 X0 Y170 F{travel_speed*60} ; get next to the switch
M400 ;Wait for all moves to finish
#include <Wire.h>
#include "AHT20.h"
#include <ESP8266WiFi.h>
#include <InfluxDbClient.h>
#include <InfluxDbCloud.h>
#define ONE_MINUTE 60 * 1000
#define ONE_HOUR ONE_MINUTE * 60
#define INFLUXDB_URL "http://influxdb2.lan:8086"