Электрон, системное уведомление и воспроизведение звукаLinux

Ответить Пред. темаСлед. тема
Anonymous
 Электрон, системное уведомление и воспроизведение звука

Сообщение Anonymous »


I have electron setup with my Ubuntu box , however no matter what i try I can't get this to work

ty// Variable to track if notification has been sent let notificationSent = false; // Function to update the countdown function updateCountdown() { // Read the JSON file fs.readFile(jsonFilePath, "utf8", (err, data) => { if (err) { console.error("Error reading file:", err); return; } try { // Parse the JSON data const jsonData = JSON.parse(data); // Get current UTC time let now = new Date(); // Initialize variables to hold current and next activations let currentActivation = null; let nextActivation = null; // Iterate over the gates and lines for (let gate in jsonData) { let lines = jsonData[gate]; for (let line in lines) { let lineTime = new Date(lines[line]); // If the activation time is in the past compared to the current time if (lineTime

Источник: https://stackoverflow.com/questions/781 ... ying-sound
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Linux»