I couldn't run the IoT sensor Tutorial

asked 2021-11-17 09:48:35 +0100

hadi gravatar image

Hi guys, I'm newbie to Fiware and computer stuff. I'm trying to learn the Fiware IoT sensor tutorial, but when I try to run these commands in the CMD:

git clone git@github.com:Fiware/tutorials.IoT-Sensors.git cd tutorials.IoT-Sensors

./services create; ./services start;

it just open the "services" file in the notepad and nothing will happen. and also the "http://localhost:3000/device/monitor" won't open.

I tried changing the "services" section of "docker-compose.yml" file in the directory as mentioned in the tutorial and then tried to run the "docker-compose -p fiware up -d" command but I get this error :

ERROR: yaml.parser.ParserError: while parsing a block mapping in ".\docker-compose.yml", line 19, column 1 expected <block end="">, but found '<block mapping="" start="">' in ".\docker-compose.yml", line 61, column 3

edit retag flag offensive close merge delete


Copy-Pasting the original docker-compose file into https://yamlvalidator.com shows that the original file is already valid YAML

Jason Fox gravatar imageJason Fox ( 2021-11-23 12:27:56 +0100 )edit

The tutorial documentation clearly states various prerequisites are required see: https://fiware-tutorials.readthedocs.io/en/latest/ - do you have the correct versions of Docker, Docker Compose and Cygwin for Windows running successfully?

Jason Fox gravatar imageJason Fox ( 2021-11-23 12:35:48 +0100 )edit

If you are running Windows, you should follow the instructions here: https://www.poftut.com/install-use-cygwin-terminal-ssh-examples/ to ensure you have a working Cygwin command line. Obviously the install will depend on the underlying Windows version.

Jason Fox gravatar imageJason Fox ( 2021-11-23 12:39:28 +0100 )edit