Sandaysoft

Support forum for Cumulus weather station software
It is currently Fri May 24, 2013 6:31 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 253 posts ]  Go to page Previous  1 ... 10, 11, 12, 13, 14, 15, 16, 17  Next
Author Message
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sun Oct 31, 2010 12:27 pm 
Offline

Joined: Tue Apr 13, 2010 11:37 am
Posts: 32
Location: Sevilla, España
Weather Station: Davis Vantage Pro2
Operating System: WINDOWS 7 PROFESIONAL
Hola, me llamo José y como mi inglés es muy malo utilizaré el traductor de Google. Disculpas por cualquier error del traductor. :oops:
Quiero poner en mi web los TNET Cumulus JpGraph Graphs y los tengo en prueba aqui:

http://www.tiempoensevilla.es/jpgraph/samp-graph.php

Como podeis comprobar, el gráfico de lluvia se sale de escala y no marca los 21.4mm de esta noche. También veo que en el de viento no marca los 51.5 Km/h de la racha de viento, se queda mucho más abajo.

¿Hay algo que he configurado mal?

Muchas Gracias por este mágnifico programa que es Cumulus y vuestras ideas para que la web sea más agradable para el visitante. :D

Saludos,
José
-----------------------------------------------------------------------------------------------------------------------
Hello, my name is Jose and as my English is very bad will use the Google translator. Apologies for any error of the translator. :oops:
I put on my website the TNET Cumulus JpGraph Graphs and test I have in here:

http://www.tiempoensevilla.es/jpgraph/samp-graph.php

As you can see, the graph of rain out of scale and does not mark 21.4mm tonight. I also see that the wind does not mark the 51.5 km / h gust of wind, is much lower.

Is there something I have configured wrong?

Thank you very much for this wonderful program that is Cumulus and your ideas to make the web more enjoyable for visitors. :D

Regards,
José

_________________
Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Sun Oct 31, 2010 1:28 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17586
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
If I understand you correctly, I think the answer is that the graphs are sampled at a particular interval (like the ones in Cumulus itself), so any peaks that occur between samples don't get recorded. Unless a graph plots every reading, it will only ever give you an overall picture of the data.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Mon Nov 01, 2010 1:11 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1772
Location: World...
Weather Station: No weather station
Operating System: No operating system
José, there might be some adjustments needed to get the two rain information (lines) to better display on the graphic. Have a look at my 24 Hour Weather Graphics page - be aware that the cumulative/total amount of rain was automatically reset to zero (by my weather station console) at the beginning of October when the rain season in my area really starts.


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Mon Nov 01, 2010 2:38 pm 
Offline

Joined: Tue Apr 13, 2010 11:37 am
Posts: 32
Location: Sevilla, España
Weather Station: Davis Vantage Pro2
Operating System: WINDOWS 7 PROFESIONAL
Hola Gemini, así se ven mucho mejor. :clap:
¿Me podrías decir que parámetros hay que cambiar, para que se vea así de bien?
De programación no tengo ni idea, pero poco a poco voy aprendiendo. :bash:
Es que queda muy mal que el gráfico de lluvia esté en 14mm y no en 22mm, así la lluvia de 21.4mm entraría bien en el gráfico y no se iría por arriba.
Gracias.
Saludos,
José
P.D. Perdón por seguir utilizando el traductor de google, a lo mejor no se entiende bien lo que quiero decir. :oops:
---------------------------------------------------------------------------------------------------------------
Hi Gemini, and are much better. :clap:
Can you tell me what parameters must be changed, to make it look this good?
Programming I have no idea, but am slowly learning. :bash:
It is very bad that the graph of rain is in 14mm, not 22mm and 21.4mm rain would go well in the plot and would not go above.
Thanks.
Regards,
José
P. S. Sorry to continue using the google translator, maybe not fully understand what I mean. :oops:

_________________
Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Tue Nov 02, 2010 3:08 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1772
Location: World...
Weather Station: No weather station
Operating System: No operating system
josebp wrote:
¿Me podrías decir que parámetros hay que cambiar, para que se vea así de bien?
---------------------------------------------------------------------------------------------------------------
Can you tell me what parameters must be changed, to make it look this good?
José, here is what you need to modify - line 199 has to be commented out (or completely removed):

