Skip to content

Instantly share code, notes, and snippets.

View kattni's full-sized avatar

Kattni kattni

View GitHub Profile
@kattni
kattni / VPD-build.md
Created April 2, 2023 22:13
Discussion thread for VPD monitoring build.

VPD Monitoring Build

I began looking into VPD calculations and the required hardware today in early preparation for an upcoming Adafruit Learn Guide on monitoring VPD. My initial info for this came from this PR. I felt this deviated enough from the purpose of the PR that I decided to move this discussion here.

Here are my questions so far:

  • From what I can tell, the way to get canopy temperature is via IR temperature sensing. This is basically what Adafruit has for doing that. Do you think it would work if placed properly?
  • The SCD-4x and the SHT45 are both mentioned in this thread. I didn't see a CO2 measurement mentioned anywhere with VPD, so I'm unclear on what that measurement adds to the situation. As well, the SHT45 has a ±1.0% accuracy for relative humidity, whereas the SCD-4x has ±6.0%. How much would that difference affect a VPD calculation?
  • I intend to build a small (2'x2'x2' or smaller)
import tweepy
from keys import API_KEY, API_KEY_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET, BEARER_TOKEN
# Authenticate to Twitter
client = tweepy.Client(BEARER_TOKEN, API_KEY, API_KEY_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
# Send the tweet
client.create_tweet(text=tweet_template_string)
# The MIT License (MIT)
#
# Copyright (c) 2017 Dave Astels for Adafruit Industries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@kattni
kattni / main.py
Created August 1, 2017 22:14
I cleaned all the other code out of it from the touch, neopixels and sounds. It didn't help.
import board
import time
import digitalio
from board import *
slide_switch = digitalio.DigitalInOut(board.SLIDE_SWITCH)
slide_switch.switch_to_input(pull=digitalio.Pull.UP)
while True:
if slide_switch.value:
@kattni
kattni / main.py
Created July 20, 2017 20:51
CircuitPlayground Express sound through capacitive touch
import board
import time
import digitalio
import math
import array
import audioio
import neopixel
import touchio
from board import *

Keybase proof

I hereby claim:

  • I am kattni on github.
  • I am kattni (https://keybase.io/kattni) on keybase.
  • I have a public key ASDRbmTr6T7mtHH6IXXGucCWCx0hT2Q_gKh7IrjveQMorAo

To claim this, I am signing this object: