Cagliari Open Data SDK for node.js

We're happy to announce the first version of the Cagliari Open Data API wrapper for node.js, developed by the Paraimpu team.
This version supports the "Traffic" API, allowing to get (in near-realtime) traffic data about several points in the city of Cagliari.

The cagliari-opendata module is released under an open source license.

Check it out on:

Github repository



Starting with it it's very simple:

npm install cagliari-opendata

Next versions will include support for other useful endpoints.

Checkout of Git subfolders

Working with Git (, you create the remote master repository and it usual has folders with different scopes.
Lets suppose it contains a folder set like: /docs, /mainproject, /microservice1, /microservice2 and /microservice3.

In a deployment with multiple machines, each microservice could run on one different machine and the clone of the whole repository is just a disk space consumption.
The /docs could contain video demo and a lot of images for all microservices while you need to pull the few MB of  /microservice2.
The “sparse checkout” ( available from Git 1.7.0 lets to pull only the selected subfolders.

Step 1
Create a local empty repository and connect it to remote master, fetching all objects but don't perform their checkout:
git init <local_repository>
cd <local_repository>
git remote add -f origin <url_remote_master_repository_no_include_target_subfolder>

Step 2
Set git for sparse checkout:
git config core.sparseCheckout true

Step 3
Set the subfolders to checkout, creating and filling the sparse-checkout file in .git/info/.
For example:
echo "microservice2/" >> .git/info/sparse-checkout
echo "docs/microservice2_doc" >> .git/info/sparse-checkout

Or use your preferred editor to fill sparse-checkout.

Only the code for microservice1 and its documentation from docs/microservice1_doc will be downloaded

Step 4

Download the selected folders:
git pull origin master

How Researchers are using the Paraimpu Platform: a Use Case

Some researchers of CRS4 Information Society group - a research centre based in Sardinia (Italy) - have chosen Paraimpu among several other Internet of Things platforms to carry out  their work and experimentation focused on Semantics & IoT. This work is part of the research and development of various projects in the field of Smart Cities.

Thanks to the Paraimpu workspace and the new APIs, Cristian Lai and Antonio Pintus built a dynamic and scalable Semantic Sensor Network system, based on the platform and supporting the following features:

  • Geographically distributed sensors, grouped in stations, are able to form ad hoc networking topologies; they not only send measurements data but also announce themselves and their presence in the network;
  • Raw data sent by sensors is semantically annotated and on-the-fly enriched by Paraimpu as it flows through the system, using Semantic Web formats;
  • A real-time, websocket-based web application shows an (always) updated interactive bubble view of the network: stations, their sensors and related measured data.

(click the image for a bigger version)

Cristian remarked: “thanks to the friendly and handy Paraimpu workspace, it was possible to quickly prototype and deploy the whole system, focusing on the semantic aspects of research and delegating to Paraimpu all the low-level, network operations. The powerful, integrated rule-based Javascript engine inside the platform allows to transform data in real-time: from raw measurements and packets to structured Linked Data, in compliance with Semantic Web standards of W3C; thanks to Paraimpu APIs, then it is stored in a dedicated Knowledge Base”.

This research actually shows how Semantics, applied to IoT, can contribute to the growth of advanced systems with concrete applications to many fields, including IoT Interactive Systems, Ambient Intelligence, Domotics and Smart Cities.

Raw data sources used in the experimentation includes several physical sensors deployed at CRS4 buildings along with other data sources, like weather streams and traffic information, queried in near real-time thanks to open-data provided by Cagliari Municipality Government and released under the IODLv2.0 License.

Semantics allows to describe stations, sensors and observations and to face the issues related to disambiguation. Linked Data paradigm, contributes  to create a network of standard-based, machine-readable data across the Web of Data providing a means of integrating data at large scale.

Announcement: New Release Online

We're glad to announce that we've just released the new Paraimpu version.

Briefly, the most important changes include:
  • a completely new API system (v1), so dear developers you're ready to develop your Paraimpu-based applications, here's the documentation home; old version of the API is deprecated, thus you are strongly encouraged to use API v1
  • a user profile page, just select your name in the workspace to show details, account type and API access token
  • the Foursquare thing (sensor) has been replaced by the new Swarm app; your old existing Foursquare sensors have been deactivated and will be removed in few weeks. You're encouraged to use the new Swarm thing
  • Karotz, the rabbit, has been discontinued by its manufacturer (read this announce) so we've removed it from Paraimpu. RIP dear Karotz!
  • Due to Facebook API constraints, a Facebook actuator thing expires in two months (more details can be found in its dedicated Paraimpu page), thus currently you need to create a new one after its expiration. Yes, we know... it's not comfortably and we're working to seriously improve or avoid that. Thank you for your patience
  • Google Calendar thing (actuator) has been temporarily deactivated, it will be back very soon with new capabilities
Several improvements are under the hood and includes some architectural changes and improvements along with the new API system.

Finally, now it can start a new era in the Paraimpu development. Stay tuned!


The Paraimpu Team

Arduino Yún, managing wifi reset and timeouts

Arduino Yún is a great prototype hardware platform.
It has integrated Ethernet and Wifi modules and it runs a distribution of Linux for embedded systems, named OpenWrt-Yun.

When you first power your Arduino Yún or you reset its network configuration, it has the ability to act as an Access Point; thus, it will create a WiFi network called ArduinoYun-<THE BOARD MAC ADDRESS>.
In this way you can connect your computer to that network.

Then, entering http://arduino.local or in your browser you will able to configure the WiFi network (in addition to Ethernet and a lot of other things...) in order to connect the board to your WiFi network.

The network configuration is persistent, so if you power off the Arduino, next time you power on it again it will try to connect to the configured WiFi network.

But, if something goes wrong and the Yún is not able to connect to the configured Wifi network within 60 seconds, by default it resets the network configuration (loosing your configuration) and it enters again in the Access Point mode.

If, for any reason, you need to override this behaviour you can

  • login to your Yún via ssh as root (default password is arduino)
ssh root@ 

  • edit the /usr/bin/wifi_live_or_reset file:
vi /usr/bin/wifi_live_or_reset
  • edit the timeout as you prefer changing the MAX_SLEEP value. For example, for 3 minutes:


Save the file.
Power off and then on again the board.

In case you need to disable the wifi reset at all, then:

  • edit the /etc/rc.local file commenting the following row, as:

Save the file.
Power off and then on again the board.

That's all.

RabbitMQ 3.4.1 and rabbitmqctl "cannot get bootfile" error

If you are running RabbitMQ v. 3.4.1 and your are experiencing the following error when running rabbitmqctl:

{"init terminating in do_boot",{'cannot get bootfile','/Users/pintux/devtools/rabbitmq_server-3.4.1/sbin/../erts-6.1/bin/../../bin/start.boot'}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

then, below is a workaround, waiting for a new version that fixes it.
RabbitMQ installation directory assumed to be /Users/myuser/rabbitmq-3.4.1

cd /Users/myuser/rabbitmq-3.4.1
mkdir bin
cd bin
ln -s /Users/myuser/rabbitmq-3.4.1/releases/3.4.1/start.boot .

Paraimpu & RIOT Hackathon

[Italian only this time, we're sorry!]

Invito all' Internet Festival / RIOT Revolutionizing the Internet Of Things in collaborazione con il FabLab Pisa e CNA Digitale.

Sei un maker, un hacker, uno studente, un appassionato del fare e dell'Internet of Things (IoT)?

Se sì, è con grande piacere che noi di Paraimpu ti invitiamo a partecipare come Paraimpu Ambassador al "RIOT Revolutionizing the Internet Of Things", organizzato dall'Internet Festival in collaborazione con il FabLab Pisa e CNA Digitale che si terrà da venerdì 10 ottobre a domenica 12 ottobre presso SMS Centro Espositivo, in via San Michele degli Scalzi, Pisa.

Lo scopo di RIOT è quello di mettere in contatto sviluppatori e maker di talento con aziende innovative interessate ad utilizzare le nuove tecnologie dell’IoT per innovare e sviluppare i prodotti del futuro. Infine, sarà organizzato un grande hackathon riservato a sole 50 persone.
Durante l'hackathon verranno sviluppate in gruppo delle idee progettuali. Al termine di questo, verrà decretato un progetto vincitore con un premio finale di 3000€!

Paraimpu Ambassador? Sì... ma cosa è?
Crea oggi il tuo account gratuito su Paraimpu, dopodichè scrivici un'email dal tuo indirizzo di contatto a,  potresti essere da noi selezionato per diventare uno dei primi utenti della versione Premium di Paraimpu per 6 mesi, gratuitamente.
L'unico impegno che ti chiederemo sarà quello di partecipare all'hackathon, di presentare brevemente le funzionalità di base di Paraimpu ai partecipanti e di utilizzarlo in quello che sarà il tuo team per realizzare la vostra idea! Se verrai da noi selezionato sarai automaticamente iscritto al RIOT Hackathon e potrai concorrere così al premio finale di 3000€.

se sei interessato a candidarti:

  1. crea il tuo account Paraimpu gratuito
  2. scrivici un'email entro e non oltre il 20 settembre, indicando l'indirizzo email del tuo account Paraimpu e raccontandoci brevemente dell'idea che hai in mente, anche se in uno stadio embrionale.
Tutte le candidature che ci perverranno saranno da noi valutate e sceglieremo tra queste il Paraimpu Ambassador per il RIOT Hackathon, il quale sarà automaticamente iscritto.

Tutto chiaro? ;) Se sì, candidati ora!

A presto e buona fortuna. YOU ARE WEB!

The Paraimpu Team

© 2014-2015 Paraimpu Srl . Powered by Blogger.