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
; An idea for using the heated bed of a 3D printer as a filament dryer. | |
; Adds GCODE command: START_DRYER TIME=T TEMPERATURE=C | |
; (T is time in seconds, C is bed temperature in Celsuis) | |
; To stop drying early, use STOP_DRYER. | |
; Also defined some utility macros: DRY_PLA, DRY_PETG and DRY_ABS. | |
; Edit these with your own preferred defaults. | |
[gcode_macro START_DRYER] | |
description: Start the heated bed filament dryer. | |
gcode: |
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
function dateTimeReviver (key, value) { | |
var a; | |
if (typeof value === 'string') { | |
a = /\/Date\((\d*)\)\//.exec(value); | |
if (a) { | |
return new Date(+a[1]); | |
} | |
} | |
return value; | |
} |