Moderator: igrr
https://github.com/wnasich/nodemcu-collector
It could be expanded as needed. It allow send collected data to influxdb taking into account wifi connections problems or situations where InfluxDB is inaccesible. It keep collected data in memory and when free memory is lower than a predefined level, data is persisted in flash memory , so it is safe for large period of wifi or server outage.