Backend process for parsing all the meteor images data for Camera Name and Timestamp
Looks for RMS-style image files from AllSky/RaspberryPi, parses the camera name and event timestamp, and adds the entry to a MySQL database.
- First,
git clone https://github.com/pesvut/meteor-data-server.git
- Install packages:
npm install
- Add MySQL credentials to /credentials/mysql.json in this format:
{
"host": "",
"user": "",
"password": "",
"database": "",
"port": 3306
}
- create a .env file and add
IMAGE_PATH=/path/to/images/
(or if using systemd addEnvironment=IMAGE_PATH=/path/to/images/
) - run the process with either
node server.js
ornpm start
(or create a systemd process with /usr/bin/node etc...)
- optional: if serving files, you can change port using
PORT=8080
or whatever you want This can also use nodejs for file serving, but nginx or something else is probably better to use in the long run, as long as the paths stay the same. to add the file serving, add the environmental variableSERVE=1