Show the evolution of COD-19 by country ( Cases ,deaths,recovered, etc)

Show the evolution of COD-19 by country ( Cases ,deaths,recovered, etc)

[{"id":"d59eb24a.5a34b","type":"http request","z":"f6fc3c86.9cfdd","name":"Covid-19 API Portugal","method":"GET","ret":"obj","paytoqs":false,"url":"https://coronavirus-19-api.herokuapp.com/countries/Portugal","tls":"","proxy":"","authType":"basic","x":140,"y":460,"wires":[["f86c84ce.e423f8"]]},{"id":"4a9c3152.b76e1","type":"inject","z":"f6fc3c86.9cfdd","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"0 9-22 * * *","once":false,"onceDelay":0.1,"x":110,"y":420,"wires":[["d59eb24a.5a34b"]]},{"id":"f86c84ce.e423f8","type":"function","z":"f6fc3c86.9cfdd","name":"Função para deixar tudo direitinho","func":"var mensagem = \"Total de Casos em Portugal: \"  + msg.payload.cases +  \n\"\\n Casos de hoje: \" + msg.payload.todayCases + \n\"\\n Mortes Confirmadas: \"  + msg.payload.deaths + \n\"\\n Mortes Confirmadas de HOJE: \"  + msg.payload.todayDeaths +\n\"\\n Casos recuperados: \"  + msg.payload.recovered +\n\"\\n Casos activos: \"  + msg.payload.active +\n\"\\n Casos Criticos: \"  + msg.payload.critical +\n\"\\n Casos em 1 Milhao: \"  + msg.payload.casesPerOneMillion ;\n\nmsg.payload = mensagem;\nmsg.topic = mensagem;\n\nreturn msg;\n","outputs":1,"noerr":0,"x":180,"y":500,"wires":[["5f6265c6.6e868c"]]},{"id":"5f6265c6.6e868c","type":"rbe","z":"f6fc3c86.9cfdd","name":"Continue apenas se o valor mudar","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":180,"y":540,"wires":[["d7e97af1.723d58"]]},{"id":"d7e97af1.723d58","type":"debug","z":"f6fc3c86.9cfdd","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":110,"y":580,"wires":[]}]

Flow Info

Created 6 years, 6 months ago
Rating: 5 1

Actions

Rate:

Node Types

Core
  • debug (x1)
  • function (x1)
  • http request (x1)
  • inject (x1)
  • rbe (x1)

Tags

  • Cod-19
  • coronavirus
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option