view service/rdf_from_mqtt/tasks.py @ 1519:c7217cf1cfc1

add rdf_from_mqtt, though at the moment the graph urls may not be in sync and the reqs have just been updated Ignore-this: 11b16f06340adc7228930f3774323d1a darcs-hash:a247b60725d7617a4712d6b8e914531020e82f80
author drewp <drewp@bigasterisk.com>
date Tue, 04 Feb 2020 23:33:21 -0800
parents
children
line wrap: on
line source

from invoke import task, Collection

import sys
sys.path.append('/my/proj/release')
from serv_tasks import serv_tasks

ns = Collection()
serv_tasks(ns, 'serv.n3', 'rdf_from_mqtt')

@ns.add_task
@task
def tail_mqtt(ctx):
    internal_mqtt_port = 10010
    ctx.run(f'mosquitto_sub -h bang -p 1883 -d -v -t \#')