Author Topic: Display weather & Soil Temp on Wordpress Page ?  (Read 1435 times)

0 Members and 1 Guest are viewing this topic.

Offline Snowda

  • Senior Member
  • **
  • Posts: 59
Display weather & Soil Temp on Wordpress Page ?
« on: March 20, 2024, 11:51:30 AM »
I'd like to add something to a wordpress blog (https://localmile.org) to display the current weather including temps from a soil station (that's actually providing lake water temps).  Is there a relatively easy way to do that from WiFiLogger v2 ?

Thanks,
 

Offline WiFiLogger

  • Forecaster
  • *****
  • Posts: 761
Re: Display weather & Soil Temp on Wordpress Page ?
« Reply #1 on: March 28, 2024, 10:00:40 AM »
I'd like to add something to a wordpress blog (https://localmile.org) to display the current weather including temps from a soil station (that's actually providing lake water temps).  Is there a relatively easy way to do that from WiFiLogger v2 ?

Thanks,
 

In my opinion, the best solution is to place a JSON file with weather data on the server.
Theoretically, this can be done via FTP, but I try not to support this solution. It doesn't work too well on IoT devices like the WiFiLogger.
Instead, I will try PHP scripts.
I have such a script started and will publish it soon.

You place the PHP script on your server and specify its address in the WiFiLogger.
WiFiLogger sends the JSON file to the PHP script as an HTTP request.
The PHP script saves this file on the server, and in this way, these data can appear on your website.
WiFiLogger with its PHP script is responsible for delivering fresh data every 3-10 sec. The JSON file is replaced with a new one at this interval.

You need to place some graphics or text on your site that will visualize this data.
Maybe WordPress has some mechanisms for displaying data from a JSON file?

 

anything