view service/mqtt_to_rdf/conf/nightlight_ari.n3 @ 1697:88f6e9bf69d1

stats and non-debug mode speedups
author drewp@bigasterisk.com
date Tue, 28 Sep 2021 00:32:16 -0700
parents cdc76c84e3e2
children
line wrap: on
line source

@prefix : <http://projects.bigasterisk.com/room/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix fr: <http://bigasterisk.com/foaf/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


:nightlightAriTemperature a :MqttStatementSource;
  :mqttTopic ("nightlight_ari" "sensor" "temperature" "state");

  :parser xsd:double;
  :conversions (:celsiusToFarenheit
                [:ignoreValueBelow -999]);
  :graphStatements [
    :outputPredicate :temperatureF;  
    :statementLifetime "150s";
  # ], [
  #  :conversions ([:recentLow "30s"]);
  #  :outputPredicate :recentLowTemperatureF;
  ];
  
  :influxMeasurement [ # replaces this block in piNode configs
    :measurement "temperatureF";
    :predicate :temperatureF;
    :tag [:key "host"; :value "nightlight_ari"],
         [:key "location"; :value "ariRoom"]] .