profile
viewpoint
TJ Horner tjhorner @srnd / @Academus Carlsbad, California https://tjhorner.com/portfolio A jack of all trades

push eventsrnd/Clear

TJ Horner

commit sha fb41b527b2ac09321d9168c56102e7761f4a9cac

Make name normalization not take effect for names <= 3 chars

view details

push time in 12 hours

push eventtjhorner/shorty

TJ Horner

commit sha be8c4ab02f572d123200b525d6036f91108183ed

lmao

view details

push time in 10 days

push eventtjhorner/shorty

TJ Horner

commit sha cdc4dca374da5eeadb569e87ee851e847b649edc

readme

view details

push time in 10 days

push eventtjhorner/shorty

TJ Horner

commit sha 1de507576486a8f0f926943737a3ed81751755cd

:b:

view details

push time in 10 days

push eventtjhorner/shorty

TJ Horner

commit sha 06f0ddd06de62329635b5e48e64ef00fbc7b69ec

yate

view details

push time in 10 days

create barnchtjhorner/shorty-cli

branch : master

created branch time in 10 days

created repositorytjhorner/shorty-cli

Super duper very abundantly simple CLI tool for shorty.

created time in 10 days

push eventtjhorner/shorty

TJ Horner

commit sha 20d693ab1c5653a124d811a23d867c47a3dfa2b9

o

view details

push time in 11 days

create barnchtjhorner/shorty

branch : master

created branch time in 11 days

pull request commenttjhorner/schema.tl

[chore] Update to layer 99

not good

SchemaBot

comment created time in 11 days

created repositorytjhorner/shorty

A super-duper-simple short URL creator written in Go

created time in 12 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha b652174d7b6feeb5ef40c944779f77c5dd16d5ba

a

view details

push time in 12 days

push eventtjhorner/mbot

TJ Horner

commit sha 047a07281d809fa012bd6a0f1120e9fc19f8b7b0

cool epic human-readable

view details

push time in 12 days

issue openedtjhorner/makerbot-rpc

Maybe switch to encoding/json's scanner?

This exists: https://golang.org/src/encoding/json/scanner.go

Maybe we should use it instead of the homebrew jsonreader.go?

created time in 12 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 28d4fcf42969eb8e5e5e9d6856509f1ce440db7f

experimental

view details

push time in 12 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 59e1f0344769abb4f307653960da3c2063be8512

important fix

view details

push time in 12 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 25b35b1c50a971d2dfe62428ee9b5d68a0ee4196

fix one of many leaks

view details

push time in 13 days

push eventtjhorner/makerbotd

TJ Horner

commit sha 9e014045e39b91a5993560a1648f161a94aaf1f5

r

view details

push time in 13 days

push eventtjhorner/makerbotd

TJ Horner

commit sha c8f5146004cf216b5c3cddb4d6ab26be719aab01

stuff

view details

push time in 13 days

push eventtjhorner/makerbotd

TJ Horner

commit sha 3983da8b41d20ba3790dd866b9500d85a26b8009

change API to cachebust just in case

view details

push time in 13 days

push eventtjhorner/mbot

TJ Horner

commit sha 5667229533ffa532fb5938d7bfe244defca99088

better

view details

push time in 13 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha ca3b0e1075e1719e3462307faf1b5bfbccf37218

didn't mean to commit that

view details

push time in 13 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 6f407dea5b619966045a6651cb68eb0e5caf29e6

docs

view details

push time in 13 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha c19bccb0db501dd6eb7e330320893a63efbe726a

handle error

view details

push time in 13 days

push eventtjhorner/makerbotd

TJ Horner

commit sha 78845b7c0ecf36e9004d47527be0a439e85d8c2b

read-only mode

view details

push time in 13 days

push eventtjhorner/makerbotd

TJ Horner

commit sha a619f71e9fa387cc51aa18325aede6945b3bc367

fix a nasty crash; pprof

view details

push time in 13 days

issue commenttjhorner/MakerbotWebUI

TypeError: Cannot read property 'answer_code' of undefined

Hey, sorry; been busy. AP tests coming up.

Still will look into this when I have the time. Probably next week.

peter-russell

comment created time in 15 days

issue commenttjhorner/makerbotd

Profile for memory leaks

update: there are memory leaks, but not in makerbotd. they are in makerbot-rpc. smh my head

tjhorner

comment created time in 19 days

