mirror of
https://github.com/NotAShelf/air-quality-monitor.git
synced 2024-11-22 21:31:11 +00:00
Update index.html (#17)
Remove hard-coded URL (hard-coded IP address). Fixes an issue where the web server crashes shortly after launch.
This commit is contained in:
parent
c6ff5cb22b
commit
75b5109cf3
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.3.2/chart.min.js" integrity="sha512-VCHVc5miKoln972iJPvkQrUYYq7XpxXzvqNfiul1H4aZDwGBGC0lq373KNleaB2LpnC2a/iNfE5zoRYmB4TRDQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.3.2/chart.min.js" integrity="sha512-VCHVc5miKoln972iJPvkQrUYYq7XpxXzvqNfiul1H4aZDwGBGC0lq373KNleaB2LpnC2a/iNfE5zoRYmB4TRDQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
$.getJSON('http://10.0.0.172:8000/api/', function(data) {
|
$.getJSON('/api/', function(data) {
|
||||||
var ctx = document.getElementById('historicalChart').getContext('2d');
|
var ctx = document.getElementById('historicalChart').getContext('2d');
|
||||||
var historicalChart = new Chart(ctx, {
|
var historicalChart = new Chart(ctx, {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
|
@ -56,4 +56,4 @@
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue