I does not snow in Phoenix except on very rare occasions. But the sun shines all day most of the time. Both of these files have this error which i have fixed by commenting out the request for that file. // Every time I update the files with the new version it comes back
solar_60min.php solar_1hr.php
JpGraph Error 25049
Font file “/usr/share/fonts/truetype/arialbd.ttf” is
not readable or does not exist
BTW your directions in the other post on fixing the arialbd.ttf not found by coping the files and changing the name in the config file resulted in all the graphics saying:
JpGraph Error 25095
Unknown font family specification
I changed it back, commented the lines out in solar_60min.php solar_1hr.php requesting those fonts and that does work. I got that idea by looking at the files that did work and they all have the arial font // commented out
[24-Nov-2019 07:06:36 UTC] PHP Notice: date_default_timezone_set(): Timezone ID ‘USA/Phoenix’ is invalid in /home4/scottsx9/public_html/weather/wxgraphs/graphsconf.php on line 16
I have also tried: UTC-7, and America/Phoenix’ None of which work for the US Arizona time zone which does not follow daylight savings. also America/Denver did not work. What does work for my time zone?
All the images are now working under PHP 7,3 and jpgraph-4.2.10
with the changes I made to the solar files.
What I would like to see is a wind rose graphic, Virtual Weather Station had one I liked that direction with the length being the duration. I have seen nothing like that for WD and VWS does not run in windows 10 and Ambient has quit supporting VWS… So I had to change to WD. I will have to see if I have a file on the old computer to post it.
I am in the process of revising the graphs so will look into all your comments.
As for a Wind Rose that is only possible with the Pro version of JPGraph which is commercial and costs $103.74 (or $828.24 for multiple servers 8O ) per server so sadly that is not going to happen.
When I deleted .6 and .9 from my server I saw a windrose.php in the files that were deleted which gave me the idea. I copied my webfile on to my laptop last night (wife complains when I use the tv as the monitor for the weather station/media server computer, its in my living room…) Very last file in the jgraphs scr .10 directory is jpgraph_windrose.php, I just opened it, pretty large file, 1566 lines. Looks like there are 4 choices:
// Determine how many compass directions to show
//------------------------------------------------------------------------
define('WINDROSE_TYPE4',1);
define('WINDROSE_TYPE8',2);
define('WINDROSE_TYPE16',3);
define('WINDROSE_TYPEFREE',4);
I have no idea why they are there, it quite clear;y states in the documentation and on their website that a wind rose is only available in the professional version.
I have just taken a look at the code which generates the wind rose and it will only produce one with 4 points on the graph, ie N,E,S,W 8 and 16 points need the professional version. The documentation shows a 16 point rose by using a PNG graphic file.
Could you look at y2grid for those graphs with a y2 axis? I am only using temp+hum_24hr.php and temp+dew+hum_24hr.php, but I noticed that the latter does not show two grids and that in the former the y2grid is much fainter than the ygrid.
I am still working on a new package for these graphs, I had hoped to have them complete by today but that is not going to happen for various reasons so will probably be another 10 days or so before they are ready for release.
I use temp+dew+hum_24hr.php, baro_7days.php, year_rain.php, rain today, yesterday, last 7 days, rain_this_month.php, rain this year. Only thing I would change is the text on top of temp+dew+hum_24hr.php so the words tmp, dew, hum are the color of the line grap of there name and remove the tiny ones on the bottom that cover part of the time scale.
You can alter the margin on the graphs where the legend encroaches on the time scale. E.g., in line 102 of temp+dew+hum_24hr.php change $bm (default 55) to 60 or 65, depending on the font you use. . .
I have been altering where the legends go and their sizes. I am trying to place legends where they are visible and do not encroach on the graphs, at least as delivered. As mentioned there are variables which allow you to change things yourself in the graphsconf file and that will still be the case.
I have uploaded an updated test set of graphs to my website for people to look at and comment on. Please be aware that things might still change as I test further, and yes I know the date is in advance but that is the planned release date if all goes well. Most things can be altered in the config file including whether or not to display the box and coloured surround. Also note that I do not have a working anemometer at present hence blank wind speeds. Also I do not have a Lightning monitor or UV sensor and snow is not yet here in the UK! There will be an updated README file with a list of changes I have made.
Looks good Stuart, can I change the padding and boarder color around the graphs with the config file? Especially like the new rain gauges. Though I have the rain tanks ordered today, yesterday, last 7 days,…
I was looking at the rain gauges and the measurement mm on the right side has moved from the bottom to the side and will make them wider, I think on the top would be better.
Actually the rain gauges are the same width as before 120 wide but a little taller. I decided that its better to follow the accepted graph way and have the units on the axis but if I put the units on the left on these graphs they come out lop sided (the actual rain bar is too far to the right). Yes the other graphs are a little larger than before but its not huge, although with the frame turned on the appear much larger.
One of the reasons for slightly larger graph sizes is to allow more room for manoeuvre in the siting the legends (where used) so as not to overlay the graph itself (at least not significantly).
As before you can play with the default sizes although anything much smaller may give problems because of the siting of the units on the Y axis and the way that has to work in order for the units to not overlap the actual values in some circumstances. I would not recommend making these new versions any smaller that the sizes as currently defined.
I have fixed another issue with the new version. The legends were not working well on my remote server but did work OK locally. Turned out I needed to turn off anti-aliasing which for some reason best known to my hosting company was turned on, this prevents the legend colour block from being able to be increased in size (and a couple of other things) so now with this turned off you can see what I intended the legend to look like and will actually show I took notice of the earlier comment :roll: #-o This will ensure anyone using the new version will see the correct legend.
OK so the new package has been uploaded to my website and can be obtained from there. This is quite a major change for most of the graphs and includes a couple of new ones. There are quite a lot of changes in the config file so you will need to use the new file and update it with your settings as required. The default settings use values commonly used here in the UK (mm for rain and MPH for speed etc). The download is available from https://www.stella-maris.org.uk/code/wxgraphs.zip.
Please update this thread with any questions or issues with the new package.