datayours -> grafana

AK,

Not sure if it’s from your side… but since a couple of days I’m having issue with my gragh from grafana with the data from openLuup.

I checked my grafana (it’s using latest version), I can see my data source (series), but no data at all. So graph are completely empty…

Hi @DesT

Well, I hope not, but have you updated something in your system recently?

I use DataYours / Grafana constantly. It’s THE place to go first for viewing both environmental and system parameters. I have six machines (3 Veras, two openLuup, one iMac) feeding it data. Running a mix of older and brand new openLuup system versions. For me, it’s working.

Sounds like I need some more information from the logs:

[ul][li]If you’re running the latest openLuup, then a snap of the console > Servers > HTTP window might help[/li]
[li]both a system startup log and part of the main log showing some variable changes which should be logged by the system.[/li]
[li]the configuration pages shown by DataWhisper and DataCache, accessible from links on the DataYours control panel[/li][/ul]

also:

[ul][li]How are you selecting the variables to save? …[/li]
[li]… using DataYours stand-alone, or using it as an AltUI Data Storage Provider?[/li]
[li]look at the date/time on the Whisper database files, are they changing?[/li][/ul]

This should be a start! … but back to the first question: what have you changed recently?

AK,

Really changed nothing except doing a linux update and as often, grafana updated too!

[code]HTTP Web Server, Fri May 4 20:38:12 2018

Received connections:
IP address #connects date time

 10.99.99.41                          916   2018-05-04 20:33:15  
 10.99.99.42                          694   2018-05-04 20:37:57  
 10.99.99.44                         2747   2018-05-04 20:37:49  
 172.30.30.87                          20   2018-05-04 14:43:45  
 172.18.18.11                         395   2018-05-04 20:29:29  
 10.99.99.43                          676   2018-05-04 20:37:19  
 10.99.99.20                        12456   2018-05-04 20:38:12  

/data_request?
id=… #requests status
action 5016 200
lr_ALTUI_Handler 17 200
lr_DataCache 1 200
lr_DataGraph 1 200
lr_DataWatcher 1 200
lr_DataWatcherRelay 6299 200
lu_action 2 200
lu_status2 5664 200
sdata 4 200
user_data 538 200
variableget 6273 200

CGI requests
URL #requests status
/console 4 200
/metrics/find 17 200
/metrics/index.json 1 200

