Merge pull request #123 from VAR-Virtual-Air-Rescue/staging
Bugfux und Node Exporter für Prometheus
This commit was merged in pull request #123.
This commit is contained in:
@@ -39,6 +39,7 @@ export const Audio = () => {
|
|||||||
removeMessage,
|
removeMessage,
|
||||||
} = useAudioStore();
|
} = useAudioStore();
|
||||||
const [selectedRoom, setSelectedRoom] = useState<string>("LST_01");
|
const [selectedRoom, setSelectedRoom] = useState<string>("LST_01");
|
||||||
|
|
||||||
useSounds({
|
useSounds({
|
||||||
isReceiving: speakingParticipants.length > 0,
|
isReceiving: speakingParticipants.length > 0,
|
||||||
isTransmitting: isTalking,
|
isTransmitting: isTalking,
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export const useSounds = ({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!window) return;
|
if (!window) return;
|
||||||
connectionStart.current = new Audio("/sounds/connection_started_sepura.mp3");
|
connectionStart.current = new Audio("/sounds/connection_started_sepura.mp3");
|
||||||
connectionEnd.current = new Audio("/sounds/connection_stoped_sepura.mp3");
|
connectionEnd.current = new Audio("/sounds/connection_stopped_sepura.mp3");
|
||||||
ownCallStarted.current = new Audio("/sounds/call_end_sepura.wav");
|
ownCallStarted.current = new Audio("/sounds/call_end_sepura.wav");
|
||||||
foreignCallStop.current = new Audio("/sounds/call_end_sepura.wav");
|
foreignCallStop.current = new Audio("/sounds/call_end_sepura.wav");
|
||||||
foreignCallBlocked.current = new Audio("/sounds/call_blocked_sepura.wav");
|
foreignCallBlocked.current = new Audio("/sounds/call_blocked_sepura.wav");
|
||||||
|
|||||||
@@ -251,10 +251,16 @@ export const useAudioStore = create<TalkState>((set, get) => ({
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
set({
|
if (oldSpeakingParticipants.length !== speakingParticipants.length) {
|
||||||
remoteParticipants: room.numParticipants === 0 ? 0 : room.numParticipants - 1, // Unreliable and delayed
|
set({
|
||||||
speakingParticipants,
|
remoteParticipants: room.numParticipants === 0 ? 0 : room.numParticipants - 1, // Unreliable and delayed
|
||||||
});
|
speakingParticipants,
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
set({
|
||||||
|
remoteParticipants: room.numParticipants === 0 ? 0 : room.numParticipants - 1, // Unreliable and delayed
|
||||||
|
});
|
||||||
|
}
|
||||||
}, 500);
|
}, 500);
|
||||||
} catch (error: Error | unknown) {
|
} catch (error: Error | unknown) {
|
||||||
console.error("Error occured: ", error);
|
console.error("Error occured: ", error);
|
||||||
|
|||||||
@@ -189,20 +189,9 @@ export const ProfileForm: React.FC<ProfileFormProps> = ({ user }: ProfileFormPro
|
|||||||
type="button"
|
type="button"
|
||||||
className="btn btn-sm btn-outline"
|
className="btn btn-sm btn-outline"
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
form.setValue(
|
form.setValue("permissions", ["LOGIN_NEXTCLOUD", "PILOT", "DISPO", "AUDIO"], {
|
||||||
"permissions",
|
shouldDirty: true,
|
||||||
[
|
})
|
||||||
"LOGIN_NEXTCLOUD",
|
|
||||||
"PILOT",
|
|
||||||
"DISPO",
|
|
||||||
"AUDIO",
|
|
||||||
"ADMIN_EVENT",
|
|
||||||
"ADMIN_HELIPORT",
|
|
||||||
],
|
|
||||||
{
|
|
||||||
shouldDirty: true,
|
|
||||||
},
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
onSubmit={() => false}
|
onSubmit={() => false}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -20,3 +20,10 @@ scrape_configs:
|
|||||||
- job_name: "traefik"
|
- job_name: "traefik"
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["traefik:8080"] # Traefik dashboard endpoint
|
- targets: ["traefik:8080"] # Traefik dashboard endpoint
|
||||||
|
- job_name: "Node Exporter"
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
[
|
||||||
|
"http://148.251.0.86:9100/metrics",
|
||||||
|
"http://148.251.0.86:9115/probe?target=https://virtualairrescue.com&module=http_2xx",
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user