¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 22 de 22 · Multimedia

NE-5. OpenWeather API, process.argv and files

Kostas Diakogiannis

NE-5. OpenWeather API, process.argv and files

NE-5. OpenWeather API with process.argv and file writing

OK! Let's try to make a final assessment of what we have learned on all basic node.js skills. 

We will try to combine everything in one exercise. You will have to run a script from node.js command line that will be of the form `node index.js rome` and this will bring all the information for the current weather from Rome and will write it (append it) into a new line of a .txt file. 

If you run again with another city, then the name  of the city and the temperature of it for that day should be written in a new line below the previous one. So the format of your .txt after 5 request to Berlin, Stockholm, Hamburg, Beijing, Tokyo should like like this:

Berlin 15°c 

Stockholm 11°c 

Hamburg 13°c 

Beijing 17°c 

Tokyo 9°c 

Have fun!

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?