created repositorytjhorner/telegram-makerbot

created time in 19 days

issue openedtjhorner/makerbotd

Profile for memory leaks

I don't have any reason to believe that makerbotd is leaking memory, but seeing that this is intended to be a long-running process, we need to ensure that memory leaks won't happen.

created time in 19 days

push eventtjhorner/makerbotd

TJ Horner

commit sha c98754ec4c62e4c5d25238d786b516f42c354e55

debug stats

view details

push time in 19 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha d2481f32b5386093c4b2d4c747fd0f3557ce2c54

forgot what I changed lul

view details

push time in 19 days

push eventtjhorner/mbot

TJ Horner

commit sha 252f93755e0a6cc4edd8585eefdf6b7a4d891ac4

E

view details

push time in 19 days

push eventtjhorner/makerbotd

TJ Horner

commit sha ffe29f9509c2eec60cca1fe72d6c563d2fb80646

update makefile for ARM on Linux (useful for raspberry pis), timeouts

view details

push time in 19 days

push eventtjhorner/makerbotd

TJ Horner

commit sha 646d5e587deb1fde241a51cf7423d917a2a30703

timeouts, mutex stuff, basis for knob auth

view details

push time in 19 days

push eventtjhorner/makerbotd

TJ Horner

commit sha 6fdf9ea345d526efde7bf134fc952fe4f7189697

dock

view details

push time in 19 days

startedparagonie/paseto

started time in 19 days

push eventtjhorner/makerbotd

TJ Horner

commit sha 5aadcf32e9f34a3574de59182d989e994570db65

ggg

view details

push time in 20 days

push eventtjhorner/makerbotd

TJ Horner

commit sha 4df9ff4b3e6fbfff5ab33e0e05f890fa585b497b

yet

view details

push time in 20 days

push eventtjhorner/mbot

TJ Horner

commit sha 7773729b014e0e51ce424178cc5b6cbc30570e79

reed me

view details

push time in 20 days

push eventtjhorner/makerbotd

TJ Horner

commit sha 2dd0a102daba06f3685794e1c43260d3725f10af

better tagline

view details

push time in 20 days

push eventtjhorner/makerbotd

TJ Horner

commit sha 019185fb1c86aed8b75ec86240bbd3f68832d204

docks

view details

push time in 20 days

push eventtjhorner/makerbotd

TJ Horner

commit sha c51d9d57ef9f5b02152f7e345abca2f1bea3954c

api

view details

push time in 20 days

push eventtjhorner/mbot

TJ Horner

commit sha 5b90f1de7bd7b514a5c0ab22ea27e0ddce747c5f

bugfix

view details

push time in 20 days

push eventtjhorner/mbot

TJ Horner

commit sha dc9c15641d88252e238b060d3521021baee6d901

timelapse (beta)

view details

push time in 20 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 9f057bdc97ce59ccf11e7a4ff0368d3fa47c31dc

bug fixes

view details

push time in 20 days

push eventtjhorner/makerbotd

TJ Horner

commit sha 8d7377f6255375936e8aac7fd4a1ab276e0cf517

resume/suspend support

view details

push time in 20 days

issue openedtjhorner/makerbot-rpc

Unsupported JSON-RPC methods

Here's a non-exhaustive list of JSON-RPC methods that MakerBot printers accept and that we don't currently support. I only included methods that are likely to be useful.

toggle_sound
get_sound_state
get_tool_usage_stats
get_available_z_offset_adjustment
get_z_adjusted_offset
set_z_adjusted_offset
has_z_calibration_routine
is_endstop_triggered
set_toolhead_error_visibility
download_and_install_firmware
brooklyn_upload
run_diagnostics
drm_print
library_print
cloud_slice_print
external_print
print_again

# Low-level machine commands; looks like we can send raw commands to the toolpath!
open_queue
close_queue
clear_queue
execute_queue
get_queue_status

disable_check_build_plate
enable_check_build_plate
bronx_upload
get_bronx_upload_process
preheat
setup_printer
firmware_cleanup
cool
reset_to_factory
manual_level
assisted_level
calibrate_z_offset
home
zip_logs
copy_ssh_id # very interesting ;)
clear_ssh_id
yonkers_upload
program_tool
set_z_pause_mm
clear_z_pause_mm
clear_all_z_pause
enable_z_pause
disable_z_pause
park
load_print_tool
resume_boot
acknowledged
kill_power
reboot
disable_leds
enable_leds
reset_lcd
toggle_lcd
wifi_signal_strength
fill_config_skeleton
wifi_setup
dump_machine_config

