SlideShare a Scribd company logo
1 of 18
Download to read offline
00/2023
00/2023
Monitoring the fleet of Sasa
with Free Software
By Marco Pavanelli
11/2023 1
ABOUT SASA
00/2023 2
• Sasa è la più grande azienda pubblica
per trasporto locale dell'AltoAdige
• 80 linee
• 16 milioni di km percorsi ogni anno.
• 570 dipendenti di 27 nazionalità
• 350+ Autobus di cui 10 a Idrogeno
Sasa DEV TEAM
• Sasa "in-house" DEV Team è un team agile
di 4 senior developers.
• Sviluppiamo applicazioni per uso interno.
• Preferiamo usare strumenti open source
• In particolare amimao python, django,
postgres, docker, git
• La maggior parte delle nostre applicazioni
sono in oggi cloud.
00/2023 3
Sasa hardware team
Questo progetto è fatto
anche di hardware:
Come ogni progetto IOT
servono persone sul
campo, i nostri tecnici a
bordo dei mezzi hanno
installato i tracker teltonika
su oltre 350 autobus
00/2023 4
The Speaker
• Sono Marco Pavanelli
• Team leader del Sasa DEV Team
• Sviluppo software da 25 anni
• Lavoro per il trasporto pubblico dell'alto adige
da 10 anni circa
• Sono stato speaker ad alcuni pycon
• Quest'anno per la prima volta Speaker at
SFSCON
00/2023 5
Monitorare la flotta
• Crescendo di dimensioni è arrivata la richiesta
di alcuni settori dell'azienda di sapere dove si
trovano gli autobus ..
• Sicurezza
• Qualità del servizio
00/2023 6
Overview
00/2023 7
Gateway
Più in dettaglio
00/2023 8
Messaggio
000000000000010708040000017f8d2d5a1000069d33911b7d2fc
a00d300260e0010000c05ef01f0011504c800450105b5000ab600
054269d3430f8344000002f1000056b910002da1e9000000017f8
d2d562800069d32441b7d2e0800d3000d0e000e000c05ef01f001
1504c800450105b5000ab600054269d3430f8344000002f100005
6b910002da1e9000000017f8d2d524000069d30821b7d2c9a00d
4014a0d000d000c05ef01f0011504c800450105b5000ab6000542
69d3430f8344000002f1000056b910002da1e9000000017f8d2d4
e5800069d30b41b7d2ab600d4012e0e000f000c05ef01f0011504
c800450105b5000ab600054269de430f8444000002f1000056b91
0002da1d4000400000cf7
Risultato
{
"imei": None,
"ts": 1647341034000,
"prio": 0,
"long": 110965649,
"lat": 461189066,
"alt": 211,
"ang": 38,
"sat": 14,
"speed": 16,
"event_io_id": 0,
"total_io": 12,
"received_at": 1647343077,
},
python gateway
Più in dettaglio
00/2023 9
Risultato
{
"imei": None,
"ts": 1647341034000,
"prio": 0,
"long": 110965649,
"lat": 461189066,
"alt": 211,
"ang": 38,
"sat": 14,
"speed": 16,
"event_io_id": 0,
"total_io": 12,
"received_at": 1647343077,
},
python gateway
Architecture 1
00/2023 10
010010101010101
010011101001011
Binary GPS
Data
Teltonika
Python
gateway
Architecture 2
00/2023 11
Consumer Database Web Apps
Scalabilità e resilienza
00/2023 12
Docker
Swarm
Applicazioni WEB
00/2023 13
Per visualizzare i dati abbiamo sviluppato alcune
applicazioni web in django
• Monitoraggio tempo reale
• Analisi dati storici gps
In studio
• Allarmi gps e accelerometro
• Dati consumo / motore ecc.
Il risultato finale – MOBILE
00/2023 14
Il risultato finale - WEB
00/2023 15
Il risultato finale - WEB
00/2023 16
• In questo progetto c'è un po' di codice ma
soprattutto altro: hardware, persone sul campo
e una serie di strumenti open source che ci
permettono di dormire tranquilli
• Con questi strumenti produrre software "in-
house" in tempi e costi ragionevoli è possibile.
00/2023 17
Contacts
Marco Pavanelli
• Email: Marco.pavanelli@sasabz.it
• Linkedin:https://www.linkedin.com/in/marco-pavanelli-8b054470/
• https://stackoverflow.com/users/2619479/marco
00/2023 18

More Related Content

Similar to Monitorare una flotta di autobus: architettura di un progetto di acquisizione dati in tempo reale basato su free software

