comparison service/mqtt_graph_bridge/mqtt_graph_bridge.py @ 1400:31aed1a0af9c

adjust kitchen PWM freqs. add comments and proposed contents of n3 configs Ignore-this: 8fc4659c1d8830e1ed66b0702b1e69fd darcs-hash:026328acb60195c0d4410ce1cc583ac120d1c6a3
author drewp <drewp@bigasterisk.com>
date Sat, 13 Jul 2019 19:58:50 -0700
parents 928b1833de0f
children 925bc4137c93
comparison
equal deleted inserted replaced
1399:5e8f1fcfbc79 1400:31aed1a0af9c
1 """
2 We get output statements that are like light9's deviceAttrs (:dev1 :color "#ff0000"),
3 convert those to outputAttrs (:dev1 :red 255; :green 0; :blue 0) and post them to mqtt.
4
5 This is like light9/bin/collector.
6 """
1 import json 7 import json
2 8
3 from docopt import docopt 9 from docopt import docopt
4 from rdflib import Namespace, URIRef, Literal, Graph 10 from rdflib import Namespace, URIRef, Literal, Graph
5 from rdflib.parser import StringInputSource 11 from rdflib.parser import StringInputSource