Use gen-MBtags.php variable local in Meteobridge?

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
cphMichael
Junior Boarder
Junior Boarder
Posts: 36
Joined: Wed Oct 19, 2016 2:26 pm

Use gen-MBtags.php variable local in Meteobridge?

Post by cphMichael »

I would like to ask if you could consider the possibility to use variables created in the Saratoga "gen-MBtags.php" locally in the Meteobridge?

I ask because I would like to display how many tt:mm the day has increased/decreased in the Meteobridge Twitter upload.

For that I use those long formel:

Decrease:
{*([mbsystem-daylengthmax=mins.0]-[mbsystem-daylength=mins.0])/60*00t}:{*([mbsystem-daylengthmax=mins.0]-[mbsystem-daylength=mins.0])%60*00t}

Increase:
{*([mbsystem-daylength=mins.0]-[mbsystem-daylengthmin=mins.0])/60*00t}:{*([mbsystem-daylength=mins.0]-[mbsystem-daylengthmin=mins.0])%60*00t}

In "gen-MBtags.php" I have created a variable 'mbsystem-decrease' / 'mbsystem-increase' that I can use in my Saratoga homepage templates.

In Meteobridge I upload weather data to Twitter and there I have to use the long formel to display how much the daylength has increased/decreased.

It would be nice to be able to use the 'mbsystem-decrease' / 'mbsystem-increase' in the Meteobridge Twitter upload.
Post Reply