Git Product home page Git Product logo

ffmap-d3's Introduction

ffmap-d3's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ffmap-d3's Issues

Identifyer for Routers without known hostname

If a router in the nodename has no Label, there should be shown something like identicons but not with images but with a unique word for each MAC-Adresses.
I.g. create an easy to remember alias for a mac address, that is unique and reverse lookupable, for example:

IP 123.456.789.132 will result in an alias for that IP, that is connected to an existing word from a wordlist, that is unique.

I posted that idea here too:
http://serverfault.com/questions/455984/mac-and-ip-adress-text-identicon-as-avatar

nodes vanish from geomap on zoom

Hi,

when nodes are too far from each other, no node will be displayed when zooming into any node.
reproduce by using this nodes.json and zoom into any node. No node will be displayed at all.

{
    "nodes": [
        {
            "clients": [],
            "name": "AAA",
            "flags": {
                "vpn": false,
                "legacy": false,
                "gateway": false,
                "online": true
            },
            "clientcount": 0,
            "geo": [
                "53.5795",
                "10.044981"
            ],
            "id": "ee:55:55:55:55:55",
            "firmware" : "v1"
        },
        {
            "clients": [],
            "name": "BBB",
            "flags": {
                "vpn": false,
                "legacy": false,
                "gateway": false,
                "online": true
            },
            "clientcount": 0,
            "geo": [
                "52.17466",
                "8.739857"
            ],
            "id": "ea:14:14:14:14:14",
            "firmware" : "v1"
        },
        {
            "clients": [],
            "name": "CCC",
            "flags": {
                "vpn": false,
                "legacy": false,
                "gateway": false,
                "online": true
            },
            "clientcount": 0,
            "geo": [
                "52.10466",
                "8.9857"
            ],
            "id": "ea:15:15:15:15:15",
            "firmware" : "v1"
        }
    ],
    "meta": {
        "timestamp": "2015-03-05T18:10:01"
    },
    "links": []
}

Tested using commit repository at 5e1f76a.

annoying self-nodes

In the raph nearly every node has a client, that isn't really attached to the node, in fact it is another network-interface, that only exists inside the node itself.

Those nodes are very irritating, cause they don't count to the attached devices.

either hide those nodes or display them in another color to mark them as internal interfaces

Show a better cursor when looking for coordinates

The default grabbing cursor does not allow to aim precislly to coordinates, I suggest a cursor typ like "default" or "crosshair".

Here is fix for this issue: (lib/geomap.js:29-36)

  d3.selectAll("#gpsbutton").on("click", function() {
    function clickhandler(e) {
      var latlng = e.latlng;
      map.getContainer().style.cursor = "";
      prompt("Koordinaten:", e.latlng.lat + " " + e.latlng.lng);
      map.off("click", clickhandler);
    }
    var clickevent = map.on('click', clickhandler);
    map.getContainer().style.cursor = "crosshair"; // or "default"
  })

added lines 4 and 8

Allumfassende Knotenliste