Ricerca di mercato utenti finali
Ricerca di mercato utenti finaliRicerca di mercato utenti finali
Ricerca di mercato utenti finaliPierantonio Gallu
 
I 5 ragionamenti da fare per creare un sito internet professionale - SMAU Fir...
I 5 ragionamenti da fare per creare un sito internet professionale - SMAU Fir...I 5 ragionamenti da fare per creare un sito internet professionale - SMAU Fir...
I 5 ragionamenti da fare per creare un sito internet professionale - SMAU Fir...Fabrizio Caccavello
 
Presentazione - Parky.pdf
Presentazione - Parky.pdfPresentazione - Parky.pdf
Presentazione - Parky.pdfParkySolution
 
SEOGuardian - Report posizionamento nei motori di ricerca - Cartucce e Toner ...
SEOGuardian - Report posizionamento nei motori di ricerca - Cartucce e Toner ...SEOGuardian - Report posizionamento nei motori di ricerca - Cartucce e Toner ...
SEOGuardian - Report posizionamento nei motori di ricerca - Cartucce e Toner ...Bint
 
New Rail Presentation
New Rail PresentationNew Rail Presentation
New Rail Presentationorsopromoving
 
Crowd4Roads - primo incontro Ancona (ITA)
Crowd4Roads - primo incontro Ancona (ITA)Crowd4Roads - primo incontro Ancona (ITA)
Crowd4Roads - primo incontro Ancona (ITA)Andrea Sergiacomi
 
Progetto Crowd4roads - 1° meeting Ancona
Progetto Crowd4roads - 1° meeting AnconaProgetto Crowd4roads - 1° meeting Ancona
Progetto Crowd4roads - 1° meeting AnconaRegione Marche
 
Progetto WANDA
Progetto WANDAProgetto WANDA
Progetto WANDAARIANET
 
Presentazione professional services maticmind ottobre 2019
Presentazione professional services maticmind ottobre 2019Presentazione professional services maticmind ottobre 2019
Presentazione professional services maticmind ottobre 2019Maticmind
 
BWII (Broadband Wireless Italia Israele)
BWII (Broadband Wireless Italia Israele) BWII (Broadband Wireless Italia Israele)
BWII (Broadband Wireless Italia Israele) ESA Italia Srl
 
Il progetto Cluster AI-TEXTILES - Stato d’avanzamento IV semestre
Il progetto Cluster AI-TEXTILES - Stato d’avanzamento IV semestreIl progetto Cluster AI-TEXTILES - Stato d’avanzamento IV semestre
Il progetto Cluster AI-TEXTILES - Stato d’avanzamento IV semestreSardegna Ricerche
 
La Rivoluzione dell'Auto Connessa
La Rivoluzione dell'Auto ConnessaLa Rivoluzione dell'Auto Connessa
La Rivoluzione dell'Auto ConnessaRoberto Ciacci
 
Internet of Things nella PMI. È il presente di Hydroservice
Internet of Things nella PMI. È il presente di HydroserviceInternet of Things nella PMI. È il presente di Hydroservice
Internet of Things nella PMI. È il presente di HydroserviceSIDIGroup
 
Presentazione forum pa challenge 1
Presentazione forum pa challenge 1Presentazione forum pa challenge 1
Presentazione forum pa challenge 1Carlo Sciuto
 

Similar to Monitorare una flotta di autobus: architettura di un progetto di acquisizione dati in tempo reale basato su free software (20)

Ricerca di mercato utenti finali
Ricerca di mercato utenti finaliRicerca di mercato utenti finali
Ricerca di mercato utenti finali
 
I 5 ragionamenti da fare per creare un sito internet professionale - SMAU Fir...
I 5 ragionamenti da fare per creare un sito internet professionale - SMAU Fir...I 5 ragionamenti da fare per creare un sito internet professionale - SMAU Fir...
I 5 ragionamenti da fare per creare un sito internet professionale - SMAU Fir...
 
Presentazione - Parky.pdf
Presentazione - Parky.pdfPresentazione - Parky.pdf
Presentazione - Parky.pdf
 
Ppt speed mywheelchair tutor
Ppt speed mywheelchair tutorPpt speed mywheelchair tutor
Ppt speed mywheelchair tutor
 
Cloud computing 101
Cloud computing 101Cloud computing 101
Cloud computing 101
 
SEOGuardian - Report posizionamento nei motori di ricerca - Cartucce e Toner ...
SEOGuardian - Report posizionamento nei motori di ricerca - Cartucce e Toner ...SEOGuardian - Report posizionamento nei motori di ricerca - Cartucce e Toner ...
SEOGuardian - Report posizionamento nei motori di ricerca - Cartucce e Toner ...
 
