[[scraps]]

Scraps

Bits and pieces I want to be able to grab quickly. This page will change frequently.

Quick Pi ID

Easy way to get a quick visual indicator to ID a Pi you're remoted into:

Blink pwr LED at 1Hz:

echo timer | sudo tee /sys/class/leds/led1/trigger

Set pwr LED back to monitor voltage:

echo input | sudo tee /sys/class/leds/led1/trigger

Build GPSD

scons target_python=python3.7 pps=yes bluez=no tsip=no tripmate=no tnt=no \
superstar2=no skytraq=no sirf=no oncore=no navcom=no mtk3301=no itrax=no \
geostar=no fv18=no fury=no evermore=no earthmate=no ashtech=no aivdm=no

Disable GUI Ubuntu/Debian

sudo systemctl set-default multi-user

Raspberry Pi Heartbeat

dtparam=act_led_trigger=heartbeat

chrony.conf sock sources

Still having issues getting these to work…

refclock SOCK /tmp/chrony.ttyS0.sock refid GPS precision 1e-1 offset 0.9999
refclock SOCK /tmp/chrony.pps0.sock refid PPS precision 1e-7
https://gpsd.gitlab.io/gpsd/gpsd-time-service-howto.html#_feeding_chrony_from_gpsd

chronyc tracking

-m flag combines commands. For example: sources -v, tracking, sourcestats -v

chronyc -m 'sources -v' tracking 'sourcestats -v'

scraps.txt · Last modified: 2021/03/16 13:23 by john
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0