A new plugin is now available, which uses the WxSim software logs to display forecasted conditions using graphs, tables and icons.
– dynamic graphs of various parameters forecasted by WxSim
– textual forecast for upcoming days
– detailed forecast for user-specified hours, including icons and possibility to display all the parameters
– download and unzip the files
– open forecast.php and set up the script in the specified section
– upload the files to your server and add link to the menu
– given the log files are relatively difficult to work with as they are inconsistent and also the fact I do not have wxSim myself, it is possible that your file might not be loaded 100% correctly, in such case feel free to contact me and I will see what I can do to make it work for you
A few notes about the settings:
In the settings, you have to set up several parameters:
- $fieldSeparator = “,”;
This is the symbol used to separate fields in your latest.csv
- $fix23h = false;
There is a bug in WxSim, which in some cases causes 11PM to show as the next day already. Check your latest.csv output to see if this applies to you.
- $recordsInterval = 0.5;
Interval between forecasts in latest.csv in hours. Most likely 0.5 or 1
- $rainLimits = array(2,4,6,8,10);
In the detailed forecast there is an icon for rain. This droplet icon is blank if rain=0. Then, there are several different icons which basically show the droplet filling in. Here you can set the intervals that you want to use for this. So for example in the above case, the least filled droplet would be between 0 and 2, next would be between 2 and 4 etc. In total you must enter 5 numbers. If the precipitation is above the last number, the droplet will be completely filled in. The point of this setting is that the amount of rainfall differs between locations and if this was set as fixed values, in some places it could be constantly filled in whereas at other places, it rains much less and so even smaller values would already be unusual.
- $pathLatest = “latest.csv”;
Path to your latest.csv (relative or absolute)
- $pathPlain = “plaintext.txt”;
Path to your plaintext.txt (relative or absolute)
- $defaultForecastHours = array(3,9,15,21);
The user can choose which hours of the day to show in the detailed forecast. However, here you can specify the default values which are shown when the page is loaded for the first time.