GithubHelp home page GithubHelp logo

freifunkbremen / meshviewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ffrgb/meshviewer

1.0 1.0 1.0 3.34 MB

Meshviewer with Grunt v1, formatted code, updated bower components, nodes.json state version (see yanic)

Home Page: https://map.bremen.freifunk.net

License: GNU Affero General Public License v3.0

JavaScript 79.47% HTML 1.66% SCSS 18.88%
freifunk map meshviewer respondd

meshviewer's People

Contributors

anoymouserver avatar blocktrron avatar codefetch avatar dependabot[bot] avatar dereulenspiegel avatar do9xe avatar dzzinstant avatar eberhab avatar flokli avatar genofire avatar hairice avatar herbetom avatar jplitza avatar kaechele avatar kokel avatar lemonnguyen avatar little-ben avatar mar-v-in avatar moorviper avatar mwarning avatar nonchip avatar oakey-dev avatar ohrensessel avatar oliver avatar rittmeier avatar rubo77 avatar simjost avatar smoe avatar xf- avatar yayachiken avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

oliver

meshviewer's Issues

[BUG] links don't disappear when filtering nodes

Expected Behavior

When one or both nodes from a link have been filtered either by the nodes or the statistics I would expect the link to disappear as well.

Current Behavior

In Bremen the links don't disappear when one or both nodes have been filtered which makes for a very weird picture when most nodes have been hidden.
Only applies to the Bremen setup. Regensburg is not affected.

Steps to Reproduce (for bugs)

  1. open map
  2. go to statistics tab or use the node filter
  3. apply a filter which only affects one side/node of a link AND not the links itself (online/offline)
  4. watch buggy magic

add statistics.clients_by_type to remain compatible with existing nodes.json format

The FFHB Meshviewer currently reads data from nodes.json from statistics.clients.wifi24 element etc. to display the client types in more detail. However, this breaks other consumers of the nodes.json file; for example http://freifunk-karte.de expects statistics.clients to be an integer. There might be other consumers which cannot cope with this modified nodes.json either (eg. https://play.google.com/store/apps/details?id=de.appwerft.freifunker).

To solve this, I suggest that the Meshviewer first tries to read these per-type details from a different element, for example from statistics.clients_by_type.wifi24 etc.
Then the nodes.json could be generated to contain a the total number of clients in statistics.clients and the details below statistics.clients_by_type. The file would then remain compatible at least with freifunk-karte.de.

This would of course also require changes in the nodes.json generator process (yanic?).

Also, with this change the Meshviewer would be able to support the FFHB nodes.json and the FFRGB nodes.json; so I guess the code could be upstreamed then.

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.