There are more, but I'm tired of copy-pasting.

created time in 20 days

push eventtjhorner/makerbotd

TJ Horner

commit sha 02635537ee0c3f605f21d535f4af14f0b7d597b6

make it work with new makerbot-rpc

view details

push time in 20 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 170120e852a3f1caa419a3910eb9f6df1dc47417

stream in files instead of loading them entirely into memory

view details

push time in 20 days

startedgoogle/subcommands

started time in 21 days

create barnchtjhorner/mbot

branch : master

created branch time in 21 days

create barnchtjhorner/makerbotd

branch : master

created branch time in 21 days

created repositorytjhorner/mbot

created time in 21 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 27ea84de11a747695995fc676dacd4ea3b1f4d86

look I'm handling errors

view details

push time in 23 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 394898cf97a75b48abba9f55a46ea30c9916ba31

r

view details

push time in 23 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 5e1bc182d8580ca0e065a35f530d9f2175816a37

me read

view details

push time in 23 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 7abda6f8fe7fd496bfff76a8ff6da0bee0a4d8bc

fuzzy puns

view details

push time in 23 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 7175e0f25817d0cb9161aa7703ff09e1da6fbb23

e

view details

push time in 23 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha c4906ace8a869c473a2d69ac5aa1ebdad04b535b

package yes

view details

push time in 23 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha f4e98be64e1e2e00d2ef33666e5b5a499188fe3f

update readme

view details

push time in 23 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 290be0e12b154a34c9bb5965975a78b49d56a085

printer discovery (untested)

view details

push time in 23 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 7f4272e6d4c0560a9e6ad2cf01343fb836d256b8

yeeaaafdkjass I am so tired

view details

push time in 23 days

created repositorytjhorner/makerbotd

makerbotd is a daemon that does cool things

created time in 24 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha a6753f396625cf339c0c6bcf367aeda1bb06c4d5

smh my head

view details

push time in 24 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 0d3d03acf104ce10c7828f6789e44ccd8c15cee0

updat readme

view details

push time in 24 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 8de0ebdd2b67d417cbe4db2b430a7c160c6a1a07

update yep

view details

push time in 24 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha a882a8cd6cfa8d6fa2645250ac2c30ee73248b54

printing

view details

push time in 24 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 52f13da3a3e370abc1b383d2459b9e67efb1009d

yote

view details

TJ Horner

commit sha 66584ee2042e8fede3de2f95873a77f8c4be4e44

yate

view details

push time in 24 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha aa47616ad82b8599e05d27f3c5da574fdbef3400

yate

view details

push time in 24 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 729874a4c4d49dcefb4104de2e64adb19ef28cce

egg sample:

view details

TJ Horner

commit sha ba841cd8a0e6d1b3e950b982a4933b63d2ab0540

badge

view details

TJ Horner

commit sha 3868571ac98c5668465a61c6b971927250437296

aaa

view details

TJ Horner

commit sha 4f21df146fd5ea9cbeedce08e55673a6a29d2b4a

yeet

view details

TJ Horner

commit sha 0a119dee6360ce10159588765056a90914637d35

yote

view details

push time in 24 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha de773fc30aef8979e39599b96f9f239d5a453e57

yote

view details

push time in 24 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 0189d772e719b028748dc31854bc1aac8ffba16e

yeet

view details

push time in 25 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 1d9767c47353678332fddb07ff0cb9f7decd967e

aaa

view details

push time in 25 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha e9273d785369f7747e9cd159fe1475bf6677f060

badge

view details

push time in 25 days

push eventtjhorner/makerbot-rpc

TJ Horner

commit sha 3921d3b43d3dd73b47c9cc3e5ded91e3d15f7e98

egg sample:

view details

push time in 25 days

create barnchtjhorner/makerbot-rpc

branch : master

created branch time in 25 days

issue commenttjhorner/MakerbotWebUI

TypeError: Cannot read property 'answer_code' of undefined

Very weird. I will look into this more tomorrow and make some tools to aid in debugging this.

peter-russell

comment created time in a month

issue commenttjhorner/MakerbotWebUI

TypeError: Cannot read property 'answer_code' of undefined

