This is the web frontend for a data processing framework for atmospheric sensors who can monitor and edit their data.
The documentation for end users can be found in the Wiki.
The following instructions are for developers who want to setup their own version. This is a meteor based framework.
-
Data Folder: The framework expects a certain data folder structure.
/hnet/incoming/current
should exist. This location is hard coded and need be changed if desired. There also needs to be an outgoing data directory which can be defined as an environment varaibleoutgoingDir
. -
We are running with a local MongoDB
to install e.g on Mac OS install via homebrew:
brew install mongodb
to install e.g. on Mac OS or Linux:
curl https://install.meteor.com/ | sh
- For pushing data out, the server is using lftp which must be installed.
Clone and run: meteor npm install
MONGO_URL=mongodb://localhost:27017/DataMaps meteor
For debugging with node inspector run MONGO_URL=mongodb://localhost:27017/DataMaps meteor debug
and open the app in Chrome with the port listed once the app has started.
- change into the working directory and run
meteor build ..
- this will generate a *.tar .gz file - move the file to the install location and extract it (you will end up with a
bundle
directory cd bundle/programs/server/
andnpm install
- generate a configuration file for PM2 (see example gist) outside of bundle
- run
pm2 start [your_pm2_conf_file] --node-args="--max_old_space_size=6144"