diff --git a/README.md b/README.md index a97bcc3..97a21d3 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,13 @@ a bluetooth device connected to the beacon app. `https://overlays.rtirl.com/cycling_cadence/rpm.html?key=` +## Cycling Power + +This overlay renders the cycling power in watts (W). This requires a bluetooth +device connected to the beacon app. + +`https://overlays.rtirl.com/power/wattage.html?key=` + ## StreamElements If you would like to display RealtimeIRL data using StreamElements overlays, you will need to add a Custom widget and then add the iFrame to the HTML section. (Settings > Open Editor) diff --git a/web-editor/src/App.js b/web-editor/src/App.js index 91e06e1..d4f5a95 100644 --- a/web-editor/src/App.js +++ b/web-editor/src/App.js @@ -22,6 +22,7 @@ import SpeedEditor from "./screen/SpeedEditor"; import WeatherEditor from "./screen/WeatherEditor"; import HeartRateEditor from "./screen/HeartRateEditor"; import CyclingCadenceEditor from "./screen/CyclingCadenceEditor"; +import CyclingPowerEditor from "./screen/CyclingPowerEditor"; import editorTheme from "./theme/editorTheme"; function useQuery() { @@ -200,6 +201,18 @@ function App() { /> } /> + + } + /> diff --git a/web-editor/src/screen/CyclingPowerEditor.jsx b/web-editor/src/screen/CyclingPowerEditor.jsx new file mode 100644 index 0000000..ad0be3f --- /dev/null +++ b/web-editor/src/screen/CyclingPowerEditor.jsx @@ -0,0 +1,67 @@ +import { Box, Grid, Typography } from "@mui/material"; +import OverlayExportPanel from "../component/OverlayExportPanel"; +import PullKeyInput from "../component/PullKeyInput"; +import TextOverlayPreview from "../component/TextOverlayPreview"; +import { TextSettings } from "../component/TextSettings"; +import { scrollbarStyles } from "../theme/editorTheme"; + +function CyclingPowerEditor({ + pullKey, + onPullKeyChange, + textStyle, + onTextStyleChange, +}) { + const url = `https://overlays.rtirl.com/power/wattage.html?key=${pullKey.value}`; + + return ( + + + + + + + + Export + + + + + + + + + + + + + ); +} + +export default CyclingPowerEditor; diff --git a/web-editor/src/screen/Home.jsx b/web-editor/src/screen/Home.jsx index adb2be5..d5b995e 100644 --- a/web-editor/src/screen/Home.jsx +++ b/web-editor/src/screen/Home.jsx @@ -92,6 +92,11 @@ const pages = [ route: "/cycling_cadence", text: "75 rpm", }, + { + name: "Cycling Power", + route: "/cycling_power", + text: "250 W", + }, ]; export const Home = (props) => {