How to store weather data files on SMB share?

This section covers the Meteobridge PRO units exclusively

Moderator: Mattk

Post Reply
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5284
Joined: Mon Oct 01, 2007 10:51 pm

How to store weather data files on SMB share?

Post by admin » 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:

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"
2) put a script "gen.sh" into scripts folder on Meteobridge PC network share.

3) define a script service like this:
Screen Shot 2018-04-08 at 16.01.28.png
Screen Shot 2018-04-08 at 16.01.28.png (30.49 KiB) Viewed 152 times
4) generated file can be found on PC network share in export folder

Post Reply