Hi folks, I have an ESP32 sending BME280 data to a Raspberry Pi that’s using MQTT as a broker and sending data to Node-Red. From Node-red I can create an Influxdb database. All are accessible from my local host. From the InfluxDB, I’m also able to create some graphs in Grafana at ‘localhost:3000’. I am stuck here since what I eventually want to achieve is publishing the graphs to my website outside my local network. In this case on my domain http://www.skynstars.com Any help here is much appreciated. Thanks. Jairo
Hi.
We have some tutorials that might help:
- https://randomnerdtutorials.com/cloud-mqtt-mosquitto-broker-access-anywhere-digital-ocean/
- https://randomnerdtutorials.com/access-node-red-dashboard-anywhere-digital-ocean/
- https://randomnerdtutorials.com/cloud-weather-station-esp32-esp8266/
- https://randomnerdtutorials.com/control-esp32-esp8266-gpios-from-anywhere/
Regards,
Sara
Hi Jario,
Project code to post data to domain server.
Posting to domain server was inspired by this article by Stepen Borsey: Send ESP8266 Data to Your Webpage – no AT Commands!
There are two parts to the function; webInterface in my code. Webinterface function sends data to the domain server; then data is received by collectdata2.php, that is placed in the websites, public_html directory on the domain server.
collectdata2.php echoes back the data and sends”200″ indicating data was received successfully. Next collectdata2.php creates a new web page, every time data is received.
This is the page created at 15 minute intervals: Observations II
webInterface function
collectdata2.php
Hope you find this helpful with your project.
Regards,
William