Skip to content

ging/Poc_LLM_CB_FIWARE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poc_LLM_CB_FIWARE

Deployment

Download the desired map

Download and copy the desired .mbtiles in the ./src/map folder

  1. Madrid Map
  2. Naples Map

Serve the map

cd src/map
docker run -it -v $(pwd):/data -p 8080:8080 maptiler/tileserver-gl:v4.6.6 --verbose

You can access localhost:8080 to see if the map was loaded correctly

Configure API OPEN-AI

cd src
cp template.env .env
# modify OPENAI_API_KEY with your OPENAI_API_KEY 

Configure the map

Modify .env with the initial position to be loaded

# MADRID -> 41.65606, -0.87734
# NAPLES -> 40.85216, 14.26811 
INITIAL_LATITUDE=40.85216
INITIAL_LONGITUDE=14.26811
INITIAL_ZOOM=10

Build the POC

cd src
npm install
npm run build

Start FIWARE GEs

cd src
docker compose up -d

Populate Context Broker with entities:

cd src/data
./generated_provision_{city}.sh # city you loaded the map

Start playing

Open index.html and start playing...

Screenshot

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •