Meteohub version
Meteoplug version
The Meteohub version is updated every 15 minutes. The Meteoplug one is generated on demand from the latest data.
The template for the Meteoplug version can be found at http://www.isleofskyeweather.org.uk/24e ... lback.html
Template conversion was straight forward and logical. It was essentially a matter of taking a copy of the Meteohub template then doing bunch of "search and replace" operations.
I was making things up as I went along, and second time rould I could perhaps do it more efficiently, but in case it's useful to others here is a summary of the changes I needed to make:
First Meteohub template variables for the time and date when the template was last populated:
Now for the rest:[actual_date0_time_local] => [actual_day1_misc_uploadlocaltime_11_8]
[actual_date0_puredate_local] => [actual_day1_misc_uploadlocaltime_8_2]/[actual_day1_misc_uploadlocaltime_5_2]/[actual_day1_misc_uploadlocaltime_0_4] (for UK format date)
[actual_date0_time_utc] => [actual_day1_misc_uploadutctime_11_8]
[actual_date0_puredate_utc] => [actual_day1_misc_uploadutctime_8_2]/[actual_day1_misc_uploadutctime_5_2]/[actual_day1_misc_uploadutctime_0_4] (for UK format date)
That's it.[actual_ => [actual_min5_
[day1_ => [actual_day1_
[last60m_ => [actual_hour1_
[month1_ => [actual_month1_
_c] => _1] (or _0] if you want zero decimal places)
If you use Fahrenheit you'll need to apply a factor and an offset, e.g. _f] => _1_1.8_32]
_time => time
N.B. Meteohub template time was YYYYMMDDhhmmss, but Meteoplug template time is YYYY-MM-DD hh:mm:ss, so Meteohub template code for 'splitting up' time changes as follows:
#AD => _0_4
#EF => 5_2
#GH => _8_2
#IJ => _11_2
#KL => _14_2
hum_rel] => hum_rel_0] (for zero decimal places)
_hpa] => _1] (or _0] if you want 0 decimal places)
_sealevel => _seapress
_mph] -> _1_2.37] (i.e. 1 decimal, then a conversion factor for m/s => mph)
_speed => _wind
_gustspeed => _gust
_dir_en] => _maindirtext]
OR if you want degrees,
_dir_en] => _maindir_0_22.5]°
_maxspeeddir_en] => _highdirtext]
OR if you want degrees
_maxspeeddir_en] => _highdir_0_22.5]° (but that is degrees rather than "English")
_rate_mm] => _rate_1]
total_mm] => total_1]
_ratemax_mm] => _ratemax_1]
With a different set of variables a few other changes might be needed too, but the general idea would be the same.