-
Simulate a live time series voltage & temperature data stream from Node-RED.
-
Push the said data stream from Node-RED to Google Firebase Realtime Database using any HTTP client in Node-RED.
-
The data stored in Firebase needs to have the following structure:
-
Voltage:
The
keyfor the stored json data should be the epoch at which the data was generated and the voltagevaluegenerated at that time.interface Voltage { [timestamp: string]: number; }
Example:
{ "1663306125368": 35, "1663306125390": 32 } -
Temperature:
The
keyfor the stored json data should be the epoch at which the data was generated and the temperaturevaluegenerated at that time.interface Temperature { [timestamp: string]: number; }
Example:
{ "1663306125368": 27, "1663306125390": 21 }
-
-
Once the data starts coming into Firebase, keep fetching it in your app and plot following live charts:
- Realtime data of voltage and temperature in one graph.
- Average data per 3 minutes of voltage.
- Average data per 3 minutes of Temperature.
vaishnav-noovosoft/simulation-with-node-red
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|