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.
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.
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.
This is now the template for our ansible setup
cpan install JSON
cpan install LWP::Simple
MIT License - Copyright 2016, Gregory Vigo Torres
CC-BY-NC - Freifunk Bodensee, L3D.