Skip to content

Instantly share code, notes, and snippets.

View justind000's full-sized avatar

Justin Decker justind000

View GitHub Profile
@justind000
justind000 / main.cpp
Last active October 1, 2019 09:05
ORP C++
#include <uFire_ORP.h>
uFire_ORP orp;
orp.measureORP()
@justind000
justind000 / main.py
Last active October 1, 2019 09:05
ORP Python
from uFire_ORP import uFire_ORP
orp = uFire_ORP()
orp.measureORP()
@justind000
justind000 / main.rs
Created September 4, 2019 09:50
ORP Rust
extern crate ufire_ise;
use ufire_ise::*;
let mut orp = ufire_ise::IseProbe::new("/dev/i2c-3", 0x3f).unwrap();
orp.measure_mv();
@justind000
justind000 / main.cpp
Last active September 14, 2019 14:16
uFire SHT20
#include "uFire_SHT20.h"
uFire_SHT20 sht20;
float temp = sht20.temperature();
@justind000
justind000 / main.cpp
Created September 30, 2019 09:36
PAR use
#include "uFire_PAR.h"
uFire_PAR par;
float ppfd = par.measurePAR();
@justind000
justind000 / uFire-net.cpp
Last active April 20, 2020 22:43
uFire.net
#include <WiFiMulti.h>
#include <InfluxDbClient.h> // click to install: http://librarymanager/All#ESP8266-Influxdb
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#define WIFI_SSID "" // WiFi name
#define WIFI_PASSWORD "" // WiFi password
#define INFLUXDB_URL "" // The address of your instance, like 'https://awesome.ufire.net:9999'
#define INFLUXDB_ORG "" // Organization name. It can't have any spaces in it for this library.
#define INFLUXDB_BUCKET "" // Bucket name, // InfluxDB UI -> Load Data -> Buckets -> Make or select a bucket
#define DEVICE "" // The name of this device
@justind000
justind000 / helium-influx-bridge.py
Last active March 17, 2023 18:07
Helium - InfluxDB Bridge
import ssl, sys, json, base64
import paho.mqtt.client, msgpack, influxdb_client
from influxdb_client import InfluxDBClient, Point
from influxdb_client.client.write_api import SYNCHRONOUS
ufire_server = ""
mqtt_port = 8883
mqtt_username = ""
mqtt_password = ""
influx_bucket = ""
/* Prior to compiling, install the following libraries:
Isolated EC Probe Interface v1.2.1
Isolated ISE Probe Interface v1.2.0
ArduinoJson v6.14.1
ESP32_LoRaWAN https://github.com/HelTecAutomation/ESP32_LoRaWAN
click links below in the #include section
Follow directions to install the development repository here:
https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series
@justind000
justind000 / Helium-wq-display.ino
Last active May 4, 2020 14:38
Helium - uFire Project with E-paper display
/* Prior to compiling, install the following libraries:
Isolated EC Probe Interface v1.2.1
Isolated ISE Probe Interface v1.2.0
ArduinoJson v6.14.1
ESP32_LoRaWAN https://github.com/HelTecAutomation/ESP32_LoRaWAN
click links below in the #include section
Follow directions to install the development repository here:
https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series
@justind000
justind000 / MsgPack_Helium.js
Created September 14, 2020 14:20
MsgPack decode for Helium Console - lacks float64
Copyright © 2020, Justin Decker
Copyright © 2019, Yves Goergen, https://unclassified.software/source/msgpack-js
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:
The above copyright notice and this permission notice shall be included in all copies or