New Rail Presentation
New Rail PresentationNew Rail Presentation
New Rail Presentation
 
Crowd4Roads - primo incontro Ancona (ITA)
Crowd4Roads - primo incontro Ancona (ITA)Crowd4Roads - primo incontro Ancona (ITA)
Crowd4Roads - primo incontro Ancona (ITA)
 
Progetto Crowd4roads - 1° meeting Ancona
Progetto Crowd4roads - 1° meeting AnconaProgetto Crowd4roads - 1° meeting Ancona
Progetto Crowd4roads - 1° meeting Ancona
 
Mobile 2.0
Mobile 2.0Mobile 2.0
Mobile 2.0
 
Progetto WANDA
Progetto WANDAProgetto WANDA
Progetto WANDA
 
CitySmart premio_app4sud
CitySmart premio_app4sudCitySmart premio_app4sud
CitySmart premio_app4sud
 
Presentazione professional services maticmind ottobre 2019
Presentazione professional services maticmind ottobre 2019Presentazione professional services maticmind ottobre 2019
Presentazione professional services maticmind ottobre 2019
 
BWII (Broadband Wireless Italia Israele)
BWII (Broadband Wireless Italia Israele) BWII (Broadband Wireless Italia Israele)
BWII (Broadband Wireless Italia Israele)
 
Il progetto Cluster AI-TEXTILES - Stato d’avanzamento IV semestre
Il progetto Cluster AI-TEXTILES - Stato d’avanzamento IV semestreIl progetto Cluster AI-TEXTILES - Stato d’avanzamento IV semestre
Il progetto Cluster AI-TEXTILES - Stato d’avanzamento IV semestre
 
La Rivoluzione dell'Auto Connessa
La Rivoluzione dell'Auto ConnessaLa Rivoluzione dell'Auto Connessa
La Rivoluzione dell'Auto Connessa
 
DegustiBus
DegustiBusDegustiBus
DegustiBus
 
Adesso In Onda
Adesso In OndaAdesso In Onda
Adesso In Onda
 
Internet of Things nella PMI. È il presente di Hydroservice
Internet of Things nella PMI. È il presente di HydroserviceInternet of Things nella PMI. È il presente di Hydroservice
Internet of Things nella PMI. È il presente di Hydroservice
 
Presentazione forum pa challenge 1
Presentazione forum pa challenge 1Presentazione forum pa challenge 1
Presentazione forum pa challenge 1
 

More from Speck&Tech

What should 6G be? - 6G: bridging gaps, connecting futures
What should 6G be? - 6G: bridging gaps, connecting futuresWhat should 6G be? - 6G: bridging gaps, connecting futures
What should 6G be? - 6G: bridging gaps, connecting futuresSpeck&Tech
 
Creare il sangue artificiale: "buon sangue non mente"
Creare il sangue artificiale: "buon sangue non mente"Creare il sangue artificiale: "buon sangue non mente"
Creare il sangue artificiale: "buon sangue non mente"Speck&Tech
 
AWS: gestire la scalabilità su larga scala
AWS: gestire la scalabilità su larga scalaAWS: gestire la scalabilità su larga scala
AWS: gestire la scalabilità su larga scalaSpeck&Tech
 
Praticamente... AWS - Amazon Web Services
Praticamente... AWS - Amazon Web ServicesPraticamente... AWS - Amazon Web Services
Praticamente... AWS - Amazon Web ServicesSpeck&Tech
 
Data Sense-making: navigating the world through the lens of information design
Data Sense-making: navigating the world through the lens of information designData Sense-making: navigating the world through the lens of information design
Data Sense-making: navigating the world through the lens of information designSpeck&Tech
 
Data Activism: data as rhetoric, data as power
Data Activism: data as rhetoric, data as powerData Activism: data as rhetoric, data as power
Data Activism: data as rhetoric, data as powerSpeck&Tech
 
Delve into the world of the human microbiome and metagenomics
Delve into the world of the human microbiome and metagenomicsDelve into the world of the human microbiome and metagenomics
Delve into the world of the human microbiome and metagenomicsSpeck&Tech
 
Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...
Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...
Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...Speck&Tech
 
Why LLMs should be handled with care
Why LLMs should be handled with careWhy LLMs should be handled with care
Why LLMs should be handled with careSpeck&Tech
 
Building intelligent applications with Large Language Models
Building intelligent applications with Large Language ModelsBuilding intelligent applications with Large Language Models
Building intelligent applications with Large Language ModelsSpeck&Tech
 
Privacy in the era of quantum computers
Privacy in the era of quantum computersPrivacy in the era of quantum computers
Privacy in the era of quantum computersSpeck&Tech
 
