How to store weather data files on SMB share?
Posted: Sun Apr 08, 2018 4:03 pm
I shortly got a request to store the evaluation of a template on the PC network share, so that another PC can most easily grab data from there.
This feature is not directly implemented, but can be easily achieved by a script definition.
1) define a file "gen.sh" with following content:
2) put a script "gen.sh" into scripts folder on Meteobridge PC network share.
3) define a script service like this: 4) generated file can be found on PC network share in export folder
This feature is not directly implemented, but can be easily achieved by a script definition.
1) define a file "gen.sh" with following content:
Code: Select all
#!/bin/sh
### script to evaluate a template to a file. Parameters: <template> <target file>
#
cp "/tmp/mnt/data/templates/$1" /var/run/meteohub/template
nc 127.0.0.1 5551 2>/dev/null >"/tmp/mnt/data/export/$2"
3) define a script service like this: 4) generated file can be found on PC network share in export folder