Repository for the IOTA Tangle MAM streams of traffic data as Open Data part of the project STODT
git clone https://github.com/noi-techpark/stodt-iota-odh
cd stodt-iota-odh
npm install
npm start
One the service will start, it fetches the latest data of all given stations from the open hup api, saves it to a local json file and published it to the IOTA Tangle.
You can edit the options in the config directory (config/options.json)
{
"provider": "https://nodes.devnet.thetangle.org:443",
"port": 3000,
"syncInterval": 100000
}
To get the data from a mam stream, you can use https://mam-explorer.firebaseapp.com. Just add the route, check the provider (main or devnet) and the select the mode "public".
All open endpoints to get or post the specific data
Route | Description |
---|---|
/ | Get App info |
/parking/get-stations | returns all IDs of the parking stations |
/parking/get-newest-record | Return the timestamp and value of the latest recorded data. (param: station or mam root) |
/parking/get-records | Returns all the data of a parking station |
/parking/append_dataset | Append a custom dataset to a stream of a parking station |
Route | Description |
---|---|
/ | Get App info |
/bluetooth/get-stations | returns all IDs of the bluetooth stations |
/bluetooth/get-newest-record | Return the timestamp and value of the latest recorded data. (param: station or mam root) |
/bluetooth/get-records | Returns all the data of a bluetooth station |
/bluetooth/append_dataset | Append a custom dataset to a stream of a bluetooth station |
Route | Description |
---|---|
/ | Get App info |
/environment/get-stations | returns all IDs of the environment stations |
/environment/get-newest-record | Return the timestamp and value of the latest recorded data. (param: station or mam root) |
/environment/get-records | Returns all the data of a environment station |
/environment/append_dataset | Append a custom dataset to a stream of a environment station |
Bluetooth http://ipchannels.integreen-life.bz.it/BluetoothFrontEnd/swagger-ui.html
Parking http://ipchannels.integreen-life.bz.it/parking/swagger-ui.html
Environment http://ipchannels.integreen-life.bz.it/environment/swagger-ui.html
Meteorology (not found)