Mercurial > code > home > repos > homeauto
comparison service/mqtt_graph_bridge/mqtt_graph_bridge.py @ 597:e1ee6661329a
adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
Ignore-this: 8fc4659c1d8830e1ed66b0702b1e69fd
author | drewp@bigasterisk.com |
---|---|
date | Sat, 13 Jul 2019 19:58:50 -0700 |
parents | b112da45e035 |
children | 925bc4137c93 |
comparison
equal
deleted
inserted
replaced
596:a56bc73d308c | 597:e1ee6661329a |
---|---|
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 |