Traffic lights in Hamburg: Moquette in action #719
hylkevds
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks a ton @hylkevds for sharing this!! It's nice to see the project out in the wild! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, the demo.
Live traffic light information from the city of Hamburg: geoportal-hamburg.de (deep-link to the cool parts)
Then some background.
The city of Hamburg has a policy that all (non GDPR) geo-data they have should be open to the public, accessible using open standards. For publishing sensor data they choose the OGC SensorThings API standard, made by the Open Geospatial Consortium. The SensorThings API (STA) is a REST API for the typical CRUD actions, and it has MQTT bindings to allow for push notifications for any data changes.
One server implementation of STA is the open-source FROST-Server, and this is also what the city of Hamburg is using for their sensor-data publication. For the MQTT implementation FROST uses an embedded Moquette instance, so the above demo is using Moquette to push live traffic light status using MQTT over websockets.
The total load is about 2000 Observations per second, with peaks of about 5000/second. The hard part is actually getting the data out of the traffic lights, since most traffic lights don't have a proper internet connection...
Beta Was this translation helpful? Give feedback.
All reactions