Ok, here is my realtime.log, but is not updatedpinto wrote:for a start: where is your realtime.log ?
did you use this: https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=130
http://www.meteotortosa.cat/liveview/realtime.log
Moderator: daj
Ok, here is my realtime.log, but is not updatedpinto wrote:for a start: where is your realtime.log ?
did you use this: https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=130
Yes... actually, I had not thought of that... The format of the number needs to change depending on the format of that data...firewall wrote:Is there a way to get the baro graph to show four digits instead of two for the baro reading?
Thanks,
Jack
Code: Select all
'%01.0f ' . $SITE['pressunit']Code: Select all
'%01.2f ' . $SITE['pressunit']Only one line in realtime.logmeteotortosa wrote:Ok, here is my realtime.log, but is not updatedpinto wrote:for a start: where is your realtime.log ?
did you use this: https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=130![]()
http://www.meteotortosa.cat/liveview/realtime.log
Code: Select all
2008-12-07 01:39:56 -1.4 80 -4.4 0.0 0.3 45 0.0 0.0 1014.0 NE 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.2 45 -1.4 -0.1 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 0.7 -1.4 -4.5 0 0 0
2008-12-07 01:40:56 -1.5 80 -4.5 0.0 0.3 360 0.0 0.0 1014.0 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.1 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 0.7 -1.5 -4.6 0 0 0
2008-12-07 01:41:56 -1.5 80 -4.5 0.0 0.3 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 0.7 -1.5 -4.6 0 0 0
2008-12-07 01:42:56 -1.5 80 -4.5 0.0 0.7 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 0.7 -1.5 -4.6 0 0 0
2008-12-07 01:43:56 -1.5 80 -4.5 0.0 1.0 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0
2008-12-07 01:44:56 -1.5 80 -4.5 0.0 1.0 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 0.0 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0
2008-12-07 01:45:56 -1.5 80 -4.5 0.0 0.7 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 0.0 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0
2008-12-07 01:46:51 -1.5 80 -4.5 0.0 0.3 360 0.0 0.0 1013.8 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0
2008-12-07 01:47:58 -1.5 80 -4.5 0.0 0.3 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 0.0 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0
2008-12-07 01:48:58 -1.5 80 -4.5 0.0 0.0 338 0.0 0.0 1013.9 NNW 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0
2008-12-07 01:49:58 -1.5 80 -4.5 0.0 0.7 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 0.0 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0
2008-12-07 01:50:58 -1.5 80 -4.5 0.0 1.0 315 0.0 0.0 1013.9 NW 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0
2008-12-07 01:51:58 -1.5 80 -4.5 0.0 1.0 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0
2008-12-07 01:52:58 -1.6 80 -4.6 0.0 0.0 180 0.0 0.0 1013.8 S 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.2 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0
2008-12-07 01:53:58 -1.6 80 -4.6 0.0 0.0 180 0.0 0.0 1013.9 S 0 m/s C mb mm 0.0 0.0 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0
2008-12-07 01:54:58 -1.6 80 -4.6 0.0 0.3 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0
2008-12-07 01:55:58 -1.6 80 -4.6 0.0 0.3 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0
2008-12-07 01:56:58 -1.6 80 -4.6 0.0 0.3 360 0.0 0.0 1014.0 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0
2008-12-07 01:57:58 -1.6 80 -4.6 0.0 0.3 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0
2008-12-07 01:58:58 -1.6 80 -4.6 0.0 0.7 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0
2008-12-07 01:59:58 -1.6 80 -4.6 0.0 0.3 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0
2008-12-07 02:00:58 -1.6 80 -4.6 0.0 0.3 360 0.0 0.0 1013.8 N 0 m/s C mb mm 0.0 0.0 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0
https://cumulus.hosiene.co.uk/viewtopic.p ... p&start=40pinto wrote:
one other solution is using this to run the vbs-script.
You only need the free version.
Yes... actually, I had not thought of that... The format of the number needs to change depending on the format of that data...
Now, my realtime.log is workingaadal wrote:Only one line in realtime.logmeteotortosa wrote:Ok, here is my realtime.log, but is not updatedpinto wrote:for a start: where is your realtime.log ?
did you use this: https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=130![]()
http://www.meteotortosa.cat/liveview/realtime.log
Shold be like thise:Read more about thise here: https://cumulus.hosiene.co.uk/viewtopic.p ... imelog.phpCode: Select all
2008-12-07 01:39:56 -1.4 80 -4.4 0.0 0.3 45 0.0 0.0 1014.0 NE 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.2 45 -1.4 -0.1 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 0.7 -1.4 -4.5 0 0 0 2008-12-07 01:40:56 -1.5 80 -4.5 0.0 0.3 360 0.0 0.0 1014.0 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.1 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 0.7 -1.5 -4.6 0 0 0 2008-12-07 01:41:56 -1.5 80 -4.5 0.0 0.3 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 0.7 -1.5 -4.6 0 0 0 2008-12-07 01:42:56 -1.5 80 -4.5 0.0 0.7 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 0.7 -1.5 -4.6 0 0 0 2008-12-07 01:43:56 -1.5 80 -4.5 0.0 1.0 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0 2008-12-07 01:44:56 -1.5 80 -4.5 0.0 1.0 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 0.0 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0 2008-12-07 01:45:56 -1.5 80 -4.5 0.0 0.7 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 0.0 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0 2008-12-07 01:46:51 -1.5 80 -4.5 0.0 0.3 360 0.0 0.0 1013.8 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0 2008-12-07 01:47:58 -1.5 80 -4.5 0.0 0.3 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 0.0 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0 2008-12-07 01:48:58 -1.5 80 -4.5 0.0 0.0 338 0.0 0.0 1013.9 NNW 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0 2008-12-07 01:49:58 -1.5 80 -4.5 0.0 0.7 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 0.0 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0 2008-12-07 01:50:58 -1.5 80 -4.5 0.0 1.0 315 0.0 0.0 1013.9 NW 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0 2008-12-07 01:51:58 -1.5 80 -4.5 0.0 1.0 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.5 -0.2 -0.7 00:35 -1.5 01:37 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.5 -4.6 0 0 0 2008-12-07 01:52:58 -1.6 80 -4.6 0.0 0.0 180 0.0 0.0 1013.8 S 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.2 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0 2008-12-07 01:53:58 -1.6 80 -4.6 0.0 0.0 180 0.0 0.0 1013.9 S 0 m/s C mb mm 0.0 0.0 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0 2008-12-07 01:54:58 -1.6 80 -4.6 0.0 0.3 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0 2008-12-07 01:55:58 -1.6 80 -4.6 0.0 0.3 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0 2008-12-07 01:56:58 -1.6 80 -4.6 0.0 0.3 360 0.0 0.0 1014.0 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0 2008-12-07 01:57:58 -1.6 80 -4.6 0.0 0.3 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0 2008-12-07 01:58:58 -1.6 80 -4.6 0.0 0.7 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0 2008-12-07 01:59:58 -1.6 80 -4.6 0.0 0.3 360 0.0 0.0 1013.9 N 0 m/s C mb mm 0.0 +0.1 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0 2008-12-07 02:00:58 -1.6 80 -4.6 0.0 0.3 360 0.0 0.0 1013.8 N 0 m/s C mb mm 0.0 0.0 3.0 307.8 0.0 21.1 45 -1.6 -0.3 -0.7 00:35 -1.6 01:52 0.0 00:00 1.0 01:21 1014.1 00:48 1013.6 00:00 1.8.4 589 1.0 -1.6 -4.7 0 0 0
Here is som soft if you dont have crontabhttps://cumulus.hosiene.co.uk/viewtopic.p ... p&start=40pinto wrote:
one other solution is using this to run the vbs-script.
You only need the free version.
And seems you are missing some fonts.
Here is mine 201 TTF fonts , large file 94 MB http://www.aadal.biz/~weather/files/201_ttf_fonts.zip
Code: Select all
2008-12-06 23:45:41 11.4 78 7.7 2.0 0.0 168 0.0 0.0 1019.88 SSE 1 km/h C hPa mm 59.4 +0.21 0.0 455.4 0.0 14.9 57 11.4 +0.1 15.1 14:29 8.9 07:14 14.5 12:00 19.3 11:29 1019.92 23:30 1016.73 02:11 1.8.4 589 8.0 11.4 11.7 0 0.81 0
2008-12-07 23:00:25 13.8 87 11.7 7.9 4.8 94 0.0 0.0 1022.29 E 2 km/h C hPa mm 65.0 +0.08 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.32 22:57 1019.10 03:59 1.8.4 589 17.7 13.8 15.9 0 1.24 0
2008-12-07 23:00:55 13.8 87 11.7 8.9 8.0 42 0.0 0.0 1022.29 NE 2 km/h C hPa mm 65.0 +0.08 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.32 22:57 1019.10 03:59 1.8.4 589 17.7 13.8 15.9 0 1.24 0
2008-12-07 23:02:00 13.8 87 11.7 7.8 4.8 101 0.0 0.0 1022.25 E 2 km/h C hPa mm 65.1 +0.08 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.32 22:57 1019.10 03:59 1.8.4 589 17.7 13.8 15.9 0 1.24 0
2008-12-07 23:02:30 13.8 87 11.7 7.6 4.8 105 0.0 0.0 1022.29 ESE 2 km/h C hPa mm 65.3 +0.07 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.32 22:57 1019.10 03:59 1.8.4 589 17.7 13.8 15.9 0 1.27 0
2008-12-07 23:02:55 13.8 87 11.7 7.5 11.3 126 0.0 0.0 1022.29 SE 2 km/h C hPa mm 65.3 +0.07 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.32 22:57 1019.10 03:59 1.8.4 589 14.5 13.8 15.9 0 1.27 0
2008-12-07 23:03:55 13.8 87 11.7 8.2 6.4 9 0.0 0.0 1022.32 N 2 km/h C hPa mm 65.4 +0.08 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.32 22:57 1019.10 03:59 1.8.4 589 17.7 13.8 15.9 0 1.27 0
2008-12-07 23:04:55 13.8 87 11.7 10.9 9.7 123 0.0 0.0 1022.39 ESE 2 km/h C hPa mm 65.5 +0.08 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.39 23:04 1019.10 03:59 1.8.4 589 17.7 13.8 15.9 0 1.27 0
2008-12-07 23:05:55 13.8 87 11.7 9.1 9.7 125 0.0 0.0 1022.25 SE 2 km/h C hPa mm 65.7 +0.09 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.39 23:04 1019.10 03:59 1.8.4 589 16.1 13.8 15.9 0 1.27 0
2008-12-07 23:06:55 13.8 87 11.7 8.1 6.4 119 0.0 0.0 1022.32 ESE 2 km/h C hPa mm 65.9 +0.03 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.39 23:04 1019.10 03:59 1.8.4 589 16.1 13.8 15.9 0 1.27 0
2008-12-07 23:07:55 13.8 87 11.7 5.8 4.8 107 0.0 0.0 1022.35 ESE 2 km/h C hPa mm 66.0 +0.08 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.39 23:04 1019.10 03:59 1.8.4 589 12.9 13.8 15.9 0 1.27 0
2008-12-07 23:08:55 13.8 87 11.7 6.3 8.0 88 0.0 0.0 1022.32 E 2 km/h C hPa mm 66.1 +0.10 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.39 23:04 1019.10 03:59 1.8.4 589 16.1 13.8 15.9 0 1.27 0
2008-12-07 23:09:55 13.8 87 11.7 6.6 6.4 82 0.0 0.0 1022.22 E 2 km/h C hPa mm 66.2 +0.09 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.39 23:04 1019.10 03:59 1.8.4 589 16.1 13.8 15.9 0 1.27 0
2008-12-07 23:10:05 13.8 87 11.7 6.8 8.0 107 0.0 0.0 1022.29 ESE 2 km/h C hPa mm 66.3 +0.05 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.39 23:04 1019.10 03:59 1.8.4 589 16.1 13.8 15.9 0 1.27 0
2008-12-07 23:11:00 13.8 87 11.7 4.7 3.2 107 0.0 0.0 1022.29 ESE 1 km/h C hPa mm 66.3 +0.05 0.0 455.4 0.0 15.8 67 13.8 +0.1 16.9 13:08 9.3 07:43 14.3 22:44 22.5 14:44 1022.39 23:04 1019.10 03:59 1.8.4 589 9.7 13.8 15.9 0 1.27 0
I don't understand...this is my font directory (http://www.meteotortosa.cat/liveview/jpgraph/fonts/) and there ara all fonts, I thinkaadal wrote:Hi
I think that your verdanab.ttf font is missing
Same result on the testpage on thise font http://www.meteotortosa.cat/liveview/jp ... stsuit.php
Code: Select all
Font file
"/usr/X11R6/lib/X11/fonts/truetype/verdanab.ttf" is
not readable or does not exist.Code: Select all
<?php
//=======================================================================
// File: JPG-CONFIG.INC
// Description: Configuration file for JpGraph library
// Created: 2004-03-27
// Ver: $Id: jpg-config.inc.php 852 2007-03-18 18:18:35Z ljp $
//
// Copyright (c) Aditus Consulting. All rights reserved.
//========================================================================
//------------------------------------------------------------------------
// Directories for cache and font directory.
//
// CACHE_DIR:
// The full absolute name of the directory to be used to store the
// cached image files. This directory will not be used if the USE_CACHE
// define (further down) is false. If you enable the cache please note that
// this directory MUST be readable and writable for the process running PHP.
// Must end with '/'
//
// TTF_DIR:
// Directory where TTF fonts can be found. Must end with '/'
//
// The default values used if these defines are left commented out are:
//
// UNIX:
// CACHE_DIR /tmp/jpgraph_cache/
// TTF_DIR /usr/X11R6/lib/X11/fonts/truetype/
// MBTTF_DIR /usr/share/fonts/ja/TrueType/
//
// WINDOWS:
// CACHE_DIR $SERVER_TEMP/jpgraph_cache/
// TTF_DIR $SERVER_SYSTEMROOT/fonts/
// MBTTF_DIR $SERVER_SYSTEMROOT/fonts/
//
//------------------------------------------------------------------------
// DEFINE("CACHE_DIR","/tmp/jpgraph_cache/");
// DEFINE("TTF_DIR","/usr/X11R6/lib/X11/fonts/truetype/");
// DEFINE("MBTTF_DIR","/usr/share/fonts/ja/TrueType/");
// DEFINE("TTF_DIR","/public_html/liveview/jpgraph/fonts/");
//-------------------------------------------------------------------------
// Cache directory specification for use with CSIM graphs that are
// using the cache.
// The directory must be the filesysystem name as seen by PHP
// and the 'http' version must be the same directory but as
// seen by the HTTP server relative to the 'htdocs' ddirectory.
// If a relative path is specified it is taken to be relative from where
// the image script is executed.
// Note: The default setting is to create a subdirectory in the
// directory from where the image script is executed and store all files
// there. As ususal this directory must be writeable by the PHP process.
DEFINE("CSIMCACHE_DIR","csimcache/");
DEFINE("CSIMCACHE_HTTP_DIR","csimcache/");
//------------------------------------------------------------------------
// Defines for font setup
//------------------------------------------------------------------------
// Actual name of the TTF file used together with FF_CHINESE aka FF_BIG5
// This is the TTF file being used when the font family is specified as
// either FF_CHINESE or FF_BIG5
DEFINE('CHINESE_TTF_FONT','bkai00mp.ttf');
// Special unicode greek language support
DEFINE("LANGUAGE_GREEK",false);
// If you are setting this config to true the conversion of greek characters
// will assume that the input text is windows 1251
DEFINE("GREEK_FROM_WINDOWS",false);
// Special unicode cyrillic language support
DEFINE("LANGUAGE_CYRILLIC",false);
// If you are setting this config to true the conversion
// will assume that the input text is windows 1251, if
// false it will assume koi8-r
DEFINE("CYRILLIC_FROM_WINDOWS",false);
// The following constant is used to auto-detect
// whether cyrillic conversion is really necessary
// if enabled. Just replace 'windows-1251' with a variable
// containing the input character encoding string
// of your application calling jpgraph.
// A typical such string would be 'UTF-8' or 'utf-8'.
// The comparison is case-insensitive.
// If this charset is not a 'koi8-r' or 'windows-1251'
// derivate then no conversion is done.
//
// This constant can be very important in multi-user
// multi-language environments where a cyrillic conversion
// could be needed for some cyrillic people
// and resulting in just erraneous conversions
// for not-cyrillic language based people.
//
// Example: In the free project management
// software dotproject.net $locale_char_set is dynamically
// set by the language environment the user has chosen.
//
// Usage: DEFINE('LANGUAGE_CHARSET', $locale_char_set);
//
// where $locale_char_set is a GLOBAL (string) variable
// from the application including JpGraph.
//
DEFINE('CYRILLIC_LANGUAGE_CHARSET', null);
// Japanese TrueType font used with FF_MINCHO, FF_PMINCHO, FF_GOTHIC, FF_PGOTHIC
DEFINE('MINCHO_TTF_FONT','ipam.ttf');
DEFINE('PMINCHO_TTF_FONT','ipamp.ttf');
DEFINE('GOTHIC_TTF_FONT','ipag.ttf');
DEFINE('PGOTHIC_TTF_FONT','ipagp.ttf');
// Assume that Japanese text have been entered in EUC-JP encoding.
// If this define is true then conversion from EUC-JP to UTF8 is done
// automatically in the library using the mbstring module in PHP.
DEFINE('ASSUME_EUCJP_ENCODING',false);
//------------------------------------------------------------------------
// Various JpGraph Settings. Adjust accordingly to your
// preferences. Note that cache functionality is turned off by
// default (Enable by setting USE_CACHE to true)
//------------------------------------------------------------------------
// Deafult locale for error messages.
// This defaults to English = 'en'
DEFINE('DEFAULT_ERR_LOCALE','en');
// Deafult graphic format set to "auto" which will automatically
// choose the best available format in the order png,gif,jpeg
// (The supported format depends on what your PHP installation supports)
DEFINE("DEFAULT_GFORMAT","auto");
// Should the cache be used at all? By setting this to false no
// files will be generated in the cache directory.
// The difference from READ_CACHE being that setting READ_CACHE to
// false will still create the image in the cache directory
// just not use it. By setting USE_CACHE=false no files will even
// be generated in the cache directory.
DEFINE("USE_CACHE",false);
// Should we try to find an image in the cache before generating it?
// Set this define to false to bypass the reading of the cache and always
// regenerate the image. Note that even if reading the cache is
// disabled the cached will still be updated with the newly generated
// image. Set also "USE_CACHE" below.
DEFINE("READ_CACHE",true);
// Determine if the error handler should be image based or purely
// text based. Image based makes it easier since the script will
// always return an image even in case of errors.
DEFINE("USE_IMAGE_ERROR_HANDLER",true);
// Determine if the library should also setup the default PHP
// error handler to generate a graphic error mesage. This is useful
// during development to be able to see the error message as an image
// instead as a "red-cross" in a page where an image is expected.
DEFINE("INSTALL_PHP_ERR_HANDLER",false);
// Should the library examin the global php_errmsg string and convert
// any error in it to a graphical representation. This is handy for the
// occasions when, for example, header files cannot be found and this results
// in the graph not being created and just a "red-cross" image would be seen.
// This should be turned off for a production site.
DEFINE("CATCH_PHPERRMSG",true);
// Should usage of deprecated functions and parameters give a fatal error?
// (Useful to check if code is future proof.)
DEFINE("ERR_DEPRECATED",true);
// Should the time taken to generate each picture be branded to the lower
// left in corner in each generated image? Useful for performace measurements
// generating graphs
DEFINE("BRAND_TIMING",false);
// What format should be used for the timing string?
DEFINE("BRAND_TIME_FORMAT","(%01.3fs)");
//------------------------------------------------------------------------
// The following constants should rarely have to be changed !
//------------------------------------------------------------------------
// What group should the cached file belong to
// (Set to "" will give the default group for the "PHP-user")
// Please note that the Apache user must be a member of the
// specified group since otherwise it is impossible for Apache
// to set the specified group.
DEFINE("CACHE_FILE_GROUP","wwwadmin");
// What permissions should the cached file have
// (Set to "" will give the default persmissions for the "PHP-user")
DEFINE("CACHE_FILE_MOD",0664);
// Decide if we should use the bresenham circle algorithm or the
// built in Arc(). Bresenham gives better visual apperance of circles
// but is more CPU intensive and slower then the built in Arc() function
// in GD. Turned off by default for speed
DEFINE("USE_BRESENHAM",false);
// Special file name to indicate that we only want to calc
// the image map in the call to Graph::Stroke() used
// internally from the GetHTMLCSIM() method.
DEFINE("_CSIM_SPECIALFILE","_csim_special_");
// HTTP GET argument that is used with image map
// to indicate to the script to just generate the image
// and not the full CSIM HTML page.
DEFINE("_CSIM_DISPLAY","_jpg_csimd");
// Special filename for Graph::Stroke(). If this filename is given
// then the image will NOT be streamed to browser of file. Instead the
// Stroke call will return the handler for the created GD image.
DEFINE("_IMG_HANDLER","__handle");
?>
Code: Select all
// DEFINE("TTF_DIR","/public_html/liveview/jpgraph/fonts/");Code: Select all
DEFINE("TTF_DIR","/home/meteotor/public_html/liveview/jpgraph/fonts/");Oh, yes, It's work !! A lot of thanksTNETWeather wrote:You need to un-comment out the line:
like below but you have to add the full path...Code: Select all
// DEFINE("TTF_DIR","/public_html/liveview/jpgraph/fonts/");
Code: Select all
DEFINE("TTF_DIR","/home/meteotor/public_html/liveview/jpgraph/fonts/");
Only one thing more, how do you know the full path? There is not any /home/meteor/ directory in my server !!
Renamedaadal wrote:Great! you get it working
Only one thing more, how do you know the full path? There is not any /home/meteor/ directory in my server !!
Info is from thise http://www.meteotortosa.cat/liveview/jp ... Server.php
You shold remome thise "CheckServer.php" for safety, and there may be one in /liveview/ too.
Code: Select all
$SITE['tempunit'] = ret_value("tempunit");
$SITE['pressunit'] = ret_value("pressunit");
$SITE['rainunit'] = ret_value("rainunit");
$SITE['windunit'] = ret_value("windunit");