Die Knotenliste sollte alle verfügbaren Daten enthalten, also sowohl das was unter /list.html steht, als auch die Alfred-Daten aus /alfred/alfred.html . Zusätzlich könnten noch mehr nützliche Attribute eingeblendet werden wie etwa die Primäre MAC, etc. (s. hierzu auch http://freifunk.discovibration.de/ffhh/www/alfred.html). Das Feld Geokoordinaten ja sollte mit einer Verknüpfung zu den entsprechenden Koordinaten auf der Knotenkarte hinterlegt sein (wie im Graphen). Das würde ein ständiges zusammenklauben von benötigten Daten aus vielen Quellen ersparen.

Show units and scaling in caption

There are no units shon anywhere. It would be interesting, which units are shown in the graph.
also it would be interesting, what a thin line between two knots means and what a thik line means, and why are there sometimes two numbers on mousehover of the lines and sometimes only one, and what does the number represent?

add coordinates to url when click on coordinate button

If you kclick on the button to show the coords with the next click, those coods could be added to the url as well, so you directly get the link to that place to post it somewhere.

And there could be an input field instead of the alert, so you can easyer copy it to the clipboard

offline nodes in geomap not in red

Red is a signal color, more than blue, so the red offline nodes are the first thing, that hit the eye, when you look at the map. This is not very beneficial for the map, if a new user at first looks at all the nodes, that don't work. Better would be, if the visitor was overwhelmed of how much of the area is already covered.

So the color for the offline nodes should be grey or a lighter transparent blue

eine config datei zum editieren

das wäre sehr praktisch, inkl. Community-Name und so.. wahrscheinlich bräuchte man dann auch eine default-config (fuer die standard-werte) und eine spezielle, die jeder webserver dann hat,.

Die Uhr, Pacman und die Clients

Möchte man noch vor der ersten Anzeige die Clients ausschalten und klickt auf "Clients" so passiert erstmal nicht viel.
Später verschiebt eine Uhrzeit den Clients-Button, wonach der Klick aber nicht mit verschoben wird und dann oft auf dem Pacman landet, da man diesen nicht ausschalten kann, muss man erst wieder neu laden.

Mein Vorschlag zur Güte: Die Uhr schon von Anfang an anzeigen, nur soll sie halt noch nicht gestellt sein, also z.B. auf 00:00:00 stehen.

Zukunft dieses Projekts

Ich habe in letzten Wochen ein neues Frontend für ffmap-backend gebaut, das nun schon viele Funktionen von ffmap-d3 beherrscht und einige zusätzliche Features hat. Insbesondere zeigt es mehr Daten der Knoten an und funktioniert auf mobilen Geräten.
Auch die Codebasis ist aufgeräumter und Erweiterungen leichter möglich.

Daher würde ich das Projekt ffmap-d3 gerne beende und vielleicht sogar das Repository löschen (der Code ist wirklich nicht schön). Hat da jemand etwas gegen?

persist node positions in graph in cookie

Add a checkbox "Positionen merken" in the graph.

When checked, all positions of all nodes are regularely saved in a cookie for each node, so the next time you visit the page, all nodes re-appear at about the same position, as before.

show offline nodes with gluon firmware

There would be needed a kind of cache, that saves coordinates for all nodes, and when they were last seen. Those nodes that are offline should be shown in the map for some time, depending of the alltogether onlline time, this means, that nodes that were offline a lot should stay on the map some days, and nodes that were just seen for a few hours, should vanish on the map after some hours offline time already

Knoteninfos in allen Ansichten

Um die Knotenstatistik aufzurufen, muss man sich derzeit zum Knoten im Graph durchklicken, um dann die Grafik zu erhalten. Es wäre schön, wenn das auch von der Karten- und Listenansicht aus direkt möglich wäre:

  • der aktuelle Nutzungskontext ginge nicht verloren — vom Graph muss ich sonst an die entsprechende Stelle in der Karte zurücknavigieren
  • gerade ältere Rechner werden mit der Darstellung des Graphen stark gefordert. Der Nutzer sollte besser Möglichkeiten haben, diese Darstellung zu vermeiden.

Continental rift! - all coordinates are off

Was there a continental rift in Germany that moved the whole continent a few meters up north?

Since a month or so, most coordinates are a few meters off to the south of the position where they were before. Was there something changed on the underlying openstreetmaps?

Maybe we can fix this if we reallocate all coordinates that were entered before that change to some meters north

add license information

Thanks for your work!
I like to use ffmap-d3 for the freifunk community "Freifunk Franken". Could you please add license information to ffmap-d3 so we feel free to change the software to our needs.

Maybe MIT would be a good fit:

thx

initially size of the graph

if you open the graph often it doesent all fit on the screen.

I always change the gravity a bit so it all fits.

It would be nice, if the gravity initially adjusts, so the whole graph fits inside the browser-window

Connection count graph peaks at 71clients

Hi,
We at Freifunk Mainz use the ffmap. First a big thanks for this usefull piece of software. 👍

We have a event on a festival with a wifi-controller behind our Freifunk router, so there a a lot of clients behind a single node. The statistic panel in the ffmap has a peak value of 71clients (http://map.freifunk-mainz.de/nodes/647002cd7dec.png). The Wlan Controller Software shows a client count of above 100clients. So it seems, that there is some threshold for the client count. Is there any reason why the map can only show 71clients per node ? Or is the bug somewhere in between?
regards
Knirps

Verlinkbare Kartenausschnitte und sich dynamisch anpassende URL

Für Leaflet bereits implementiet in:
https://github.com/mlevans/leaflet-hash

Wenn man sich auf der Karte bewegt / zoomed wird die URL automatisch mit angepasst, sodass bei einem Refresh (F5, Strg+R) automatisch der Kartenausschnitt, den man vorher hatte, erhalten bleibt.

Das kollidiert zumindest mit der bisherigen Funktion wie aus dem Graph in die Karte verlinkt wird. Am besten denke ich dass man den vorhandenen Code dazu durch das Leaflet-Plugin ersetzen sollte, da so der Wartungsaufwand geringer wird.

Aber: Ist das mit dem single_page_app branch noch relevant?

Voreingestellte Position

Feature request: Momentan errechnet die Karte beim Laden anhand der vorhandenen Knotenkoordinaten die Position des Ausschnittes auf der Weltkarte sowie die Vergrößerung.
Das führt dazu, dass man bei jeder Betrachtung sehr stark vergrößern und die Karte an die richtige Position bewegen muss, wenn Knoten weit ausserhalb des Stadtgebietes eingetragen werden (was durchaus Gang und Gebe ist).
Es wäre toll, wenn man alternativ Koordinaten und ein Vergrößerungsstufe fest voreinstellen könnte. Prinzipiell müssten dazu wahrscheinlich nur an der Stelle im Code wo heute diese beiden Werte berechnet werden Konstanten eingetragen werden.

map uses too much CPU on low-end computers

There is needed a functionality to put the map on a low-framerate.
once the map is all shifted into position and not much changes, the framerate should go down to 2fps ur such.

on most computers with not such a good graphics card, the power consumption of firefox goes up to over 90%

a button or an URL-Parameter to set down the refresh-rate to a very low level would solve this too

Refactoring to a "single page application"-paradigm

Development happens in the single_page_app branch.

ToDo:

  • add index.html to serve the basic page
  • add JavaScript to load different apps defined as modules
  • implement geomap module (WIP)
  • implement graph module
  • implement list module
  • choose standard/default module
  • do something about the "remove this!!!" commit
  • remove "old" code (all single html-files that are implemented as modules)
  • take a look on mobile (smaller screen size)

blacklist for some nodes on map

We would need a functionality to blacklist certain nodes on the map for cases, where the coordinates in the nodes are not entered at the correct spot so they create wrong links all across the city that don't really exist.

Where would be the best place to create such a blacklist so these nodes are not shown on the map?

lastcontact oder updatedat in nodeliste aufnehmen

Hi,

könnte in die Knotenliste eine Information mit aufgenommen werden, wann der letzte Kontakt zum Knoten erfolgreich war.

  • also wann er das letzte mal online war.

Im Moment gibt es die Info, dass ein Knoten offline ist - aber nicht wie lange schon.

Ich würde die Information gern in der Freifunk-Karte nutzen.

freifunkkarte verbessern: Legende+uplinks

was heissen wigentlich die zahlen auf der freifunkkarte hinter den rountenamen in klammern?
Irgendwie mal ne legende wäre gut.

Und wenn man auf der karte auch sehen würde, welche router einen uplink haben

Update README for bower/grunt-cli/...

Something along this is needed to get started:

install nodejs
install npm (using curl/sh)
npm install
npm install bower grunt-cli
node_modules/bower/bin/bower install
node_modules/grunt-cli/bin/grunt

Map, Graph and List does not work with Internet Explorer

The Map, Graph and List does not work with Internet Explorer.

I have testet Internet Explorer 11.

Internet Explorer throws an error "Object does not support this action" to "throw e" on this line:

Bacon.js ca. line 1497

catch (_error) {
    e = _error;
    this.pushing = false;
    this.queue = [];
    throw e;
  }

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.