[Nodeshot] Interoperability/Synchronizing real testing
nemesis
nemesis at ninux.org
Fri Nov 8 18:56:04 CET 2013
I wanted to share with you some info about a new feature of nodeshot
which makes it interoperable with external services or even other
instances of itself.
In this case, I'm using nodeshot2 as a GeoJSON repository of public
wifi hotspot data AND as a synchronizer with an external service which
is called CitySDK-Tourism.
What happens in this case is the following:
* nodeshot periodically fetches the data from several external
services which provide the data
* it compares with what it has in the database and
adds/changes/deletes only what is needed
* whenever an add/change or delete is performed the external CitySDK
service is updated through a RESTful API
This behaviour is defined in the sychronizer class. It works in a
similar way of the "connector" mechanism i described this morning.
The "interoperability" module is an abstraction layer between different
applications that do a similar thing, manage geolocalized data.
It's a way to make different applications interoperable.
When I manually launch the command, this is the output I get:
(python)root at c4eu:/var/django/nodeshot/projects/cineca# django
synchronize
imported module
/var/django/nodeshot/nodeshot/interoperability/synchronizers/OpenWISPCitySDK.pyc
Processing layer "pistoia-wifi"
70 nodes added
0 nodes changed
0 nodes deleted
0 nodes unmodified
70 total external records processed
70 total local nodes for this layer
imported module
/var/django/nodeshot/nodeshot/interoperability/synchronizers/OpenWISPCitySDK.pyc
Processing layer "salernowifi"
9 nodes added
0 nodes changed
0 nodes deleted
0 nodes unmodified
9 total external records processed
9 total local nodes for this layer
imported module
/var/django/nodeshot/nodeshot/interoperability/synchronizers/OpenWISPCitySDK.pyc
Processing layer "frosinonefreewifi"
63 nodes added
0 nodes changed
0 nodes deleted
0 nodes unmodified
63 total external records processed
63 total local nodes for this layer
imported module
/var/django/nodeshot/nodeshot/interoperability/synchronizers/OpenWISPCitySDK.pyc
Processing layer "fvgwifi"
24 nodes added
0 nodes changed
0 nodes deleted
0 nodes unmodified
24 total external records processed
24 total local nodes for this layer
imported module
/var/django/nodeshot/nodeshot/interoperability/synchronizers/OpenWISPCitySDK.pyc
Processing layer "provincia-gorizia-wifi"
81 nodes added
0 nodes changed
0 nodes deleted
0 nodes unmodified
81 total external records processed
81 total local nodes for this layer
imported module
/var/django/nodeshot/nodeshot/interoperability/synchronizers/OpenWISPCitySDK.pyc
Processing layer "free-wifibresciagov"
238 nodes added
0 nodes changed
0 nodes deleted
0 nodes unmodified
238 total external records processed
238 total local nodes for this layer
imported module
/var/django/nodeshot/nodeshot/interoperability/synchronizers/OpenWISPCitySDK.pyc
Processing layer "maremmawifi"
99 nodes added
0 nodes changed
0 nodes deleted
0 nodes unmodified
99 total external records processed
99 total local nodes for this layer
imported module
/var/django/nodeshot/nodeshot/interoperability/synchronizers/OpenWISPCitySDK.pyc
Processing layer "freewifigenova"
43 nodes added
0 nodes changed
0 nodes deleted
0 nodes unmodified
43 total external records processed
43 total local nodes for this layer
imported module
/var/django/nodeshot/nodeshot/interoperability/synchronizers/ProvinciaWIFICitySDK.pyc
Processing layer "provincia-wifi-roma"
0 nodes added
1 nodes changed
0 nodes deleted
1284 nodes unmodified
1285 total external records processed
1285 total local nodes for this layer
imported module
/var/django/nodeshot/nodeshot/interoperability/synchronizers/OpenWISPCitySDK.pyc
Processing layer "lameziafreewifi"
9 nodes added
1 nodes changed
0 nodes deleted
0 nodes unmodified
10 total external records processed
10 total local nodes for this layer
More information about the Nodeshot
mailing list