Data Yours - Configuration Page Problem

I have DataYours up and running and I am tracking a few variables. One lingering issue is on the Configuration page upper left, the icons do not display and the links do not work. The reason is the IP address in the image and link URLs is 127.0.0.1 which is not correct. For example: http://127.0.0.1:3480/data_request?id=lr_DataDash&page=config On the dashboard page all the links are fine. Again for example: http://192.168.1.116:3480/data_request?id=lr_dashboard&height=300&page=whisper

I’m running openLuup on Linux w/ ALTUI and bridging to a single VeraPlus

I’ve been poking around in the lua files for DataYours but I’m not finding anything yet. I did have to manually copy the icon files from github. If I tunnel port 3480 from my PC (localhost) to the server the icons and links work fine. But without the tunnel of course they don’t.

Any insights will be appreciated. Some additional info below. Thanks!!!

Alpine Linux: 3.7
Lua: 5.1
openLuup: 19.2.13
ALTUI: 2.46.2533
DataYours: 16.10.4

DAEMON = {
VERSION = “2016.10.10”,
client = “DataDash”,
destinations = {},
errors = {count = 0},
http = {received = 2},
ip = “127.0.0.1”,
start_time = “Thu Oct 10 10:35:11 2019”,
udp = {
last_received = {},
last_sent = {},
received = 0,
sent = 0
}
}

DATADASH = {
VERSION = “2016.01.04”,
whisper = “/etc/cmh-ludl/whisper/”
}

DEBUG = {}

[cache] = {
LOCAL_DATA_DIR = “/etc/cmh-ludl/whisper/”,
UDP_RECEIVER_PORT = “2003”
}

[dash] = {
DATAMINE_DIR = “”,
ICON_PATH = “/cmh/skins/default/img/devices/device_states/”,
LOCAL_DATA_DIR = “/etc/cmh-ludl/whisper/”,
VERAS = “192.168.1.116:3480”
}

[graph] = {
DATAMINE_DIR = “”,
LOCAL_DATA_DIR = “/etc/cmh-ludl/whisper/”
}

[mine] = {DATAMINE_DIR = “”}

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

