I have an Electron that reads the data from a temperature sensor. Every 15 minutes, this electronic takes the data and compares it with a variable, if the temperature is below, it sends a JSON to the server.
The routine works, but this variable has a fixed value. My idea would be for that variable to be stored in my ElasticSearch and when the Electron connects, ask the Elastic Via Node what the value of that variable is.
Can you help me on how to do this? is it possible that the Electron will “request” a data directly to my Node without going through an API intermediary?
Thank you so much