Old Code - starting at line 195:
Code:
//y-axis
$graph->yaxis->SetColor($SITE['txtcolor']);
$graph->yaxis->SetLabelFormat('%01.0f ' . $SITE['rainunit']);
$graph->yaxis->SetFont(FF_VERDANA,FS_NORMAL,6);
$graph->yscale->SetAutoMax(10);
$graph->yscale->SetAutoMin(0);
$graph->yaxis->scale->SetGrace(10);
$graph->yaxis->HideTicks(true,true);


New Code - starting at line 195:
Code:
//y-axis
$graph->yaxis->SetColor($SITE['txtcolor']);
$graph->yaxis->SetLabelFormat('%01.0f ' . $SITE['rainunit']);
$graph->yaxis->SetFont(FF_VERDANA,FS_NORMAL,6);
// $graph->yscale->SetAutoMax(10);[/color]
$graph->yscale->SetAutoMin(0);
$graph->yaxis->scale->SetGrace(10);
$graph->yaxis->HideTicks(true,true);

Let me know if the modification corrects the display problem.

There are a few other lines of code that also need to be changed in the other PHP scripts (graphics) - I have been working on the scripts all day Thursday and should be finished reviewing the scripts by Friday or Saturday.


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Tue Nov 02, 2010 6:39 pm 
Offline

Joined: Tue Apr 13, 2010 11:37 am
Posts: 32
Location: Sevilla, España
Weather Station: Davis Vantage Pro2
Operating System: WINDOWS 7 PROFESIONAL
Hola Gemini, ahora perfecto: :clap:

http://www.tiempoensevilla.es/jpgraph/samp-graph.php

Hay un dicho en español que dice:" nunca te acostarás sin saber una cosa más".
Viene a decir que todos los días se aprende algo nuevo.
Muchas Gracias. :D
Saludos,
José
-----------------------------------------------------------------------------

Hi Gemini, now perfect: :clap:

http://www.tiempoensevilla.es/jpgraph/samp-graph.php

There is a saying in Spanish that says:" nunca te acostarás sin saber una cosa más".
Is to say that every day you learn something new.
Thank you very much. :D
Regards,
José

_________________
Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Wed Nov 03, 2010 4:26 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1772
Location: World...
Weather Station: No weather station
Operating System: No operating system
josebp wrote:
Hola Gemini, ahora perfecto:
-----------------------------------------------------------------------------
Hi Gemini, now perfect:
José, you must now learn how to remove some of the lines in the images - there are way too many lines in the image - the vertical lines should be removed to make the image 'cleaner'.

In each PHP script (baro.php, dewpt.php, intemp.php, rain.php, temp.php, wind.php and winddir.php) you have to look for the section of code starting with '//x-axis' (without the quotes). For example, in the 'baro.php' file (starting at line 159):

The original code:
Code:
//x-axis
$graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,6);
$graph->xaxis->SetTickLabels($x);
$graph->xaxis->SetTextLabelInterval($SITE['tick']);
$graph->xaxis->SetPos("min");
$graph->xaxis->HideTicks(true,true);
$graph->xaxis->SetColor($SITE['txtcolor']);
$graph->xgrid->Show(true);

There are two (2) lines to modify:
- the one containing: $graph->xaxis->HideTicks(true,true);
- the one containing: $graph->xgrid->Show(true);

The modified code:
Code:
//x-axis
$graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,6);
$graph->xaxis->SetTickLabels($x);
$graph->xaxis->SetTextLabelInterval($SITE['tick']);
$graph->xaxis->SetPos("min");
$graph->xaxis->HideTicks(true,false);
$graph->xaxis->SetColor($SITE['txtcolor']);
$graph->xgrid->Show(false);

These modifications will add (very) small vertical bars (called 'ticks') above the hours and remove the long vertical bars above the hours - the image is now much cleaner to look at... :)

And when you get more familiar and more comfortable with the PHP scripts, then you have to create/duplicate the scripts to make the images much larger, such as this large 24 Hour Temperature/Humidity Weather Graphic... ;)


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Wed Nov 03, 2010 7:36 pm 
Offline

Joined: Tue Apr 13, 2010 11:37 am
Posts: 32
Location: Sevilla, España
Weather Station: Davis Vantage Pro2
Operating System: WINDOWS 7 PROFESIONAL
Hola Gemini, ahora mucho mejor. :o
Tendré que ir aprendiendo poco a poco.
Tienes una cerveza pagada en Sevilla. ;)
Muchas gracias por vuestra ayuda. :D
Saludos,
José

