Emoncms Graph module developments

Im loving the new graphing module but am having great fun and games finding my feeds (probably my fault for the way im using it) they are all in a long list as the should be but due to the way i have named feeds using the Tags to separate them i have 6 feeds called L1 Irms 6feeds called L2 Rms etc.

Is there any way it could be implemented as in feeds tht if you set the tg it groups the feeds together. This way i would see server 1 followed by its measurements. then server 2 etc…

Thanks in Advance
Dafydd

Yep, this is also an issue on the android app

it would be really good to get the tags utilized across the whole project, otherwise it’s pointless using them at all if we have to include the tag within the feed name as well.

Glad to say the graph module does now group feeds by tag with the option to minimise and maximise tag groups.

The starting feed not being selected has also been fixed as well as the starting feed name and tag in the feed list.

2 Likes

Hi

I have just started to use graphs. The first one I set up has the feed tag unchecked and in graph setup it displays OK without the feed tag showing. However in my dashboard the same graph shows the feed tag in the legend.

Ian

Pulled in these changes at last, the collapsing menu of feeds is much much better :smile:

You are right, this is a known issue, I think it’s mentioned earlier in this thread somewhere, but worth a bump! .

These graphs are looking great, is there any way i can generate a URL to show just the graph ether as an image or simple page just showing the graph after i have saved the name. I use openhab2 dashboards and can insert an image or url in a window and would like to have my power and solar in that dashboard with other things.

thanks

shane

@Shane_Kuzmanic I’ve made a couple of small changes to the graph module so that its easier to find the graph id to use in the url. You can pull in the changes with an emonpi update.

You will then see the selected graph id displayed below the graph name:

The URL to view a graph is:

https://emoncms.org/graph/embed?graphid=3042

Thanks so much i will give it a go.

I have made a couple of changes to the emoncms graph module, partly for use in the up and coming updated feed list interface (see Forum topic: Development: Devices, Inputs and Feeds in emoncms ).
The work was done a while ago - only just had the chance to merge.

The new features include:

  • Ability to open the graph view with multiple feeds specified in the URL - this will be used by the new feed list interface where you can select multiple feeds from the feed list and then click on the graph icon.

  • Ability to view public feeds in the graph interface without login, for example to view the solar and wind feeds from the emoncms.org account recording data for our ukgrid visualisation, just list the feedid’s for the public feeds you wish to view in the URL: https://emoncms.org/graph/114934,67087. This can be particularly useful if you want to give public access to particular feeds and want to provide interested users with an interface from which the data can be explored including access to the basic graph module CSV export tool. Of course if the feed/feeds in question have not been made public they will not be available through the public graph view.

  • Improved responsive design for graph options and statistics view so that they are more usable on a mobile.

1 Like

Interesting stuff…

Just tried the publc urll on emoncms.org and deselected “wind” in the lefthand panel and couldn’t get it back after reselecting, neither in the left y-axix nor the right y-axis nor when both the left and right y-axix are selected at once (I don’t think that is supposed to happen)

What will happen if one feed is not public? will it fail or show those that are public?

[EDIT]

How difficult would it be to have the graph module open publicly with all public feeds available (but unselected) in the lefthand panel if the userid is defined in the url?

eg Emoncms - user login

Also could it be made possible to define the second axis feeds

eg Emoncms - user login

or combined

eg Emoncms - user login

would list all public feeds for user 10125 with feeds 114934 & 67087 pre-selected for the left scale and 12345 & 67890 pre-selected for the right scale.

Please also take a look at the Indicating left or right x-axis in the graph legends thread, it would be real useful to colour code the left and right scales along with the legend text to indicate which scale each legend entry is using.

Plus, While we’re at it, is it possible to maybe make the LH panel hideable like the apps list?

Thanks for spotting Paul, fixed the feed toggle issue.

What will happen if one feed is not public? will it fail or show those that are public?

It shows the public ones and ignores the non-public or not existent feed.

I will have a quick look at your other ideas now while Im at it.

Great.

The main one would be the “all public feeds for user”, I specifically need to give multiple users access to do data queries without allowing them write access, we have many interested parties wanting to search the data and I cannot take a chance on giving everyone the username and password, so currently those users are restricted to using api calls only. The GUI would be very useful and save me having to produce something similar.

If you don’t have the time, please just point me to where I might be able to make the changes, I don’t mind doing it, it might just take a while though.

The main one would be the “all public feeds for user”

Luckily not too hard: Emoncms - user login

Fantastic! I just tried Emoncms - graph too, which works well, thanks.

What are your thought on the other “handed” feedids? No rush for implementation. I was just wondering about committing to a api structure that might not leave room for it to be added.

Making the LH panel hideable might also fix the hover over boxes being obscured sometimes

Thought I might as well have a go while this is still fresh and again luckily easy to add:

https://emoncms.org/graph?feedidsLH=114934&feedidsRH=67087

You can now either use the short hand:

https://emoncms.org/graph/114934,67087

or for the same result:

https://emoncms.org/graph?feedidsLH=114934,67087

It should be possible to provide the option for the left hand menu and I will have a look at the linked thread above.

Brilliant!

Just tested with Emoncms - graph and got the full list of public feeds with a single feed selected on each the left and right scales, perfect.

Tomorrow I will try and get https://emoncms.org/username/graph working, would I be right in thinking I just need to put an extra catch in the public dashboard by user section of index.php so it catches graph before looking for a dashboard called “graph” ?

The above features are specific to the full graph view rather than the embeded version of saved graphs, so I dont think https://emoncms.org/username/graph will work? is that what you mean?

Edit: Actually I think I know what you mean, yes if you can redirect to the graph view here emoncms/index.php at master · emoncms/emoncms · GitHub that should be possible, good idea!

No, I already have some dashboards set up as https://emoncms/username/dashA and https://emoncms/username/dashB etc, I just wanted to tell users to look at the “graph” page rather than DashA or DashB etc (KISS).

So I want to catch https://emoncms/username/graph as a special case and point it to https://emoncms/graph?userid=1234, where the userid is derived from the username in the same way the dashboard list is.

[edit] yes I think you got it with your edit, that’s where I meant.