Skip to content

This is a simulator to show real-time temperature logs from remote sensor.

Notifications You must be signed in to change notification settings

ermannolocascio/realtime-temp-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Realtime Temperature Simulator

This simulator displays temperature logs from a remote sensor in real-time.

To emulate data streaming, I'm using JavaScript to execute two functions via AJAX: sim_th.php (simulating sensor logs) and query_th.php (used to retrieve simulated measurements from the MySQL database). These functions are called via AJAX every 1.4 and 1.6 seconds. After retrieving the current simulated measurement, the chart is updated. If the maximum number of data points is reached on the chart, the chart will shift with every new element added (i.e., with every new query).

The data simulator (sim_th.php) will eventually be replaced by real sensor measurements, with an Arduino ESP 132 being employed in the future.

Note: This is a personal project.

About

This is a simulator to show real-time temperature logs from remote sensor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages