• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Publishing weather data to my domain and on my website

Q&A Forum › Category: Raspberry Pi › Publishing weather data to my domain and on my website
0 Vote Up Vote Down
Jairo asked 3 years ago

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

2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

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

0 Vote Up Vote Down
William Lucid answered 3 years ago

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

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.