Need help installing gauges - Apache2 stops? [Solved]

Hi :slight_smile:

First of all, my apologize if the topic has already been started somewhere on the board. In this case please redirect me to that topic.

So… I think you found out that I’m trying to install the “SteelSeries Gauges” scripts :smiley:
But… I have some troubles and questions:

1)When I go to http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm everything seems working fine unless the location, altitude etc…
2)The datas are loaded but the autoupdate doesn’t work.
3)After visiting that page, it is impossible for me to navigate to an other one. I have to reboot my server everytime someone goes on the gauges page.

I think that the autoupdate does not work because the webserver crashes, how can I fix that?
Once the crash problem will be solved, I would like to add graphs the mouse pass over a gauge. How can I do?

Thank you very much and sorry for my English.

I’d start by looking at your Apache server log files, they should give you a clue to what is going wrong - I have never heard of this before, I run Apache on an old laptop to host my site without any issues.

As for the ‘pop-up’ graphs, I understand WD does not generate these natively, you will have to use another package. Other users on the forum have done this so I will let them chime in here - I am not a WD user.

Hello! :slight_smile:
Thank you for the answer.

Here is what you can find in the error log file.

[Tue Oct 16 17:40:34 2012] [error] [client 87.64.89.175] File does not exist: /home/meteomelin/www/test/v3/weatherstyle.css, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:34 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ming.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:34 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ps.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] File does not exist: /home/meteomelin/www/test/v3/images/temp+hum_24hr.php, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ming.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ps.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] File does not exist: /home/meteomelin/www/test/v3/images/temp+dew+hum_1hr.php, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ming.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ps.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] File does not exist: /home/meteomelin/www/test/v3/images/humidity_1hr.php, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ming.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ps.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] File does not exist: /home/meteomelin/www/test/v3/images/baro_24hr.php, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] File does not exist: /home/meteomelin/www/test/v3/images/windgust_1hr.php, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ming.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ps.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] File does not exist: /home/meteomelin/www/test/v3/images/winddir_24hr.php, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ming.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ps.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ming.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] File does not exist: /home/meteomelin/www/test/v3/images/rain_24hr.php, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ps.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] File does not exist: /home/meteomelin/www/test/v3/images/rain_1hr.php, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ming.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ming.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ps.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
[Tue Oct 16 17:40:35 2012] [error] [client 87.64.89.175] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/ps.ini on line 1 in Unknown on line 0, referer: http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm

Unless the “file does not exist” error, there is nothing else bad…
What can I do?

Sorry, nothing I can suggest, I’m not an Apache2 expert :frowning:

No problem !
I will ask on a computer forum. :slight_smile:

Hello ! :slight_smile:

I found what was wrong ! I had to upload the wxgraphs files into the images sub-directory.

Now, I would like to use other graphs than which are generated by wxgraphs.
For example, this one: http://www.meteomelin.be/html/mini_currentt.gif
What should I edit in the .js file?

Plus, how must I proceed to change the design of the gauges?

Thank you very much :slight_smile:
Clement

Change the path to the images at line 23

var g_imgPathURL            = "images/";            //*** Change this to the relative path for your 'Trend' graph images

Then change the file names at line 90:

    g_tipImgs = [['../../html/minicurrentt.gif', 'indoor_temp_24hr.php'],         // Temperature: outdoor, indoor
                 ['temp+dew+hum_1hr.php','temp+dew+hum_1hr.php','temp+dew+hum_1hr.php','temp+dew+hum_1hr.php','temp+dew+hum_1hr.php'],  // Temperature: dewpnt, apparent, windChill, HeatIndx, humidex
                  'rain_24hr.php',                                      // Rainfall
                  'rain_1hr.php',                                       // Rainfall rate
                 ['humidity_1hr.php', 'humidity_7days.php'],            // Humidity: outdoor, indoor
                  'baro_24hr.php',                                      // Pressure
                  'windgust_1hr.php',                                   // Wind speed
                  'winddir_24hr.php',                                   // Wind direction
                 //Only one each of the following two alternative settings for UV and Solar should be enabled:
              //  'uv_24hr.php',                                        // UV if  UV sensor is present
                   null,                                                // UV if no UV sensor
              //  'solar_24hr.php'                                      // Solar rad if Solar sensor is present
                   null                                                 // Solar rad if no Solar sensor
                ];

Hello, everything is almost working :slight_smile:
http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm

But I have still some questions:D

I would like to use a Compass gauge for the wind direction. So I changed the initial code by this one:

function drawDir() {
    // create wind direction/compass radial gauge
    if (document.getElementById('canvas_dir')) {
       // gauge_wdir = new steelseries.WindDirection(
        gauge_wdir = new steelseries.Compass(
                'canvas_dir', {
                    size : g_size,
                    frameDesign : g_frameDesign,
                    pointerTypeLatest : g_pointer, // default TYPE1,
                    pointerTypeAverage : steelseries.PointerType.TYPE8, // default TYPE8
                    pointerColor : g_pointerColour,
                    pointerColorAverage : steelseries.ColorDef.RED,
                    knobType : g_knob,
                    knobStyle : g_knobStyle,
                    backgroundColor : g_background,
                    foregroundType : g_foreground,
                    degreeScale : false,             // Show degree scale rather than ordinal directions
                    pointSymbols : LANG.compass,
                    roseVisible : true,            // Show the central compass rose design
                    digitalFont : g_digitalFont,
                    lcdColor : g_lcdColour,
                    lcdTitleStrings : [LANG.latest_web, LANG.tenminavg_web],
                    useColorLabels : true
                });
    }
}

Unfortunately, it doesn’t work :frowning:

I was able to remove the color scale from 4 gauges but I have still 3 where I can not remove that. (temp, sensation, rain intensity)

I also have problem with the pressure gauge:

    g_baro.sections = [];
    g_baro.areas = [];
    g_baro.minValue = 950;
    g_baro.maxValue = 1050;
    g_baro.value = 1000;
    g_baro.title = LANG.baro_title;
    g_baro.lcdDecimals = 1;
    g_baro.scaleDecimals = 1;
    g_baro.labelNumberFormat = g_labelFormat;

But it starts at -10 untill 1090 hPa…

Plus, how must I do to have an interval of 100w/m

Nobody to help for the compass and pressure problem? :frowning:

Btw, I made some corrections in the language.js file for the French translation.
You can find it here: www.meteomelin.be/files/weather-gauges/language.zip

If you switch to the Compass, then there are some ‘features’ that are no longer present and you will have to stop the code calling them.

The compass only has a single pointer, so the following lines are now wrong…

                    pointerTypeLatest : g_pointer, // default TYPE1,
                    pointerTypeAverage : steelseries.PointerType.TYPE8, // default TYPE8
                    pointerColorAverage : steelseries.ColorDef.RED,

Also lines such as…

    gauge_wdir.setValueAnimatedAverage(g_dir.valueAverage);
or
    gauge_wdir.setValueAnimatedLatest(g_dir.valueLatest);

will also have to change.

You will also have to remove calls such as…

gauge_wdir.setSection()
or
gauge_wdir.setArea()

The baro min/max are starting values, the code will extend the range in either direction depending on your min/max pressure records.

I give up for the compass gauge… Too complex for me :smiley:

Thanks for all ! :smiley: