OH: 3.1
InfluxDB: 1.8.6
Rpi: Raspberry Pi 3 B+ (B Plus) with 1.4 GHz 64-bit Quad-Core Processor, 1 GB RAM
I’ve followed the steps in the setup guide found at: InfluxDB+Grafana persistence and graphing
I’m getting a log error stating that InfluxDB cannot write to my database:
and
My files appear to all be the same as the influxdb/grafana as those in the set up guide (and the sine wave example from the guide does write data to my database and display in Grafana):
openhab/services/influxdb.cfg
url=http://10.0.0.3:8086
user=openhab
password=password123
db=openhab
retentionPolicy=autogen
openhab/persistence/influxdb.persist
Strategies {
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
// if no strategy is specified for an Item entry below, the default list will be used
default = everyChange
}
Items {
pulseOx_wellue_bloodOx : strategy = everyChange, restoreOnStartup
pulseOx_wellue_pulseRate : strategy = everyChange, restoreOnStartup
* : strategy = everyUpdate, restoreOnStartup
}
I’m using a transformation for each item (both are essentially the same):
openhab/transform/pulseOx-wellue-bloodOx.js
(function(i){
var newStr = i;
var compStr = newStr.substring(0,8);
if (compStr == "FE0A5500") {
var retVal = newStr.substring(10,12);
retVal = parseInt(retVal,16);
return retVal;
}
})(input)
Here is one of my item files:
openhab/items/pulseOx_wellue_oxygenLevel.items
Number pulseOx_wellue_bloodOx "Wellue Blood Oxygen" {influxdb="bloodOxWellue", channel="bluetooth:generic:hci0:pulseOxWellue:service-0xFFE0-char-0xFFE4" [profile="transform:JS", function="pulseOx-wellue-bloodOx.js"]}
Has anyone run into this problem? Can anyone point me to a solution?
I have read through the following topics - sadly, have not helped me find a solution:
- [SOLVED] OpenHab InfluxDB data is not persisting - #8 by sihui
- Persistence with InfluxDB not storing data?
- [SOLVED] Influxdb persistence does not save constant values every Minute
- Data problem in InfluxDB - #5 by stefanoferrario
thanks!