Author Topic: Soil not working (Leuven template script)  (Read 280 times)

0 Members and 1 Guest are viewing this topic.

Offline Bashy

  • brecklandweather.com/meteo
  • Forecaster
  • *****
  • Posts: 1465
  • brecklandweather.com/index.php
    • Breckland Weather
Soil not working (Leuven template script)
« on: November 12, 2021, 09:16:54 AM »
Hi folks

My soil isn't working s seen here and here, probably hasn't been for a long time but I am slowly trying to get things working but this one is proving to be annoying; any help would be appreciated, please?

Thanks.
Kind regards
Bashy

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Soil not working (Leuven template script)
« Reply #1 on: November 12, 2021, 10:44:14 AM »
Hi folks

My soil isn't working s seen here and here, probably hasn't been for a long time but I am slowly trying to get things working but this one is proving to be annoying; any help would be appreciated, please?

Thanks.

Hi,

The "official" topic for questions about the Leuven-Template => https://www.wxforum.net/index.php?topic=36504.0

You are using a very very old version of the Leuven-Template so yes there can be problems and I personally do not have that 2014 version available anymore.

Only you can access your template settings, so these are all "guesses" of what can be the cause of not showing your soil sensors:
1. you are using WD as your data source
2. this could be the file as uploaded by WD => https://www.brecklandweather.com/testtags2.php?sce=view
3. There are no soil-values in that file and the processing script will not have anything to show.
=> https://www.brecklandweather.com/ws_testtags.php?debug=yes&sce=view
==> it process the soil values from line 405 onwards, if you set the soil-setting to true
Code: [Select]
if (!isset ($SITE['soilUsed']) || $SITE['soilUsed'] == false) {ob_clean(); return; }
Also, only you can check the file WD has to process to generate the testtags2.php file it uploads.
I assume the soil fields are not in that file either.

Succes, Wim

Offline Bashy

  • brecklandweather.com/meteo
  • Forecaster
  • *****
  • Posts: 1465
  • brecklandweather.com/index.php
    • Breckland Weather
Re: Soil not working (Leuven template script)
« Reply #2 on: November 12, 2021, 11:22:35 AM »
Hi Wim, thanks for the reply and pointers, yes, you're correct, they were not in the testtags2, but are now.
I have also changed that setting to true and it is now working, thank you, i would never have figured that out, i thought it was a script issue alone, thanks again :)
Kind regards
Bashy