Author Topic: Possible?  (Read 391 times)

0 Members and 1 Guest are viewing this topic.

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Possible?
« on: June 25, 2018, 10:58:33 AM »
I was curious if it might be possible to read data from a 2nd testtags file? I am hosting a school website in a sub directory of my daculaweather.com website. That station has soil and leaf monitoring sensors and would like to display the soil data on my daculaweather site.

I'm thinking there is no way without some creative script to pull the specific data from the 2nd testtags file, but just thought I'd ask. :-)

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Possible?
« Reply #1 on: June 25, 2018, 01:02:12 PM »
It's going to be a problem while you use the same testtags.txt template since the variable names are all the same, and the last testtags.php include() will overwrite all the prior ones.

One approach is to add a smaller testtags.txt template to the other system, delete all the variables you don't want, and rename the ones you do want (if they interfere with existing variable names) -- then the new-named variables would be available without interference.

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

 

anything