🌡️ Beehive IoT sensors
Architecture
Services
- https://github.com/Gratheon/hardware-beehive-sensors - sensors repo on client side
- https://github.com/gratheon/telemetry-api - server side
Dev setup
-
download Arduino IDE
-
under preferences, set this URL as extra sources https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
-
ESP32 chips come in different flavours. If you got same component as described in the bill of materials - ESP32, then connect it over USB to your machine
-
Choose
ESP32-WROOM-DA Module
from device list -
Make sure to change Arduino IDE upload speed to 115200 baud under Tools so that your device can receive data when you upload it
- Install DallasTemperature@3.9.0 library in Arduino IDE (DallasTemperature@3.9.0
- Install Adafruit HX711 library in Arduino IDE
- Upload code to the device using a button
->
. You should see something like: - Click on the reset button (
FN
) on the chip - Connect to the ESP32 WIFI access point
gratheon
, use passwordgratheon
- Open browser and navigate to wifi access point default gateway - http://192.168.4.1
- Enter your WIFI credentials
- Set target URL
https://telemetry.gratheon.com/metric/HIVE_ID?api_token=API_TOKEN
- replace
HIVE_ID
with your hive ID. You can take that you can take from URL, exhttps://app.gratheon.com/apiaries/7/hives/54
; here ID is54
- replace
API_TOKEN
with generate token from account settings at https://app.gratheon.com/account
- replace
- Click
Save
button. Your ESP32 will restart and connect to your WIFI network and start sending data to the telemetry API service