This file contains hidden or 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
# based on https://github.com/amber-sixel/PythonCatPrinter.git | |
# can be used as a raw postscript printer (a4, one page only) on port 9100 | |
# | |
# status : curl --location --request GET 'localhost:5000' | |
# | |
# curl --location --request POST 'localhost:5000' \ | |
# --form 'image=@"/image.jpg"' \ #optional | |
# --form 'text="hello world"' \ #optional | |
# --form 'size="48"' \ #optional |
This file contains hidden or 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
build https://github.com/pvachon/tsl-sdr to get | |
depager and multifm | |
#test.json | |
{ | |
"device" : { | |
"type" : "rtlsdr", | |
"deviceIndex" : 0, | |
"dBGainLNA" : 42 | |
}, |
This file contains hidden or 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
#!/usr/bin/env python | |
# coding=utf-8 | |
import argparse | |
import datetime | |
import sys | |
import time | |
import threading | |
import traceback | |
import socketserver |
NewerOlder