[Nodeshot] External GeoRSS layer configuration?

Nemesis nemesis at ninux.org
Wed Jun 11 09:38:43 CEST 2014


On 06/09/2014 04:01 AM, Finn Herzfeld wrote:
> Hey there,
> I'm trying to add an external map (http://map.nycmesh.net/index.rss) and
> it wants a configuration. Is there any documentation on how to make one
> of those?

Hi Finn,

there's currently no documentation but it would be the good time for me
to write it.

There's one little problem though, the linked XML is not GeoRSS and
cannot be imported by nodeshot, after using an online beautifier this is
what comes out:

<?xml version="1.0"?>
<rss version="2.0">
    <channel>
        <title>#nycmeshnet NodeAtlas</title>
        <link>http://map.nycmesh.net</link>
        <description>New local node feed</description>
        <generator>Moverrs - http://github.com/baliw/moverss</generator>
        <item>
            <link>http://map.nycmesh.net/node/fc00::</link>
            <description></description>
            <title>wa3yre</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
        <item>
           
<link>http://map.nycmesh.net/node/fc00:d117:b9d3:7194:ffff:ffff:ffff:ffff</link>
            <description></description>
            <title>William</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
        <item>
            <link>http://map.nycmesh.net/node/fc00:dead:dead::</link>
            <description></description>
            <title>Jim</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
        <item>
            <link>http://map.nycmesh.net/node/fc01::</link>
            <description></description>
            <title>shotintoeternity</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
        <item>
            <link>http://map.nycmesh.net/node/fc02::</link>
            <description></description>
            <title>Quin Kennedy</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
        <item>
            <link>http://map.nycmesh.net/node/fc03::</link>
            <description></description>
            <title>TestNode</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
        <item>
            <link>http://map.nycmesh.net/node/fc06::</link>
            <description></description>
            <title>astoria_pi_1</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
        <item>
            <link>http://map.nycmesh.net/node/fc08::</link>
            <description></description>
            <title>IronGhost</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
        <item>
            <link>http://map.nycmesh.net/node/fc10::</link>
            <description></description>
            <title>Daniel Piestrak</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
        <item>
            <link>http://map.nycmesh.net/node/fc15::</link>
            <description></description>
            <title>Adrienne</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
        <item>
           
<link>http://map.nycmesh.net/node/fc7e:22c2:e29b:7688:6194:1bc9:333b:119e</link>
            <description></description>
            <title>timebox</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
        <item>
           
<link>http://map.nycmesh.net/node/fcd1:3111:8040:d6f3:9865:5466:4367:6d76</link>
            <description></description>
            <title>tisaac</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
        <item>
           
<link>http://map.nycmesh.net/node/fce1:6e7a:b114:33cc:a823:8e94:10dd:815c</link>
            <description></description>
            <title>jimbeam</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
        <item>
           
<link>http://map.nycmesh.net/node/fce1:6e7a:b114:33cc:a823:8e94:10dd:815d</link>
            <description></description>
            <title>jimbeam</title>
            <pubDate>Thu, 01 Jan 1970 00:33:34 UTC</pubDate>
        </item>
    </channel>
</rss>

here's examples of standard GeoRSS variants that are supported by nodeshot:

  * *standard*:
https://github.com/ninuxorg/nodeshot/blob/master/nodeshot/interoperability/static/nodeshot/testing/openwisp-georss.xml
  * *simple*:
https://github.com/ninuxorg/nodeshot/blob/master/nodeshot/interoperability/static/nodeshot/testing/georss-simple.xml
  * *w3c*:
https://github.com/ninuxorg/nodeshot/blob/master/nodeshot/interoperability/static/nodeshot/testing/georss-w3c.xml

I suggest to just implement GeoJSON in nodeatlas which is even better!
GeoJSON is much better than GeoRSS, is more modern, simpler, unambigous
(no variants, 1 way only), flexible and widely used.

For example, checkout your instance's GeoJSON output:
https://map.seattlemesh.net/api/v1/nodes.geojson

Federico

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.ninux.org/pipermail/nodeshot/attachments/20140611/d1d57593/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://ml.ninux.org/pipermail/nodeshot/attachments/20140611/d1d57593/attachment-0001.sig>


More information about the Nodeshot mailing list