Hi
And again have a little prob... I made a little table about recent history tags. Everything else works o.k. but winddir appears as number (they are wdir in degrees, I suppose.) in table, except winddir now. Is it possible to get those numbers in same format as that wdir now? I have tried to change them in couple ways, but always gives a number. If it is not possible have letters as N or NW etc. I have to accept those degrees.....
With all best regards... again from windy Finland:
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Recent history
Moderator: saratogaWX
- saratogaWX
- Posts: 1238
- Joined: Wed 06 May 2009 5:02 am
- Weather Station: Davis Vantage Pro Plus
- Operating System: Windows 10 Professional
- Location: Saratoga, CA, USA
- Contact:
Re: Recent history
There is a function in the CU-defs.php (automatically included by CUtags.php) that you can use on your page:
For example:
CU_deg2dir($WX['RecentWindAvgDir m=90']);
will return the cardinal direction text based on the degrees. You can then feed that through langtrans/langtransstr to get the cardinal direction in the currently selected language.
langtrans(CU_deg2dir($WX['RecentWindAvgDir m=90']));
Hope this helps...
Best regards,
Ken
For example:
CU_deg2dir($WX['RecentWindAvgDir m=90']);
will return the cardinal direction text based on the degrees. You can then feed that through langtrans/langtransstr to get the cardinal direction in the currently selected language.
langtrans(CU_deg2dir($WX['RecentWindAvgDir m=90']));
Hope this helps...
Best regards,
Ken
-
kapo
- Posts: 246
- Joined: Thu 03 Jan 2013 1:59 pm
- Weather Station: Davis VP2
- Operating System: Windows 10
- Location: Vihtavuori, Laukaa, Finland
Re: Recent history
Hi again!
And ofcourse many thanks!!!!
It seems that it works just as you instructed, which was to be expected from You!
I`ll buy You a beer, if You ever come to visit Finland!!! And we`ll go to the sauna, if You know, what it is.....
With very thankful Regards:
And ofcourse many thanks!!!!
It seems that it works just as you instructed, which was to be expected from You!
I`ll buy You a beer, if You ever come to visit Finland!!! And we`ll go to the sauna, if You know, what it is.....
With very thankful Regards:
-
kapo
- Posts: 246
- Joined: Thu 03 Jan 2013 1:59 pm
- Weather Station: Davis VP2
- Operating System: Windows 10
- Location: Vihtavuori, Laukaa, Finland
Re: Recent history
This is totally offtopic, but now we have Saratoga template working over Cumulus in two generations... My son took my past WH-1080 PWS and now he has that PWS working with Saratoga template. It`s just in the beginning, but it runs somehow thought. Page founds: http://WWW.tikanniemi.net/index.php
With all the best regards grandfather
-kapo-
With all the best regards grandfather
-kapo-