/dev/adei/kitcube-status

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/adei/kitcube-status

« back to all changes in this revision

Viewing changes to kitcube_status.html

  • Committer: Chuan Miao
  • Date: 2014-03-24 08:44:49 UTC
  • Revision ID: chuan.miao@kit.edu-20140324084449-jwqklxh2x2zx4i3n
hatpro.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    $('#HATPRO #timeseries ul').append(sensor('L1B.BRIGHT.TEMP.IR', 'brightness temperature IR', 'C').outerHTML);
26
26
    $('#HATPRO #timeseries ul li').first().addClass('highlight');
27
27
 
 
28
    $('#HATPRO #profile ul').append(sensor('L2C.AIR.POT.TEM.PRF', 'air potential temperature', 'm', 'K').outerHTML);
 
29
    $('#HATPRO #profile ul').append(sensor('L2C.REL.HUM.PRF', 'relative humidty profiling', 'm', '%').outerHTML);
 
30
    $('#HATPRO #profile ul li').first().addClass('highlight');
 
31
 
28
32
    setInterval(function update() {
29
33
        updateData('hatpro_time.cgi', 'L2A.ATM.WAT.VAP.CNT', '0d');
30
34
        updateData('hatpro_time.cgi', 'L2A.ATM.WAT.VAP.CNT', '1d');
38
42
        updateData('hatpro_time.cgi', 'L1B.BRIGHT.TEMP.IR', '0d');
39
43
        updateData('hatpro_time.cgi', 'L1B.BRIGHT.TEMP.IR', '1d');
40
44
        updateData('hatpro_time.cgi', 'L1B.BRIGHT.TEMP.IR', '2d');
 
45
        updateData('hatpro_contour.cgi', 'L2C.AIR.POT.TEM.PRF', '0d');
 
46
        updateData('hatpro_contour.cgi', 'L2C.AIR.POT.TEM.PRF', '1d');
 
47
        updateData('hatpro_contour.cgi', 'L2C.AIR.POT.TEM.PRF', '2d');
 
48
        updateData('hatpro_contour.cgi', 'L2C.REL.HUM.PRF', '0d');
 
49
        updateData('hatpro_contour.cgi', 'L2C.REL.HUM.PRF', '1d');
 
50
        updateData('hatpro_contour.cgi', 'L2C.REL.HUM.PRF', '2d');
 
51
 
41
52
        }, 10*1000);
42
53
 
43
54
    $( "#radiotime" ).buttonset();
69
80
    $('.printbutton').click(function()  {
70
81
      var img1 = $(this).parents("div .ui-widget-content").data('img1');
71
82
      var img2 = $(this).parents("div .ui-widget-content").data('img2');
 
83
      var title1 = $(this).parents("div .ui-widget-content").data('title1');
 
84
      var title2 = $(this).parents("div .ui-widget-content").data('title2');
72
85
 
73
86
      w = window.open();
74
 
      w.document.write("<br><img src='"+img1+"'/>");
75
 
      w.document.write("<br><img src='"+img2+"'/>");
 
87
      w.document.write("<div style='text-align: center'><b>");
 
88
      w.document.write(title1);
 
89
      w.document.write("</b></div>");
 
90
      w.document.write("<img src='"+img1+"'/>");
 
91
      w.document.write("<br><br><div style='text-align: center'><b>");
 
92
      w.document.write(title2);
 
93
      w.document.write("</b></div>");
 
94
      w.document.write("<img src='"+img2+"'/>");
76
95
      w.print();
77
96
      w.close();
78
97
    });
188
207
      <div class="navmenu" id="profile">
189
208
      <b>&nbsp;Profiling</b>
190
209
      <ul>
191
 
        <li id="L2C.AIR.POT.TEM.PRF" unit='m' class="highlight"><a href="#">air potential temperature</a></li>
192
 
        <li id="L2C.REL.HUM.PRF" unit='m'><a href="#">relative humidity profling</a></li>
 
210
          <!--
193
211
        <li id="hatpro.wvcp"><a href="#">water-vapor content</a></li>
194
212
        <li id="hatpro.lwcp"><a href="#">liquid-water content</a></li>
 
213
            -->
195
214
      </ul>
196
215
      </div>
197
216
      </div>