Changes between Version 30 and Version 31 of WikiStart


Ignore:
Timestamp:
02/23/18 15:41:22 (6 years ago)
Author:
stemih
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v30 v31  
    1818  1. dans le fichier [https://trac.crealp.ch/VIVA/browser/trunk/web/app/scripts/services/apiData.js services/apiData.js] on ajoute la nouvelle fonction (par ex. `getWeatherStationsForecastData `) dans la section qui correspond à la source de données (Users/Maya/MINERVE/resource): 
    1919{{{ 
    20 #!div style="font-size:80%;width:80%;" 
     20#!div style="font-size:90%;width:80%;" 
    2121{{{ 
    2222var getWeatherStationsForecastData = function (product, stationId, refDate) { 
     
    2727  2. dans le fichier [https://trac.crealp.ch/VIVA/browser/trunk/web/app/scripts/services/appData.js services/appData.js] 
    2828{{{ 
    29 #!div style="font-size:80%;width:80%;" 
     29#!div style="font-size:90%;width:80%;" 
    3030{{{ 
    31     this.loadMeteoStationData = function (station, callback) { 
    32       // [...]  
     31this.loadMeteoStationData = function (station, callback) { 
     32  // [...]  
    3333 
    34       var prevC1Temp500m = apiData.getWeatherStationsForecastData(config.weatherProductId.cosmo1_t_500m, station.stationId, refDate).then(function (data) { 
    35         stationData.prevData.c1Temp500m = data; 
    36       }); 
     34  var prevC1Temp500m = apiData.getWeatherStationsForecastData(config.weatherProductId.cosmo1_t_500m, station.stationId, refDate).then(function (data) { 
     35    stationData.prevData.c1Temp500m = data; 
     36  }); 
    3737}}} 
    3838}}} 
    3939  3. dans le fichier [https://trac.crealp.ch/VIVA/browser/trunk/web/app/scripts/directives/graph.js directives/graph.js]  
    4040{{{ 
    41 #!div style="font-size:80%;width:80%;" 
     41#!div style="font-size:90%;width:80%;" 
    4242{{{ 
    43               // Spatial temperatures 
    44               if (scope.station.data.prevData.c1Temp500m.length > 0) { 
    45                 highchart.addSeries(graphService.createSerie( 
    46                   gettextCatalog.getString('portal_right_panel_tab_meteo_graph_temp_prev_c1_500m_serie_name'), 
    47                   scope.station.data.prevData.c1Temp500m, 
    48                   '#9900ff', 
    49                   config.highchart.types.line, 
    50                   0, 
    51                   false, 
    52                   null, 
    53                   appData.getDates().ref, 
    54                   gettextCatalog.getString('portal_unit_c') 
    55                 )); 
    56               } 
     43// Spatial temperatures 
     44if (scope.station.data.prevData.c1Temp500m.length > 0) { 
     45  highchart.addSeries(graphService.createSerie( 
     46    gettextCatalog.getString('portal_right_panel_tab_meteo_graph_temp_prev_c1_500m_serie_name'), 
     47    scope.station.data.prevData.c1Temp500m, 
     48    '#9900ff', 
     49    config.highchart.types.line, 
     50    0, 
     51    false, 
     52    null, 
     53    appData.getDates().ref, 
     54    gettextCatalog.getString('portal_unit_c') 
     55  )); 
     56} 
    5757}}} 
    5858}}}