]> scm.dxcluster.org Git - dweather.git/commitdiff
change temp colour to red
authorDirk Koopman <djk@tobit.co.uk>
Sun, 10 May 2015 20:53:06 +0000 (21:53 +0100)
committerDirk Koopman <djk@tobit.co.uk>
Sun, 10 May 2015 20:53:06 +0000 (21:53 +0100)
templates/index.html.ep

index 2dd444fe94f7404d6aa13e8ce7febd4385a9188d..aad1a36ee416825597708760434a4b0655df99ed 100644 (file)
@@ -26,6 +26,7 @@
                var windrose_mins = <%= $main::windmins %>;
                var windspeed;
                var winddir;
+               var updatespermin = <%= $main::updatepermin %>;
 
                var h = new Object();
 
@@ -79,7 +80,7 @@
                                                                rr.Dir = lastdir;
                                                        if (!("Wind" in rr))
                                                                rr.Wind = lastwind;
-                                                       fill_windrose(rr, windrose_mins * $updatespermin);
+                                                       fill_windrose(rr, windrose_mins * updatespermin);
                                                        fill_windspeed(rr);
                                                        fill_winddir(rr);
                                                        lastwind = rr.Wind;
                                        labels: {
                                                format: '{value}°C',
                                                style: {
-                                                       color: Highcharts.getOptions().colors[2]
+                                                       color: '#ff0000'
                                                }
                                        },
                                        title: {
                                                text: 'Temperature',
                                                style: {
-                                                       color: Highcharts.getOptions().colors[2]
+                                                       color: '#ff0000'
                                                }
                                        },
                                        opposite: true
                                }, {
                                        name: 'Temperature',
                                        type: 'spline',
+                                       color: '#ff0000',
                                        data: [
                                                <% $s = "";
                                                   for (@main::last5daysh) { 
                <div id="container">
                        <div id="start-template">
                                <br><br>
-                               <table border=1 width=80% align="center">
+                               <table class="table">
                                        <tr>
                                                <th>Time:</th><td><span id="tm"> </span></td>
                                                <th>Sunrise:</th><td><span id="Sunrise"> </span></td>
                                                <th>Temperature in:</th><td> <span id="Temp_In"> </span></td>
                                                <th>Humidity:</th><td> <span id="Humidity_In"> </span></td>
                                        </tr>
-                                       <tr>
+                                       <tr><th>Temperature out:</th><td> <span id="Temp_Out"> </span></td>
                                                <th>Min:</th><td> <span id="Temp_Out_Min"> </span> @ <span id="Temp_Out_Min_T"> </span></td>
                                                <th>Max:</th><td> <span id="Temp_Out_Max"> </span> @ <span id="Temp_Out_Max_T"> </span></td>
                                                <th>Humidity:</th><td> <span id="Humidity_Out"> </span></td>
                                                <th>Dew Point:</th><td> <span id="Dew_Point"> </span></td>
                                        </tr>
-                                       <tr>
+                                       <tr><th>Wind:</th><td><span id="Wind"> </span> mph @ <span id="Dir"> </span> deg</td>
                                                <th>Wind Dir Minute Avg:</th><td> <span id="Dir_1m">  </span></td>
                                                <th>Wind Speed Minute Avg:</th><td> <span id="Wind_1m">  </span></td>
                                        </tr>