blynk-web-client icon indicating copy to clipboard operation
blynk-web-client copied to clipboard

SuperChart data stopped being shown

Open Gun-neR opened this issue 6 years ago • 18 comments

Somewhere in the last day or so, I noticed that Superchart stopped showing any data.

Went from this...

image

To this...

image

Gun-neR avatar Feb 07 '19 05:02 Gun-neR

@Gun-neR can you send console errors when you open this chart? If you using Chrome - you have to press F12, then open "Console" and copy or printscreen red messages and paste it here Like that image Thank you

avin avatar Feb 07 '19 06:02 avin

Not sure is this is posted on GitHub, so I blocked my email...

[image: image.png]

On Wed, Feb 6, 2019 at 10:37 PM Avin Grape [email protected] wrote:

@Gun-neR https://github.com/Gun-neR can you send console errors when you open this chart? If you using Chrome - you have to press F12, then open "Console" and copy or printscreen red messages and paste it here Like that [image: image] https://user-images.githubusercontent.com/36100/52394640-fc339280-2abb-11e9-981d-cfe454bd8b24.png Thank you

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/avin/blynk-web-client/issues/5#issuecomment-461304325, or mute the thread https://github.com/notifications/unsubscribe-auth/Aa3U0SpigxIu3pNxIg53OMYpMKJ9F__6ks5vK8nAgaJpZM4amoIx .

Gun-neR avatar Feb 07 '19 06:02 Gun-neR

@Gun-neR can you check charts rendering one more time?

avin avatar Feb 12 '19 14:02 avin

Data streams are showing again, but colour and formatting are off.

Mine are actually split horizontally in quarters

image

Gun-neR avatar Feb 12 '19 22:02 Gun-neR

@avin Cool project! I didn't want to report an issue as this client seems to still be in development stage but I'll comment on this thread. Let me know if you'd like a separate bug report instead.

I tried this quickly and noticed two things with the SuperChart:

  1. Graph height setting did not work. So for example two graphs A (height set to 0, 50) and B (height set to 50, 100) are drawn on the same Y-axis instead of each taking 50% of the height.
  2. Gradient colors did not work (red-green or blue-red) are drawn with grey color

The color issue seemed to affect all the widgets.

I would suggest updating the documentation to list (in a table for example) which features of each widget you consider being complete. Now when the documentation says "ready widgets" it gives the impression the listed widgets should be complete. It seems unfair to report a bug about the "broken" features if they aren't yet even implemented. I think it would make more sense at this point for people to submit feature requests instead of creating bug reports. :)

ristomatti avatar Feb 12 '19 22:02 ristomatti

Sorry guys, gradient colors and custom chart scales do not released yet. I'll notice you when these features will be ready. @Gun-neR can you share your charts screenshots in original blynk mobile client? @ristomatti good idea about dev progress list :)

avin avatar Feb 13 '19 06:02 avin

The bottom chart is showing the last month... that option is not availed in the Web App yet.

image

Gun-neR avatar Feb 13 '19 06:02 Gun-neR

@Gun-neR Wow! I didn't know that it was possible))) I'll try to implement this cool feature

avin avatar Feb 13 '19 06:02 avin

http://docs.blynk.cc/#widgets-displays-superchart

Under the heading % of Height

I have my 4 feeds set to 0-23, 25-49, 51-74, 76-100 - This also give a bit of space (1%) between each.

Gun-neR avatar Feb 13 '19 06:02 Gun-neR

Added gradients and custom scale height. Now it should be more similar to original charts

avin avatar Feb 13 '19 14:02 avin

@avin The gradient color on SuperChart has improved a lot from the plain grey, nice! But the height %'s don't seem to work for me. Unfortunately there's a bunch of other issues also...

From below screenshots (both are set to the same time ranges):

  • CO2 graph doesn't seem to correspond the one drawn by Blynk at all. One specific thing to notice is that for the CO2 values I have configured SuperChart to not connect missing data points. On Blynk these show as missing sections on the chart but those are not visible on the Web Client.
  • Small particle graph still has all values on top of each other.
  • Small particle graph does not correspond. One reason is that the sensor has stopped reporting 2 days ago but the Web Client seems to draw the graph based on the values sent from the server, not scaled to the time frame. I've configured the SuperChart to connect missing data points for this data.
  • Light graphs are also on top of each other.

Blynk:

image

Web Client:

image

Also unrelated to SuperChart - the gradient colors can also be applied to other widgets. For example I have labeled widgets which change color based on the set value range. These show up as grey still.

P.S. Hats off to you for attempting this. When I read that Blynk is not going to offer the upcoming web client for local server users, I was thinking about creating my own client for the purpose. Now when checking your code, and seeing these issues, I've now realized what a mountain of work it is to get something like this done. It might also be why it's taking Blynk themselves so long to get it up and running. :sweat:

ristomatti avatar Feb 13 '19 21:02 ristomatti

@ristomatti can you share with me your project scheme to analize it. You can get it using url like this http://my-blynk-server.com:8080/e9bf0d151123431797c123c8ff138aa7/project http://SERVER:PORT/TOKEN/project post it on https://gist.github.com/ or email me [email protected] Thank you!

avin avatar Feb 14 '19 06:02 avin

@avin I'll see if I can make a clone, cleanup a bit and then share that. I'm somewhat busy for a couple of days but I'll try to do it ASAP. Just ping me next week if I forget!

ristomatti avatar Feb 14 '19 15:02 ristomatti

@avin Sent by email.

ristomatti avatar Feb 14 '19 17:02 ristomatti

@ristomatti, mail received, thank you very much!

avin avatar Feb 14 '19 18:02 avin

made some improvements of scales and gradients

avin avatar Feb 17 '19 11:02 avin

Looking much better...

image

Gun-neR avatar Feb 17 '19 11:02 Gun-neR

@avin Looks much better! Now the missing sections are drawn as empty space :+1:, height settings seem to work :+1: and the graphs seem to match good enough :+1:. I also see the gradient colors have in some way been introduced also on the labeled value widgets but all the gradient values are displayed as green:

image

Temperature should be from green to red and from humidity green to dark blue. The gradient between the colors should be mapped based on the ranges set on the chart (and labeled values similarly):

image

ristomatti avatar Feb 17 '19 20:02 ristomatti