-----------------------------------------------------------------

Hi Gemini, much better. :o
I have to go slowly learning.
Have a beer paid in Seville. ;)
Thank you very much for your help. :D
Regards,
José

_________________
Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Fri Mar 25, 2011 10:10 am 
Offline

Joined: Wed Mar 23, 2011 11:58 am
Posts: 16
Location: Brisbane, Australia
Weather Station: WH2081
Operating System: Windows XP SP3
Hi Guys,

Can someone have a look at my graphs and see if they look ok (these are test pages). I currently only have few days data:

http://www.users.on.net/~gavin_n/weathe ... -graph.php
http://www.users.on.net/~gavin_n/weather/tempH.php

My main concern is the x-axis. It doesn't have as many labels as the other graphs I have seen on other's pages and should the far right of the graph be the current time with the previous data leading up to it? If so, that isn't working correctly because the x-axis time seems fixed to me. It starts at 11pm which bears no resemblance to the time when I am writing this (8pm)?

Thanks for the help...


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Fri May 27, 2011 8:42 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1708
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Hi all,

PANIC OVER! Ignore below. I wasn't entering the correct path to the fonts folder. It should have been:-

/home/admin4/public_html

I'm trying to add these jpGraphs to my site but things are not going well. This may require David's help as he's my web server host.

I've extracted and uploaded the required files into the src folder. The actual path is /public_html/jpgraph/src

My fonts are in a higher level folder hanging off the root folder ( public_html). I've edited jpg-config.inc.php and uploaded it to the server with the following line changed for TTFonts...

define('TTF_DIR','/public_html/fonts/');

But when I load this test page http://www.cheadlehulmeweather.co.uk/jp ... stsuit.php I only see 'font is not readable or does not exist'.

I feel the path to the fonts folder is wrong as it definitely contains some of the required fonts.

Can someone tell me what I'm doing wrong please? All this is very new to me.

LATER: If you follow this link to where my fonts are stored you'll see they are there and are readable.

http://www.cheadlehulmeweather.co.uk/fonts/arial.ttf

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Fri May 27, 2011 10:08 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1708
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Okay, I'm back again and this time I really am stuck.

I've loaded all the required fonts to the server and uploaded the graph folder too. I should be able to see a sample graph on this link but nothing shows. What have I done or not done?

http://www.cheadlehulmeweather.co.uk/samp-graph.php

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Fri May 27, 2011 10:17 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17586
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
RayProudfoot wrote:
I should be able to see a sample graph on this link but nothing shows. What have I done or not done?

It gives a 404, so you haven't uploaded a file called samp-graph.php to the root of your web space.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Fri May 27, 2011 10:26 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1708
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Sorry, wrong path. It should be this one.

http://www.cheadlehulmeweather.co.uk/gr ... -graph.php

Is that what I should be seeing? It doesn't seem right.

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Fri May 27, 2011 10:30 pm 
Offline
User avatar

Joined: Wed Apr 08, 2009 12:38 pm
Posts: 514
Location: Weeley, Essex, UK
Weather Station: La-Crosse WS2300 Serial (Wired)
Operating System: Win XP Pro SP3 & Win 7
RayProudfoot wrote:
Sorry, wrong path. It should be this one.

http://www.cheadlehulmeweather.co.uk/gr ... -graph.php

Is that what I should be seeing? It doesn't seem right.


Right - looks like it needs to read some data from realtime.log

_________________
Jason Duncombe
La-Crosse WS2300 (Wired & Serial) - Cumulus V1.9.3
Check out the Weather Blog

Image

Image


Top
 Profile  
 
 Post subject: Re: Cumulus Server Sided JpGraph Graphs
PostPosted: Fri May 27, 2011 10:35 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1708
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Hi Jason,

I was hoping you'd turn up as I got this idea after looking at your site. So in a way, you're to blame for the last 4 hours this has been driving me mad! :lol:

I don't have a realtime.log but I do have a realtime.txt in the root folder. Can that be used and if so do I need to change that config file the name of which escapes me?

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 253 posts ]  Go to page Previous  1 ... 10, 11, 12, 13, 14, 15, 16, 17  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group