2019-10-10 10:35:11.016 openLuup.scheduler:: [28] DataYours device startup
2019-10-10 10:35:11.016 luup_log:28: DataYours: starting…
2019-10-10 10:35:11.016 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.StartTime was: Thu Oct 10 10:27:28 2019 now: Thu Oct 10 10:35:11 2019 #hooks:0
2019-10-10 10:35:11.017 luup_log:28: DataYours: starting heartbeat
2019-10-10 10:35:11.020 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.AppMemoryUsed was: 15576 now: 16961 #hooks:0
2019-10-10 10:35:11.148 luup_log:28: DataYours: starting services
2019-10-10 10:35:11.148 luup_log:28: DataYours: service: Graph - L_DataGraph
2019-10-10 10:35:11.177 luup_log:28: DataYours: service: Cache - L_DataCache
2019-10-10 10:35:11.184 luup_log:28: DataYours: service: Dash - L_DataDash
2019-10-10 10:35:11.210 luup_log:28: DataYours: service: Watch - L_DataWatcher
2019-10-10 10:35:11.225 luup_log:28: DataYours: …startup complete
2019-10-10 10:35:11.226 openLuup.scheduler:: [28] DataYours device startup completed: status=true, msg=OK, name=DataYours
2019-10-10 10:35:11.552 luup_log:3: ALTUI: UPNPregisterDataProvider(3,datayours,http://127.0.0.1:3480/data_request?id=lr_DataWatcherRelay&target={0},[{
2019-10-10 10:35:11.553 luup.variable_set:: 3.urn:upnp-org:serviceId:altui1.DataStorageProviders was: {“Vera@192.168.1.31”:{“url”:"http://127.0.0.1:3480/data_request?id=lr_HTTP_VeraBridgeMirror_192.168.1.31","callback… now: {“datayours”:{“url”:“http://127.0.0.1:3480/data_request?id=lr_DataWatcherRelay&target={0}“,“callback”:”","parameter#hooks:0
2019-10-10 10:35:11.859 luup.variable_set:: 3.urn:upnp-org:serviceId:altui1.DataStorageProviders was: {“datayours”:{“url”:“http://127.0.0.1:3480/data_request?id=lr_DataWatcherRelay&target={0}“,“callback”:”","parameter… now: {“thingspeak”:{“url”:””,“callback”:“sendValueToStorage_thingspeak”,“parameters”:[{“type”:“number”,“key”:“channelid”… #hooks:0
2019-10-10 10:35:11.864 luup.variable_set:: 3.urn:upnp-org:serviceId:altui1.VariablesToSend was: urn:micasaverde-com:serviceId:HumiditySensor1#CurrentLevel#0-38#datayours#Vera-88800000.038.urn^micasaverde-com^ser… now: urn:micasaverde-com:serviceId:HumiditySensor1#CurrentLevel#0-38#datayours#Vera-88800000.038.urn^micasaverde-com^ser… #hooks:0
2019-10-10 10:40:11.495 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.AppMemoryUsed was: 16961 now: 8148 #hooks:0
2019-10-10 10:45:11.991 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.AppMemoryUsed was: 8148 now: 11560 #hooks:0
2019-10-10 10:50:12.169 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.AppMemoryUsed was: 11560 now: 17206 #hooks:0
tail: logs/LuaUPnP.log has been replaced; following end of new file
2019-10-10 10:55:12.620 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.AppMemoryUsed was: 17206 now: 8594 #hooks:0
2019-10-10 11:00:12.700 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.AppMemoryUsed was: 8594 now: 8205 #hooks:0
2019-10-10 11:05:13.166 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.AppMemoryUsed was: 8205 now: 13347 #hooks:0
2019-10-10 11:10:13.233 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.AppMemoryUsed was: 13347 now: 16413 #hooks:0
2019-10-10 11:15:13.283 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.AppMemoryUsed was: 16413 now: 10162 #hooks:0
2019-10-10 11:20:13.717 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.AppMemoryUsed was: 10162 now: 15927 #hooks:0
tail: logs/LuaUPnP.log has been replaced; following end of new file
2019-10-10 11:25:13.788 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.AppMemoryUsed was: 15927 now: 7765 #hooks:0
2019-10-10 11:30:13.972 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.AppMemoryUsed was: 7765 now: 14261 #hooks:0
2019-10-10 11:35:14.305 luup.variable_set:: 28.urn:akbooer-com:serviceId:DataYours1.AppMemoryUsed was: 14261 now: 14393 #hooks:0

One additional bit of info. The URLs for the icons are also missing the port number. For example:

http://127.0.0.1/cmh/skins/default/img/devices/device_states/DataWatcher.png

I actually had to tunnel both port 80 and 3480 to the sever to get the icons to display. I think I read in a post yesterday that prepending :3480 to the ICON_PATH value helps with this. But still with the loopback IP it won’t work.

OK, thanks for all the diagnostics.

TBH it is ages since I have run DataYours in all its glory, in particular the use of DataDash. My recommendation would certainly to be to use the Data Historian in openLuup instead. No plugin needed. All built-in. No configuration needed. It works independently of DataYours, so you could try it out in parallel.

To address some of your issues, though. The IP address 127.0.0.1 should certainly work, since it refers to the host machine on which the server is running.

As missing port number is clearly an issue, though. I’ll try to take a look.

AK

OK, taken a look…

Once upon a time, the URL for the icons worked on Vera. They may still work. Under openLuup, they definitely won’t, and this really reflects the fact that DataDash was never updated to run under openLuup. For me, though, although the icons are missing, the links still work. Must be something in your virtual environment which is different?

The other DataYours daemons (Watcher, Cache, Graph) should work fine, because I used to use them extensively, but relied on DataYours as a Data Storage Provider under AltUI and used the AltUI variable plot functionality.

I can fix this if absolutely necessary, but I’d strongly recommend installing Grafana for plotting data and using Data Historian.

No worries. I’ll figure it out eventually. I have a simple workaround with the ssh tunnels.

But I have to disagree that 127.0.0.1 should certainly work, at least in my case. If my browser was running on the same machine as the server yes it would work. But when the browser is on my PC, 127.0.0.1 refers to my own machine, not the server.

I’ll look at Data Historian. I was playing with DataYours only because it was there among the initial plugins.

I will venture a guess that your browser is on the same machine as your DataDash. In that case the 127.0.0.1 URLs will work fine.

As I mentioned in my other comments, my browser is on a separate machine. That’s what’s different. And no, fixing is not absolutely necessary. I’ll sort it out if I need to. But thanks for looking.

Ah, good point. That’s because I was running on my development machine.

Data Historian
image

Wish I had seen this before I started messing w/ Data Yours. LOL

1 Like

The underlying technology is the same, but the interface is so, so much different.

The openLuup console has fairly extensive Historian reporting, including a very basic plotting function, but Grafana is the way to go.

Indeed. I got the free hosted Grafana instance and was up with a chart of my 2 variables in a few minutes. Simply amazing.

So I can drop the DataYours plugin entirely? Cool.

I have another question for you but I’ll post it on the openLuup topic.

Thanks!! -dk

Yes, that’s what I’ve done, although I use the historian to plot some legacy DataYours files. I removed DataYours from the predefined plugins list for new installations a while ago, but you can delete it manually from the Plugins page.

Glad you like it.