Discussie forum over overige software. Voor vragen, specificaties, ervaringen etc..
#74532
Dit kunt u regelen via de instellingen.

U moet een paar regels in . . . hge.nl/saratoga/Settings.php aanpassen naar wat u welke eenheden u standaard wilt gebruiken.

Meer info
https://saratoga-weather.org/wxtemplate ... bridge.php
3. Set station units-of-measure in Settings.php
Edit the Settings.php file for your website and locate the section that has:

###########################################################################
# These values should reflect the units-of-measure your weather station
# uses to report the weather data when processing weather tags.
# Note: if you change them here, make sure to make the corresponding
# changes in the ajax[WXname]wx.js AJAX script also.
###########################################################################

$SITE['WDdateMDY'] = true; // for date format of month/day/year. =false for day/month/year

$SITE['uomTemp'] = '°F'; // ='°C', ='°F'
$SITE['uomBaro'] = ' inHg'; // =' hPa', =' mb', =' inHg'
$SITE['uomWind'] = ' mph'; // =' km/h', =' kts', =' m/s', =' mph'
$SITE['uomRain'] = ' in'; // =' mm', =' in'

Adjust each setting to your prefered units using the allowed values shown in the comment on each line. Then save and upload the modified Settings.php to your website. You do not need to change other settings in this file at this time -- the above values are used in the next steps of this configuration.
Succes,
Wim
#74534
Koen huisbrink schreef: 21 jan 2023, 11:53 Dat had ik al aangepast maar alleen de tekst verander van F naar C d=en de waardes blijven in Farenheit staan
toen ik vanochtend keer gebruikte u Meteobridge met weerwaardes in Celcius.

Maar nu gebruikt u weather-display en uw weather-display laadt de waardes in Fahrenheit op
Bestand testtags.php
$time = "6:45 PM"; // current time
$date = "06/27/08"; // current date
. . .
$tempnodp = '75'; // temperature, no decimal place

De settings moeten overeen komen met de weerstation-waardes in het opgeladen bestand.

Succes,
Wim
#74536
Wat staat er precies bij u ingesteld op de Meteobridge, ik vermoed dat de Meteobridge een oude versie van een template bestand gebruikt.
Dit staat in het door MB opgeladen bestand MBtags.php:
uomTemp|°F|// UOM temperature:|:
uomWind| mph|// UOM wind:|:
uomBaro| inHg|// UOM barometer:|:
uomRain| in|// UOM rain:|:
1. maak een screenshot van de Events setup zoals in bijgevoegd screenshot en plaats in uw volgende post
2. heeft u al op de knop "Reload Template " gedrukt?

Succes,
Wim

P.S. Als u er niet uitkomt:
Gelukkig heeft u een Meteobridge waardoor support op afstand mogelijk is.
Maar dat is voor als we er zo niet uitkomen.
Bijlagen
MB4-services-events1.png
MB4-services-events1.png (54.72 KiB) 4602 keer bekeken
#74538
Koen huisbrink schreef: 21 jan 2023, 17:37 Hierbij een screenshot van events
In de huidige setup wordt het testbestand van Saratoga zelf gebruikt.
U moet de link aanpassen naar uw eigen omgeving.

1. Veranderde huidige link naar Saratoga in het vak "Template:" in
Code: Selecteer alles
https://www.khge.nl/saratoga/gen-MBtags.php
2. Druk op de knop "Template opnieuw laden"
3. Druk onderaan alle setup op de "Save" of "Bewaar" knop

Succes,
Wim
Bijlagen
Schermafbeelding 2023-01-21 om 17.28.56.png
Schermafbeelding 2023-01-21 om 17.28.56.png (144.25 KiB) 4594 keer bekeken