wiki:WikiStart

Version 30 (modified by stemih, 6 years ago) (diff)

--

VIVA

L'objectif du projet VIVA est le développement d'une application Web monopage basée sur le framework AngularJS 1.6.

Les outils de développement sont: Node.js 8.x (package.json), Bower (bower.json) et Grunt (Gruntfile.js).
NB. Depuis octobre 2017 l'outil Webpack remplace Bower dans tous les projets.

Séances

PV 2016-06-29
PV 2016-01-26
PV 2016-01-20
PV 2016-01-13
PV 2015-10-28

Notes

  • Voici comment procéder pour ajouter une donnée SpatialTemp (par ex. cosmo1_t_500m) sur un graphe du portail VIVA:
    1. dans le fichier 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):
      var getWeatherStationsForecastData = function (product, stationId, refDate) {
        return getAPIResponse('minerve/weather-stations/forecast/'+product+'/'+stationId+'/'+refDate);
      };
      
    2. dans le fichier services/appData.js
          this.loadMeteoStationData = function (station, callback) {
            // [...] 
      
            var prevC1Temp500m = apiData.getWeatherStationsForecastData(config.weatherProductId.cosmo1_t_500m, station.stationId, refDate).then(function (data) {
              stationData.prevData.c1Temp500m = data;
            });
      
    3. dans le fichier directives/graph.js
                    // Spatial temperatures
                    if (scope.station.data.prevData.c1Temp500m.length > 0) {
                      highchart.addSeries(graphService.createSerie(
                        gettextCatalog.getString('portal_right_panel_tab_meteo_graph_temp_prev_c1_500m_serie_name'),
                        scope.station.data.prevData.c1Temp500m,
                        '#9900ff',
                        config.highchart.types.line,
                        0,
                        false,
                        null,
                        appData.getDates().ref,
                        gettextCatalog.getString('portal_unit_c')
                      ));
                    }
      

Personne(s) de contact: gilmac

Projets: Crealp-Admin, Crealp-API, CRUEX, MINERVE-bulletin, MINERVE-D3, MINERVE-db, MINERVE-operationnel, MINERVE-rest, MINERVE-scripts, MINERVE-SpatialTemp, MINERVE-www, Ofev-CC, polhydro-pcr, RSDataset, RSMinerve, SiGES, SnowMapping, S.T.R.E.S.S, TeREsA, ToolMap2, VIVA