Skip to content

Instantly share code, notes, and snippets.

View archjeb's full-sized avatar

Jeremy Georges archjeb

View GitHub Profile
@kadamski
kadamski / sds011
Last active May 25, 2025 15:37
SDS011 dust sensor reading
#!/usr/bin/python
# coding=utf-8
# "DATASHEET": http://cl.ly/ekot
from __future__ import print_function
import serial, struct, sys, time
DEBUG = 1
CMD_MODE = 2
CMD_QUERY_DATA = 4
CMD_DEVICE_ID = 5
@colemanm
colemanm / convert_bsb.sh
Last active December 18, 2023 05:04
Converting NOAA raster charts to GeoTIFF for TileMill
# First convert BSB to GeoTIFF format using the KAP file
gdal_translate -of GTiff 11392_1.KAP 11392_1.tif
# Reproject to WGS84 (geodetic) to use in TileMill
gdalwarp -t_srs EPSG:4326 11392_1.tif 11392_1_wgs.tif
# Then simply add your new `11392_1_wgs.tif` file to TileMill as a new raster layer.