MC100
Mobile programmable gateway
MC Technologies GmbH, Kabelkamp 2, 30179 Hannover, Germany
Tel: +49511 67 69 99-0, Fax: +49511 67 69 99-150, Website & Shop: www.mc-technologies.net, Email: [email protected]
45
Exported Flow from Node RED for example:
root@MC100: ~#
mcwmbus -u http://localhost:1880/wmbus -c -C json
13.8 Combine data for 1h, 6h, 1day and send via FTP/SCP
Collect messages for the whole day as interpreted json, but only send messages from
manufacturer SEO to a server at the end of the day in a zip file.
while true;
do
mcwmbus -F json -f "wmbus_messages/%M.json" &
sleep 86400 # = 60*60*24 = 24 hours
killall mcwmbus
zip SEO.zip wmbus_messages/4caf.json
scp SEO.zip 192.168.1.1:/data/SEO-`date "+%Y-%m-%d"`.zip
rm SEO.zip
done