File requests
filename #requests status
D_ALTUI.xml 6 200
D_AltAppStore.xml 6 200
D_BinaryLight1.xml 6 200
D_BinarySprinkler1_UI7.xml 6 200
D_BluetoothNetwork.xml 6 200
D_DSCAlarmPanel1.xml 6 200
D_DSCAlarmPartition2.xml 6 200
D_DataYours.xml 6 200
D_DayTime.xml 6 200
D_DeusExMachinaII1.xml 6 200
D_DimmableLight1.xml 6 200
D_DoorSensor1.xml 6 200
D_GenericIO1.xml 6 200
D_GenericSensor1.xml 6 200
D_HVAC_ZoneThermostat1.xml 6 200
D_HouseModes.xml 6 200
D_HumiditySensor1.xml 6 200
D_LightSensor1.xml 6 200
D_MString.xml 6 200
D_MSwitch.xml 6 200
D_MotionSensor1.xml 6 200
D_MyQGarageDoor1.xml 6 200
D_MyQGateway.xml 6 200
D_OpenSprinkler1.xml 6 200
D_PingSensor.xml 6 200
D_PowerMeter1.xml 6 200
D_PresenceSensor.xml 6 200
D_RulesEngine1.xml 6 200
D_SceneController1.xml 6 200
D_SceneControllerLED1.xml 6 200
D_SmartSwitch1.xml 6 200
D_SmartSwitchController1.xml 6 200
D_SmokeSensor1.xml 6 200
D_SmtpNotification.xml 6 200
D_Sonos1.xml 6 200
D_SysMon.xml 6 200
D_TemperatureSensor1.xml 6 200
D_VMotion.xml 6 200
D_VSwitch.xml 6 200
D_VeraBridge.xml 6 200
D_VeraConnectWWN1.xml 6 200
D_VeraConnectWWNDeauth1.xml 6 200
D_VeraConnectWWNStructure1.xml 6 200
D_WPSwitch1.xml 6 200
D_ZWaveNetwork.xml 6 200
D_ZWay.xml 6 200
D_ZigbeeNetwork.xml 6 200
D_openLuup.xml 6 200
D_openWeather.xml 6 200
J_ALTUI_RulesEngine1.js 5 200
J_ALTUI_api.js 5 200
J_ALTUI_iphone.js 5 200
J_ALTUI_jquery.ui.touch-punch.min.js 6 200
J_ALTUI_loc_fr.js 3 200
J_ALTUI_multibox.js 6 200
J_ALTUI_plugins.js 6 200
J_ALTUI_uimgr.js 6 200
J_ALTUI_upnp.js 5 200
J_ALTUI_utils.js 5 200
J_ALTUI_verabox.js 6 200
J_DeusExMachinaII1_ALTUI.js 5 200
J_PresenceSensor_ALTUI.js 5 200
J_SmartSwitch1.js 5 200
J_SmartSwitchController1.js 5 200
css/bootstrap.css 20 200
css/sarah.png 5 200
favicon.ico 2 200
icons/DayTime_0.png 1 200
icons/DayTime_100.png 1 200
icons/Door_Lock_0.png 3 200
icons/Door_Lock_100.png 3 200
icons/MString.png 2 200
icons/PresenceSensor_0.png 1 200
icons/PresenceSensor_100.png 1 200
icons/SceneController.png 1 200
icons/Sonos_0.png 2 200
icons/Sonos_100.png 1 200
icons/Sonos_125.png 1 200
icons/Sonos_150.png 1 200
icons/Sonos_25.png 1 200
icons/Sonos_50.png 1 200
icons/Sonos_75.png 1 200
icons/SysMon.png 2 200
icons/binary_light_off.png 2 200
icons/binary_light_on.png 2 200
icons/button_home_selected.png 1 200
icons/button_night_selected.png 1 404
icons/co_sensor_tripped.png 1 200
icons/co_sensor_untripped.png 2 200
icons/dimmable_light_10.png 1 200
icons/dimmable_light_100.png 1 200
icons/dimmable_light_off.png 2 200
icons/door_lock_locked.png 1 200
icons/door_window_untripped.png 1 200
icons/garage_door_closed.png 1 200
icons/humidity_sensor_default.png 3 200
icons/iconVSwitch_0.png 2 200
icons/light_sensor_default.png 1 200
icons/meter_default.png 3 200
icons/motion_sensor_tripped.png 1 200
icons/motion_sensor_untripped.png 1 200
icons/scene_controller_default.png 2 200
icons/smoke_sensor_untripped.png 1 200
icons/temperature_sensor_default.png 2 200
icons/thermostat_mode_heating.png 1 200
icons/uv_sensor_default.png 1 200
index.html 2 200
[/code]

[code]DataWatcher CONFIGURATION at Fri May 4 20:38:52 2018

DAEMON = {
VERSION = “2016.10.10”,
client = “DataWatcher”,
destinations = {“127.0.0.1:2003”},
errors = {count = 0},
http = {received = 2},
ip = “10.99.99.21”,
start_time = “Thu May 3 21:49:01 2018”,
udp = {
last_received = {},
last_sent = {[“127.0.0.1:2003:inet”] = “HomeEnergyMonitor.summary.Amps.m 99.118 1525480685”},
received = 0,
sent = 6299
}
}

DATAWATCHER = {
VERSION = “2017.09.18”,
live_energy_usage = {},
memory_stats = {},
tally = {
HTTP_relayed = {
[“HomeEnergyMonitor.summary.Amps.m”] = 1367,
[“HomeEnergyMonitor.summary.KWH.m”] = 1362,
[“HomeEnergyMonitor.summary.Volts.m”] = 1370,
[“HomeEnergyMonitor.summary.Watts.m”] = 799,
[“NEST.Humidity.current.m”] = 2,
[“NEST.Temperature.current.m”] = 22,
[“Weather.humidity.m”] = 19,
[“Weather.temperature.m”] = 40,
[“Zone0.humidity.m”] = 18,
[“Zone0.temperature.m”] = 27,
[“Zone12.temperature.m”] = 2,
[“Zone16.humidity.m”] = 15,
[“Zone16.temperature.m”] = 28,
[“Zone26.temperature.m”] = 1,
[“Zone27.humidity.m”] = 15,
[“Zone27.temperature.m”] = 25,
[“Zone3.temperature.m”] = 1,
[“Zone32.humidity.m”] = 16,
[“Zone32.temperature.m”] = 29,
[“ZoneP.humidity.m”] = 27,
[“ZoneP.temperature.m”] = 30,
[“openLuup.cpu.m”] = 273,
[“openLuup.memory.m”] = 273,
[“veraPlus.cpu.m”] = 264,
[“veraPlus.memory.m”] = 274
},
UDP_relayed = {},
watched = {}
},
translations = {}
}

