aboutsummaryrefslogtreecommitdiff
path: root/rrd/management/commands/listen_mqtt.py
blob: 3f0ff4e44ed03dd10c2dade472afe74865537c95 (plain)
1
2
3
4
5
6
7
8
9
10
11
from django.core.management.base import BaseCommand

import rrd.mqtt


class Command(BaseCommand):
    help = "Listen to mqtt events and update rrd files and graphs"

    def handle(self, *args, **kw):
        mqtt_client = rrd.mqtt.MQTTClient()
        mqtt_client.loop_forever()