ALMANAC: Internet of Things for Smart Cities