[cache] = {
LOCAL_DATA_DIR = “whisper/”,
UDP_RECEIVER_PORT = “2003”
}

[dash] = {
DATAMINE_DIR = “”,
ICON_PATH = “/cmh/skins/default/img/devices/device_states/”,
LOCAL_DATA_DIR = “whisper/”,
VERAS = “”
}

[graph] = {
DATAMINE_DIR = “”,
LOCAL_DATA_DIR = “whisper/”
}

[mine] = {DATAMINE_DIR = “”}

[relay] = {
DESTINATIONS = “127.0.0.1:2003”,
LINE_RECEIVER_PORT = “”,
LIVE_ENERGY_USAGE = “”,
MEMORY_STATS = “”,
SYSLOG = “”
}[/code]

[code]DataCache CONFIGURATION at Fri May 4 20:39:10 2018

DAEMON = {
VERSION = “2016.10.10”,
client = “DataCache”,
destinations = {},
errors = {count = 0},
http = {received = 2},
ip = “10.99.99.21”,
start_time = “Thu May 3 21:49:01 2018”,
udp = {
last_received = {[“127.0.0.1:2003”] = “HomeEnergyMonitor.summary.Amps.m 53.512 1525480745”},
last_sent = {},
received = 6303,
sent = 0
}
}

DATACACHE = {
VERSION = “2016.10.04”,
rules = {rewrites = {}},
stats = {
cpu = 0.029,
updates = 6303
},
tally = {
[“HomeEnergyMonitor.summary.Amps.m”] = 1368,
[“HomeEnergyMonitor.summary.KWH.m”] = 1363,
[“HomeEnergyMonitor.summary.Volts.m”] = 1371,
[“HomeEnergyMonitor.summary.Watts.m”] = 800,
[“NEST.Humidity.current.m”] = 2,
[“NEST.Temperature.current.m”] = 22,
[“Weather.humidity.m”] = 19,
[“Weather.temperature.m”] = 40,
[“Zone0.humidity.m”] = 18,
[“Zone0.temperature.m”] = 27,
[“Zone12.temperature.m”] = 2,
[“Zone16.humidity.m”] = 15,
[“Zone16.temperature.m”] = 28,
[“Zone26.temperature.m”] = 1,
[“Zone27.humidity.m”] = 15,
[“Zone27.temperature.m”] = 25,
[“Zone3.temperature.m”] = 1,
[“Zone32.humidity.m”] = 16,
[“Zone32.temperature.m”] = 29,
[“ZoneP.humidity.m”] = 27,
[“ZoneP.temperature.m”] = 30,
n = 25,
[“openLuup.cpu.m”] = 273,
[“openLuup.memory.m”] = 273,
[“veraPlus.cpu.m”] = 264,
[“veraPlus.memory.m”] = 274
},
whisper = “whisper/”
}

[cache] = {
LOCAL_DATA_DIR = “whisper/”,
UDP_RECEIVER_PORT = “2003”
}

[dash] = {
DATAMINE_DIR = “”,
ICON_PATH = “/cmh/skins/default/img/devices/device_states/”,
LOCAL_DATA_DIR = “whisper/”,
VERAS = “”
}

[graph] = {
DATAMINE_DIR = “”,
LOCAL_DATA_DIR = “whisper/”
}

[mine] = {DATAMINE_DIR = “”}

[relay] = {
DESTINATIONS = “127.0.0.1:2003”,
LINE_RECEIVER_PORT = “”,
LIVE_ENERGY_USAGE = “”,
MEMORY_STATS = “”,
SYSLOG = “”
}[/code]

Not sure about the question of "using datayours stand alone or using it as Altui? I installed a while ago datayours and the graphite cgi plugin and I select my datasource in Grafana. This setup works 100% until this week…

[SOLVED]

The problem, don’t know why now, come from the datasource in Grafana.

I configured openLuup as “BROWSER” instead of “SERVER”.

it works like a charm before but stop working since probably the last update of grafana.

Anyway, it works perfectly now with datasource set as SERVER :wink: