updated codebase to allow for external access
This commit is contained in:
parent
ba11c8d352
commit
e69000657c
@ -10,5 +10,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./simulator/wristband_config.yaml:/app/simulator/wristband_config.yaml
|
- ./simulator/wristband_config.yaml:/app/simulator/wristband_config.yaml
|
||||||
- ./vitallink.db:/app/vitallink.db
|
- ./vitallink.db:/app/vitallink.db
|
||||||
|
environment:
|
||||||
|
- HOST_IP=192.168.65.227 # Pi's IP
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: host
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import PatientDetailModal from './PatientDetailModal'; // ADD THIS IMPORT
|
|||||||
|
|
||||||
const { Activity, AlertCircle, Clock, Users, Bell, Heart, Thermometer, Wind, CheckCircle, UserX } = LucideIcons;
|
const { Activity, AlertCircle, Clock, Users, Bell, Heart, Thermometer, Wind, CheckCircle, UserX } = LucideIcons;
|
||||||
|
|
||||||
const API_BASE = 'http://localhost:8000';
|
const API_BASE = 'http://${window.location.hostname}:8000';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [patients, setPatients] = useState([]);
|
const [patients, setPatients] = useState([]);
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
|
|||||||
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer, ReferenceLine } from 'recharts';
|
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer, ReferenceLine } from 'recharts';
|
||||||
import { X, TrendingUp, TrendingDown, Activity, Heart, Wind, Thermometer } from 'lucide-react';
|
import { X, TrendingUp, TrendingDown, Activity, Heart, Wind, Thermometer } from 'lucide-react';
|
||||||
|
|
||||||
const API_BASE = 'http://localhost:8000';
|
const API_BASE = 'http://${window.location.hostname}:8000';
|
||||||
|
|
||||||
const PatientDetailModal = ({ patient, onClose }) => {
|
const PatientDetailModal = ({ patient, onClose }) => {
|
||||||
const [vitalsHistory, setVitalsHistory] = useState([]);
|
const [vitalsHistory, setVitalsHistory] = useState([]);
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { AlertCircle, CheckCircle, Clock, User } from 'lucide-react';
|
|||||||
import Keyboard from "react-simple-keyboard";
|
import Keyboard from "react-simple-keyboard";
|
||||||
import "react-simple-keyboard/build/css/index.css";
|
import "react-simple-keyboard/build/css/index.css";
|
||||||
|
|
||||||
const API_BASE = 'http://localhost:8000';
|
const API_BASE = 'http://${window.location.hostname}:8000';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [step, setStep] = useState('welcome');
|
const [step, setStep] = useState('welcome');
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user