ESP32 to trigger a script?

I am considering to cobble together a connected hygrometer and thermometer to log indoor fluctuations. Found online instructions and script for ESP32 arduino compatible board and appropriate sensor to do so.

I could run netcat on my MT1300 to intercept board calls, via WiFi, to a certain port and run a script to dump values. Anything else on the router’s system as standard alternative to netcat? Thanks for sharing.

A router isn't a good device to gather data from devices. Get a raspberry pi for that. Cheapest way is a Raspberry Pi Zero 2 for appr. 20 bucks.

Data is not of long term value. Also Beryl is providing connectivity and storage space already so I don’t see why to buy another device for that.

Expected MQTT as way to collect and distribute sensor data. MQTT client is in the GL.inet packages. But you will need some MQTT broker as well.
I have MQTT brokers in Docker container on NAS and PC. But have it also native on Mikrotik routers. The open source "Home Assistant" running on Raspberry Pi and on Odroid N2+ are my permanent Mosquitto MQTT instances, with many integrations (like ESPHome, Node RED, ...)
All software is open source/freeware.

cut parse JSON and >> append values to CSV file.

Since I control the format will be sending the couple of numbers only. Then nc -lk localhost 8888 >> blimp.csv will do.

1 Like

Thankns for the solution.