linux-dash
linux-dash copied to clipboard
no data display
My system is cent os 7. I use "python index.py --port 900" to start the service.But there is no data display on the web UI.
Having the same issue with debian 9 lite. I've changed the default port to 81 just to try and see the data, but everything is empty
It's not a port issue - problem in format of JSON data, which comes to frontend. Correct JSON data is like
[{"foo": "bar"}]
but now a Dash module return something like
[{\"foo\": \"bar\"}]
So JSON parser on front cant "read" data like that and nothing can be displayed. (And you can get some errors aout it in developer sonsole of your browser)
As an ad hoc solution you can simple rewrite function "_parseAndPrint" in app/server/linux_json_api.sh to
_parseAndPrint() {
while read data; do
echo -n "$data"
done;
}
Why this function needed existed escaping - IDK. But it's added by Author (at 37419dc6ff058a90760fbb89be218b7b71adc861), so may be it's realy needed (and it's why i dont send PR with it). But, after function edit all charts on my Dash started display data fine.
And also https://github.com/afaqurk/linux-dash/issues/453 about it