Skip to content

Instantly share code, notes, and snippets.

@dwblair
dwblair / chirp-trial-encoder-11a.ino
Created December 17, 2019 14:06
LoRa range test w/ chirpstack gateway, dec 16th 2019
/*******************************************************************************
The Things Network - Sensor Data Example
Example of sending a valid LoRaWAN packet with DHT22 temperature and
humidity data to The Things Networ using a Feather M0 LoRa.
Learn Guide: https://learn.adafruit.com/the-things-network-for-feather
Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
Copyright (c) 2018 Terry Moore, MCCI
/*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restriction,
* including, but not limited to, copying, modification and redistribution.
* NO WARRANTY OF ANY KIND IS PROVIDED.
*
/*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restriction,
* including, but not limited to, copying, modification and redistribution.
* NO WARRANTY OF ANY KIND IS PROVIDED.
*
@dwblair
dwblair / open_not_answer.md
Created September 30, 2019 16:33
Why 'Open Agriculture' is Not the Answer

The Misleading Appeal of ‘Open Source’

Intellectual property in the realm of agricultural technology is rightly considered problematic for farmers and for agriculture broadly.

Restrictions for example, that are placed on a farmer's ability to repair the tractor that they rely on daily, or to access data from their greenhouse temperature monitor, can interfere with that farmer’s livelihood. Although the pace of technological development in agriculture has been rapid, recent decades have seen more and more of the tools that have become vital to the farmer’s operations become “closed” -- with access to the underlying technology now requiring expensive service contracts, or special access codes. The useful information that many farmers now collect concerning their farming operation -- environmental data, as well as crop yields, and farm logistics -- is now “rented” to them via proprietary data platforms, which might arbitrarily change the terms of service, or go out of business, leaving the farmer with “b

/*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restriction,
* including, but not limited to, copying, modification and redistribution.
* NO WARRANTY OF ANY KIND IS PROVIDED.
*
@dwblair
dwblair / test
Created September 4, 2019 23:03
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDb49KmELhXoCIUhhu2atB1iqPOy2EWYK7mL2eYR3AmDg+CMC8dkAAm9RCrh7OfgcsIr9Fw9Y6UNhIZq+LNTMTBUO+bOY6PlEVVg2y/fz+hOcxmIL/+5nZCFEUuKnAhvFT3XlXfV90GvMLV4viTVDy15kGKfzjG5Mg2m7+QLTTbKm+aQazhrAMNPVkREJam0a6VWRWGNDcEJ2rSGlOGujLRd9D86iNEMY/fL0hyAj6H8wwWF4a50L4CbJy2U4dxxWWEmvpGkdmRrtorM96wBu3MOsFkMDS/tLqH2eVL5y/uzBvh+IVbBXDUmwH9cAdpuBU53MwQtWwIf9mRu86YsKSSqj4AAPNJNI8+7hEPOZScFNhnRgRCdflKm1jo7ljODRqytkbYp/Sd3u3U1sREUPDPKGCAcsgrx4ulXTI6k5hXTmXYk2qyitj7Wn9n3VZIBUyLPyJsbGBhLhSrLEe3IXncqqXBEJj+bp7NOo5S63+e+GlTLM57f268c4bAJxKhY72bPvENkG6s13gLbvNImjnRl4p7ru7MCWrDskZ1yGKCGPxNKdY9LJFElLtrJu9lbYK718hJlQv/GGtHUpA1a1+PPdQOF9azlZ4irHc47qegdlDH7QMxOy3uHF0r8u+T9cKLtIMr00f6JsW5aYezXpPdRb5lU1vi+bqdc66obBN7YQ== donblair@gmail.com
@dwblair
dwblair / rak-itsy-m4.ino
Created August 30, 2019 17:36
itsy bitsy m4 with lora breakout -- connecting to loraserver
/*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restriction,
* including, but not limited to, copying, modification and redistribution.
* NO WARRANTY OF ANY KIND IS PROVIDED.
*
/*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restriction,
* including, but not limited to, copying, modification and redistribution.
* NO WARRANTY OF ANY KIND IS PROVIDED.
*
/*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restriction,
* including, but not limited to, copying, modification and redistribution.
* NO WARRANTY OF ANY KIND IS PROVIDED.
*
@dwblair
dwblair / simple_farmos_post.py
Last active August 19, 2019 21:24
Simple code for posting dummy values to FarmOS using an ESP32 with Micropython
import ujson as json
import urequests as requests
import time
import machine
from machine import Pin
from machine import SPI
# set up FARMOS params
public_key='[PUBLIC KEY]'