Giter VIP home page Giter VIP logo

Comments (6)

tcatm avatar tcatm commented on July 17, 2024
  1. This is by design. The idea was to make the meshviewer API independent from the node's data structures. If anything, a redesign should make it match the NetJSON format (once it's finalized). From what I've gathered, NetJSON might not yet be suitable for meshviewer.

  2. This is also by design. It does not suffice to use the node id directly as the links do only refer to nodes within the nodes list from graph.json. This node list does refer to node ids. There may be nodes within the graph that do not have a corresponding node id (e.g. nodes seen via weak wifi links).

from meshviewer.

genofire avatar genofire commented on July 17, 2024

I should make two issues:

  1. okay i got it. (a change to show the different clients would be accepted? ) -> closed

  2. I does not understand:
    I have not seen any code, where the node id would not be in a answer.
    Okay the mac could be different as the node id in a answer, but the had to replace by the node id.

from meshviewer.

tcatm avatar tcatm commented on July 17, 2024

Have a look at this: https://github.com/ffnord/meshviewer/blob/master/lib/main.js#L33

from meshviewer.

genofire avatar genofire commented on July 17, 2024

This is no answer :(
I know how you make it to manage your json tree ^^
Sorry that i am wasting your time.

i have make it for testing, maybe you could just look :D
https://github.com/FreifunkBremen/meshviewer/blob/JSONv2/lib/main.js#L45

from meshviewer.

tcatm avatar tcatm commented on July 17, 2024

I see. Well, I think it's best to keep the format as is for maximum compatibility until we can be sure that for each node within the graph a nodeinfo object is present.

from meshviewer.

genofire avatar genofire commented on July 17, 2024

okay that is a answer.
Not beautiful but acceptable.

from meshviewer.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.