Skip to content

Instantly share code, notes, and snippets.

@fellwell5
fellwell5 / littleprinter_service.py
Created March 8, 2021 18:36
python-paperang extension files
#!/usr/bin/env python3
import time
import hardware
import image_data
import tempfile
import os, sys
import subprocess
from watchgod import watch
import config
from pathlib import Path
#Install for tinyprinter on Raspberry Pi 4 (8 GB)
#2021-03-02
#Set configuration with sudo raspi-configuration (locale, enable ssh, ..)
#Disable IPv6 https://cwesystems.com/?p=231
#Import SSH Keys
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install git python3-pip build-essential libbluetooth-dev libhidapi-dev libatlas-base-dev python3-skimage llvm-dev cython3 python3-skimage llvm python3-numpy python3-numba
pip3 install cython pybluez pilkit watchgod colorama
#I installed it to my user directory /home/pi which can be accessed with ~
cd ~
### Keybase proof
I hereby claim:
* I am fellwell5 on github.
* I am fellwell5 (https://keybase.io/fellwell5) on keybase.
* I have a public key ASC8mj0XMWfD1QM-BH7K6kDplzBSjBaryib_hKR9cHbt2Ao
To claim this, I am signing this object:
@fellwell5
fellwell5 / aprslocsend.php
Created August 2, 2018 23:06 — forked from nonoo/aprslocsend.php
PHP script for sending location APRS message to APRS-IS.
#!/usr/bin/php5
<?php
$aprs_callsign = '';
$aprs_passcode = 0;
$aprs_altinfeet = 2080;
// W is the WX icon. See http://wa8lmf.net/aprs/APRS_symbols.htm
// Use GPS coordinate format, see http://www.csgnetwork.com/gpscoordconv.html
$aprs_coord = '4740.55N/01829.60EW';
$aprs_comment = 'Gerecse WX - www.ha5kdr.hu';

Keybase proof

I hereby claim:

  • I am fellwell5 on github.
  • I am fellwell5 (https://keybase.io/fellwell5) on keybase.
  • I have a public key whose fingerprint is 8583 F5D1 5E65 FBFF 6F9B CCC7 9C0A 50B9 08C5 FBF2

To claim this, I am signing this object: