AirGradient Forum

Can I set the outdoor monitor to send data to a local MariaDB endpoint? and set how often?

I’m looking at buying one of the DIY Outdoor Monitors, I currently have a raspberry pi pico based outdoor weather station (Pimoroni Enviro Weather) that takes a bunch of sensor readings (temperature, humidity, wind speed, wind direction, etc.) every 5 minutes and every 30 minutes it connects to wifi and sends the data as json to a local php endpoint (that saves the data to a local MariaDB) and then the board goes back to sleep.

My question is it possible to do the same thing with your outdoor monitor? take reading every 5 minutes, upload the data every 30 min to a local php endpoint and sleep the rest of the time

Hi @xerox2k4, welcome to our community.

While the communication features of the Open Air might not be identical to your existing weather station, you can definitely send a request to the AirGradient Open Air’s local API to get air quality readings in JSON. You can see more details here: arduino/docs/local-server.md at master · airgradienthq/arduino · GitHub

The wake & sleep mechanism is not available in our current firmware. With the original firmware, the monitor will run all the time.

Following this! I wanted to work on an integration with Weather Underground. Do you plan to share the data publicly?

Could a FireBeetle2 ESP32-E be used instead of the ESP32-C3-Mini ? that would allow very deep sleep (as low as 2mA, I have one running an e-ink screen displaying weather data and the 3.7v 3700mah battery lasts for months connecting to wifi once per hour and updating the screen with the latest weather)… Obviously your ESP32-C3-Mini is integrated into the circuit board, was that a specific design choice or was the ESP32-C3-Mini just what was available? I’m just wondering if a board could be made with a socket for a firebeetle2.

I don’t really need live to the second accurate data, once every 15 minutes is good enough for me to get an idea of air quality if It means I can run it off of a battery or solar.

I tried looking for the Open Source Hardware design files on your website but couldn’t find them. Could you provide the link to me.

@Altair_AirGradient Totally, I’ll contribute the environmental data to anyone that can use it and provides access to others for free (If i provide my data to a company for free I expect them to in turn provide free access to the public)

Hi @xerox2k4,

This is the page with the files for building an AirGradient monitor: Knowledge Base

I’m sorry that you had a hard time finding it. We will improve our search and knowledge base to make it more useful and convenient to find what users are looking for.

Regarding your question about the ESP32, please let me ask our hardware engineer for an accurate answer, and I’ll let you know when I have an update.

UPDATE regarding the ESP32 question: I’ve asked our engineer, and he informed me that the ESP32-E isn’t able to be built into our main board as it has a different footprint, which would require the whole main board redesign.

Thank you!

I configured the sensors to send their data to MQTT. From there there’s a NodeRED server running which subscribes to those messages and stores them in a Mysql database.

1 Like

Oh thanks! You’re right! MQTT is another good way to do this.

For MQTT settings, please take a look at (this applies to both AirGradient ONE and Open Air): Knowledge Base

In case you don’t use the AirGradient Dashboard, you can configure the MQTT with "mqttBrokerUrl": "" by sending a PUT command to the monitor’s local API.