CityScope / CSL_Hanoi

Repository dedicated to project related to Hanoi City
GNU General Public License v3.0
3 stars 2 forks source link

Local version working #13

Open agrignard opened 4 years ago

agrignard commented 4 years ago

Right now the scanner is sending the data to

https://cityio.media.mit.edu/api/table/urbam

However in case internet is not good in Hanoi we need to implement a local version, basically having the scanner sending a udp string

This is not implemented yet

khanhnt commented 4 years ago

Did you mean to implement something like cityio server locally to get the data sent from scanner and pass it to GAMA ? And the scanner will send data like this one send_json_to_UDP ?

benoitgaudou commented 4 years ago

Hi, Tu (a Vietnamese student working with Doanh on some projects related to the exhibition, including that one), has tested the scanner, and we were able together to make the scanner and GAMA sending information together without going through the server. Cheers

Benoit

agrignard commented 4 years ago

Ok so can we see (through a pull request) if we can integrate his work? The idea here is indeed to be able (just in case) to have the table working if the internet doesn't work. We will then just need to change a boolean in the scanner to send through UDP and another boolean in GAMA to listen through UDP.

agrignard commented 4 years ago

I didn't have time yet to test this settings, it is crucial to have this feature working

agrignard commented 4 years ago

This commit seems to have fix it. Will be tested tomorow on tje US site

However it seems that we need to install l a new version of GAMA which makes the model not compatible anymore with the offical Gama 1.8.... Maybe this need to be documented (at least to mention that the local version required a version greater than>1.8.?)

benoitgaudou commented 4 years ago

For the moment, no release of GAMA is available to test. This is still at the state of issue in GAMA: https://github.com/gama-platform/gama/issues/2906

To test on GAMA code source, just modified 1024 (cf. the GAMA issue) and replace it by 4096 for example.

The modification of the Grid landuse from UDP messages has been implemented in commit 8d3a7185b8b068363cd539bb9ee1a4007e3741ae

agrignard commented 4 years ago

maybe link to #31 ?