Machine learning with quantum computers
Machine learning with quantum computersMachine learning with quantum computers
Machine learning with quantum computersSpeck&Tech
 
Give your Web App superpowers by using GPUs
Give your Web App superpowers by using GPUsGive your Web App superpowers by using GPUs
Give your Web App superpowers by using GPUsSpeck&Tech
 
From leaf to orbit: exploring forests with technology
From leaf to orbit: exploring forests with technologyFrom leaf to orbit: exploring forests with technology
From leaf to orbit: exploring forests with technologySpeck&Tech
 
Innovating Wood
Innovating WoodInnovating Wood
Innovating WoodSpeck&Tech
 
Behind the scenes of our everyday Internet: the role of an IXP like MIX
Behind the scenes of our everyday Internet: the role of an IXP like MIXBehind the scenes of our everyday Internet: the role of an IXP like MIX
Behind the scenes of our everyday Internet: the role of an IXP like MIXSpeck&Tech
 
Architecting a 35 PB distributed parallel file system for science
Architecting a 35 PB distributed parallel file system for scienceArchitecting a 35 PB distributed parallel file system for science
Architecting a 35 PB distributed parallel file system for scienceSpeck&Tech
 
Truck planning: how to certify the right route
Truck planning: how to certify the right routeTruck planning: how to certify the right route
Truck planning: how to certify the right routeSpeck&Tech
 
Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...
Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...
Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...Speck&Tech
 
AI and Space: finally, no more arguing with the GPS
AI and Space: finally, no more arguing with the GPSAI and Space: finally, no more arguing with the GPS
AI and Space: finally, no more arguing with the GPSSpeck&Tech
 

More from Speck&Tech (20)

What should 6G be? - 6G: bridging gaps, connecting futures
What should 6G be? - 6G: bridging gaps, connecting futuresWhat should 6G be? - 6G: bridging gaps, connecting futures
What should 6G be? - 6G: bridging gaps, connecting futures
 
Creare il sangue artificiale: "buon sangue non mente"
Creare il sangue artificiale: "buon sangue non mente"Creare il sangue artificiale: "buon sangue non mente"
Creare il sangue artificiale: "buon sangue non mente"
 
AWS: gestire la scalabilità su larga scala
AWS: gestire la scalabilità su larga scalaAWS: gestire la scalabilità su larga scala
AWS: gestire la scalabilità su larga scala
 
Praticamente... AWS - Amazon Web Services
Praticamente... AWS - Amazon Web ServicesPraticamente... AWS - Amazon Web Services
Praticamente... AWS - Amazon Web Services
 
Data Sense-making: navigating the world through the lens of information design
Data Sense-making: navigating the world through the lens of information designData Sense-making: navigating the world through the lens of information design
Data Sense-making: navigating the world through the lens of information design
 
Data Activism: data as rhetoric, data as power
Data Activism: data as rhetoric, data as powerData Activism: data as rhetoric, data as power
Data Activism: data as rhetoric, data as power
 
Delve into the world of the human microbiome and metagenomics
Delve into the world of the human microbiome and metagenomicsDelve into the world of the human microbiome and metagenomics
Delve into the world of the human microbiome and metagenomics
 
Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...
Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...
Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...
 
Why LLMs should be handled with care
Why LLMs should be handled with careWhy LLMs should be handled with care
Why LLMs should be handled with care
 
Building intelligent applications with Large Language Models
Building intelligent applications with Large Language ModelsBuilding intelligent applications with Large Language Models
Building intelligent applications with Large Language Models
 
Privacy in the era of quantum computers
Privacy in the era of quantum computersPrivacy in the era of quantum computers
Privacy in the era of quantum computers
 
Machine learning with quantum computers
Machine learning with quantum computersMachine learning with quantum computers
Machine learning with quantum computers
 
Give your Web App superpowers by using GPUs
Give your Web App superpowers by using GPUsGive your Web App superpowers by using GPUs
Give your Web App superpowers by using GPUs
 
From leaf to orbit: exploring forests with technology
From leaf to orbit: exploring forests with technologyFrom leaf to orbit: exploring forests with technology
From leaf to orbit: exploring forests with technology
 
Innovating Wood
Innovating WoodInnovating Wood
Innovating Wood
 
Behind the scenes of our everyday Internet: the role of an IXP like MIX
Behind the scenes of our everyday Internet: the role of an IXP like MIXBehind the scenes of our everyday Internet: the role of an IXP like MIX
Behind the scenes of our everyday Internet: the role of an IXP like MIX
 