You shouldn't need to change the config, no. Since it just stalls after the "Connected to printer" line, I'm thinking something is going wrong with authentication. I don't have a printer on-hand right now, but there should be something in the printer's settings about Thingiverse cloud services or something. Try clearing all access from there.

After that, try booting up the server again. Your printer's LED ring should start flashing yellow and prompt you to press the knob to authenticate your Thingiverse account.

I had to do this earlier for some reason. Hope it isn't a recurring issue.

peter-russell

comment created time in a month

created repositorytjhorner/makerbot-rpc

created time in a month

issue openedtjhorner/MakerbotWebUI

Rewrite this thing

This is a very old thing written in 2017 and has lots of outdated dependencies with tons of potential security vulnerabilities.

Right now, it's a single monolith Node.js web app with the printer connection and front-end tightly coupled.

Let's rewrite it. When I decide to, it will probably work like this:

  • makerbotd: a daemon written in Go that handles all the background work (connecting to printers, queuing prints, etc.) and provides a general-purpose API (à la dockerd)
  • the frontend: a small application written in Go that runs a small HTTP server to handle authentication and connect to the daemon
  • mbot: a CLI for connecting to and configuring the daemon (authentication, adding printers, queuing new prints, etc.)

This segmented approach will allow people to choose what type of setup they want: a simple daemon+cli combo for home printing setups, a full-fledged web UI, or a custom client for makerbotd.

created time in a month

started996icu/996.ICU

started time in a month

issue commenttjhorner/MakerbotWebUI

TypeError: Cannot read property 'answer_code' of undefined

Are you able to visit your printer's web server? You should see a directory listing:

image

Also, are your logs spammed with [printer_name] [status]? (This is something I put in for debugging but forgot to remove, apparently lol)

image

peter-russell

comment created time in a month

GollumEvent
GollumEvent

issue closedtjhorner/MakerbotWebUI

Cannot create .makerbot files from MakerBot Print v4

MakerBot Print v4 no longer has the ability to export to .makerbot files.

Can .print files be used?

closed time in a month

peter-russell

issue commenttjhorner/MakerbotWebUI

Cannot create .makerbot files from MakerBot Print v4

Closing this since it seems to be solved

peter-russell

comment created time in a month

issue commenttjhorner/MakerbotWebUI

Cannot create .makerbot files from MakerBot Print v4

I just updated to the latest version of MakerBot Print, and I am still able to export to .makerbot files.

Here's how:

  • Select "Add a Printer" from the printer selector image
  • "Add an unconnected printer"
  • Select your printer type
  • Once added, select your new "Export Only" printer type and you will be able to export files to .makerbot
peter-russell

comment created time in a month

issue commenttjhorner/MakerbotWebUI

TypeError: Cannot read property 'answer_code' of undefined

Ok, I pushed the fix. Can you run npm install makerbot-rpc@latest and see if your issue is fixed?

peter-russell

comment created time in a month

issue commenttjhorner/MakerbotWebUI

TypeError: Cannot read property 'answer_code' of undefined

Ok, so it seems there's an issue with my makerbot-rpc library. I have no clue how it worked before, but it's entirely broken right now.

It's a simple one-line fix, and it seems to work fine again!

image

peter-russell

comment created time in a month

issue commenttjhorner/MakerbotWebUI

TypeError: Cannot read property 'answer_code' of undefined

Thanks, I'll look into this next week when I actually have access to some printers

peter-russell

comment created time in a month

issue commenttjhorner/MakerbotWebUI

Cannot create .makerbot files from MakerBot Print v4

.print files contain the raw 3D objects and other metadata, while .makerbot files contained the final sliced model. So no, .print files cannot be used.

Is there really no way to create .makerbot files from MakerBot Print anymore?

peter-russell

comment created time in a month

GollumEvent
GollumEvent
GollumEvent
GollumEvent
GollumEvent

push eventtjhorner/tjhorner.github.io

TJ Horner

commit sha 829e897fc7031cf64e6afc2c054a6c1721256a72

united state

view details

push time in a month

push eventtjhorner/tjhorner.github.io

TJ Horner

commit sha 23bc52636194fc3061f7bb843b156418fb2edc68

sorry Mr. St John

view details

push time in a month

push eventtjhorner/tjhorner.github.io

TJ Horner

commit sha ed92283f9e5e04e7dfeae04d672d50d4c04708ea

go is not docker

view details

push time in a month

more