CityScope / CS_CityIO

Serverside script for the cityscope platform
https://cityio.media.mit.edu
14 stars 8 forks source link

Cannot push to cityIO form GAMA #74

Closed agrignard closed 5 years ago

agrignard commented 5 years ago

This model is supposed to provide a generic read/write to cityIO. It used to work the push doesn't work anymore

It is using this url, is it the right one?

https://cityio.media.mit.edu/api/table/update/cityIO_Gama

See https://github.com/CityScope/CS_CityIO_Backend/tree/master/examples/GAMA/cityIO_Gama/models

yasushisakai commented 5 years ago

let me look into it

yasushisakai commented 5 years ago

weird, I can see it posting in my local env...

        try{
          //save(json_file("https://cityio.media.mit.edu/api/table/update/cityIO_Gama_Agent", outputMatrixData));
          write(outputMatrixData);      
          save(json_file("http://localhost:8080/api/table/update/test_gama", outputMatrixData));

this is what I did. does the below config change anything?

Capture

yasushisakai commented 5 years ago

https://cityio.media.mit.edu/api/table/Gama_test_Agents https://cityio.media.mit.edu/api/table/Gama_test_Grid

from: https://github.com/CityScope/CS_CityIO_Backend/blob/gama_example_test/examples/GAMA/cityIO_Gama/models/cityIO.gaml

I see it running as expected??

agrignard commented 5 years ago

It is ok now. I don't what was not working on Friday. Thanks for having a look.

I am closing this issue

agrignard commented 5 years ago

We cannot push anymore a url to cityIO using this url

https://cityio.media.mit.edu/api/table/update/cityIO_Gama

Also see https://github.com/CityScope/CS_Simulation_GAMA/issues/52