Architecting a 35 PB distributed parallel file system for science
Architecting a 35 PB distributed parallel file system for scienceArchitecting a 35 PB distributed parallel file system for science
Architecting a 35 PB distributed parallel file system for science
 
Truck planning: how to certify the right route
Truck planning: how to certify the right routeTruck planning: how to certify the right route
Truck planning: how to certify the right route
 
Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...
Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...
Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...
 
AI and Space: finally, no more arguing with the GPS
AI and Space: finally, no more arguing with the GPSAI and Space: finally, no more arguing with the GPS
AI and Space: finally, no more arguing with the GPS
 

Monitorare una flotta di autobus: architettura di un progetto di acquisizione dati in tempo reale basato su free software

  • 1. 00/2023 00/2023 Monitoring the fleet of Sasa with Free Software By Marco Pavanelli 11/2023 1
  • 2. ABOUT SASA 00/2023 2 • Sasa è la più grande azienda pubblica per trasporto locale dell'AltoAdige • 80 linee • 16 milioni di km percorsi ogni anno. • 570 dipendenti di 27 nazionalità • 350+ Autobus di cui 10 a Idrogeno
  • 3. Sasa DEV TEAM • Sasa "in-house" DEV Team è un team agile di 4 senior developers. • Sviluppiamo applicazioni per uso interno. • Preferiamo usare strumenti open source • In particolare amimao python, django, postgres, docker, git • La maggior parte delle nostre applicazioni sono in oggi cloud. 00/2023 3
  • 4. Sasa hardware team Questo progetto è fatto anche di hardware: Come ogni progetto IOT servono persone sul campo, i nostri tecnici a bordo dei mezzi hanno installato i tracker teltonika su oltre 350 autobus 00/2023 4
  • 5. The Speaker • Sono Marco Pavanelli • Team leader del Sasa DEV Team • Sviluppo software da 25 anni • Lavoro per il trasporto pubblico dell'alto adige da 10 anni circa • Sono stato speaker ad alcuni pycon • Quest'anno per la prima volta Speaker at SFSCON 00/2023 5
  • 6. Monitorare la flotta • Crescendo di dimensioni è arrivata la richiesta di alcuni settori dell'azienda di sapere dove si trovano gli autobus .. • Sicurezza • Qualità del servizio 00/2023 6
  • 8. Più in dettaglio 00/2023 8 Messaggio 000000000000010708040000017f8d2d5a1000069d33911b7d2fc a00d300260e0010000c05ef01f0011504c800450105b5000ab600 054269d3430f8344000002f1000056b910002da1e9000000017f8 d2d562800069d32441b7d2e0800d3000d0e000e000c05ef01f001 1504c800450105b5000ab600054269d3430f8344000002f100005 6b910002da1e9000000017f8d2d524000069d30821b7d2c9a00d 4014a0d000d000c05ef01f0011504c800450105b5000ab6000542 69d3430f8344000002f1000056b910002da1e9000000017f8d2d4 e5800069d30b41b7d2ab600d4012e0e000f000c05ef01f0011504 c800450105b5000ab600054269de430f8444000002f1000056b91 0002da1d4000400000cf7 Risultato { "imei": None, "ts": 1647341034000, "prio": 0, "long": 110965649, "lat": 461189066, "alt": 211, "ang": 38, "sat": 14, "speed": 16, "event_io_id": 0, "total_io": 12, "received_at": 1647343077, }, python gateway
  • 9. Più in dettaglio 00/2023 9 Risultato { "imei": None, "ts": 1647341034000, "prio": 0, "long": 110965649, "lat": 461189066, "alt": 211, "ang": 38, "sat": 14, "speed": 16, "event_io_id": 0, "total_io": 12, "received_at": 1647343077, }, python gateway
  • 13. Applicazioni WEB 00/2023 13 Per visualizzare i dati abbiamo sviluppato alcune applicazioni web in django • Monitoraggio tempo reale • Analisi dati storici gps In studio • Allarmi gps e accelerometro • Dati consumo / motore ecc.
  • 14. Il risultato finale – MOBILE 00/2023 14
  • 15. Il risultato finale - WEB 00/2023 15
  • 16. Il risultato finale - WEB 00/2023 16
  • 17. • In questo progetto c'è un po' di codice ma soprattutto altro: hardware, persone sul campo e una serie di strumenti open source che ci permettono di dormire tranquilli • Con questi strumenti produrre software "in- house" in tempi e costi ragionevoli è possibile. 00/2023 17
  • 18. Contacts Marco Pavanelli • Email: Marco.pavanelli@sasabz.it • Linkedin:https://www.linkedin.com/in/marco-pavanelli-8b054470/ • https://stackoverflow.com/users/2619479/marco 00/2023 18