Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriksen-mark committed Oct 30, 2024
1 parent 0c25eae commit b0f4a74
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 216 deletions.
4 changes: 4 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ const loading = (
const App = () => {
const [API_KEY, setAPI_KEY] = useState();

//const HOST_IP = "http://localhost"; // Pass the IP (http://x.x.x.x) of the diyHue Bridge, if running through npm start
//const HOST_IP = "http://192.168.1.25"; // Pass the IP (http://x.x.x.x) of the diyHue Bridge, if running through npm start
//const HOST_IP = "http://192.168.1.11"; // Pass the IP (http://x.x.x.x) of the diyHue Bridge, if running through npm start
//const HOST_IP = "http://192.168.1.3"; // Pass the IP (http://x.x.x.x) of the diyHue Bridge, if running through npm start
const HOST_IP = ""; // Pass the IP (http://x.x.x.x) of the diyHue Bridge, if running through npm start

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/Bridge.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Bridge = ({ HOST_IP, API_KEY }) => {
axios
.get(`${HOST_IP}/api/${API_KEY}/config`)
.then((result) => {
//console.log(result.data);
console.log(result.data);
setBridgeName(result.data["name"]);
setSwversion(result.data["swversion"]);
setApiVersion(result.data["apiversion"]);
Expand Down
6 changes: 0 additions & 6 deletions src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";
//import ReactDOM from "react-dom";
import * as serviceWorkerRegistration from './serviceWorkerRegistration';
import { createRoot } from "react-dom/client";

import App from "./App";
Expand All @@ -11,8 +10,3 @@ root.render(
<App />
</React.StrictMode>
);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://cra.link/PWA
serviceWorkerRegistration.register();
72 changes: 0 additions & 72 deletions src/service-worker.jsx

This file was deleted.

137 changes: 0 additions & 137 deletions src/serviceWorkerRegistration.jsx

This file was deleted.

0 comments on commit b0f4a74

Please sign in to comment.