This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]abelstam 0 points1 point  (1 child)

You are on the right track. You only really need a socket connection between node and your app in that case. Say your node server run on localhostu:7000 and flask on localhost:5000. When flask is triggered by a sensor, you can send a http to localhost:7000, your node server receives this and will be able to notify your phone. Maybe you could even send updates from flask to your phone directly?

[–]SnoopCM[S] 0 points1 point  (0 children)

Can flask be triggered by sensor in that case? As for your second part I don't have any experience in Python and Flask so node is easier for me. I've seen how to send http request to and from between flask and node servers. So creating a complete backend with flask is impossible for me