Skip to content
This repository has been archived by the owner on Sep 22, 2019. It is now read-only.

Simple Freifunk Node list - based on meshviewer JSON Data and Perl...

Notifications You must be signed in to change notification settings

ffbsee/FFNodeList-deprecated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SortableTables.js

ACHTUNG

Die aktuelle Meshviewer syntax ist gänzlich inkompatibel...
müsste mal jemand reparieren oder noch besser:
Nachbauen in python!

A simple Javascript library to make html tables sortable. It uses Array.from, which may not be available in your Javascript version. You can find a polyfill at MDN.

generateList.pl

A simple Perl Script to generate a Freifunk Node List. The Script get his informations from the Meshviewer 1. The Meshviewer has a few JSON Files ² ³ and this script use them. Please have a look at the global variables from the script.

SortableTables

Basic usage for the JavaScript:

The table element must have class sortable. Sort criteria is defined by using a class on the th element for each column.

e.g.

<thead>
    <tr>
    <th class="str-sort">Strings</th>
    </tr>
</thead>

Currently implemented sort criteria are:

  • str-sort (locale aware standard javascript sorting)
  • date-sort (default date format is: dd/mm/yyyy)
  • float-sort (probably works for ints too)

Rows can be skipped using class skip-sort. thead and tfoot elements are always skipped.

#Freifunk Node List The Perl Script generate an index.html and an liste.html. Both Pages display all freifunk nodes from the meshviewer JSON file. The index.html file only contains the most important informations. The list.html has a lot more information. Feel free to fork this github repository for your own freifunk community.

Installation:

This is now the template for our ansible setup

Old infos:

cpan install JSON
cpan install LWP::Simple

License:

sortableTables.js

MIT License - Copyright 2016, Gregory Vigo Torres

generateList.pl

CC-BY-NC - Freifunk Bodensee, L3D.