dnpwwo / Domoticz-Google-Plugin

MIT License
40 stars 10 forks source link

Notification only works the first time #39

Open wussuphaters opened 2 years ago

wussuphaters commented 2 years ago

Hi,

When my Lua script is triggered and I send text to my Home Mini, i hear the beep followed by my text. But during the following script calls, I only hear the beep, or the beep and, faintly, the first letter of my notification. When I restart Domoticz it works fine again once, then doesn't. Any idea why ? I get no error logs even though they all logs are enabled for this plugin.

jotheman0303 commented 2 years ago

Yep, same issue here... Is this project still being supported? I see little updates on it lately

atmfrenki commented 2 years ago

Same here, looks like the MP3 file created gets deleted to fast, domoticz log says xxxxx.MP3 does not exist

Xenomes commented 2 years ago

The same problem here, my Pi is little bit overloaded, so i blame that as the issue. added/changed these lines. Its better not perfect every time. afbeelding

jotheman0303 commented 2 years ago

The same problem here, my Pi is little bit overloaded, so i blame that as the issue. added/changed these lines. Its better not perfect every time. afbeelding

That looks like a good workaround at least. Can you explain a bit on where this should be changed (the file and its location)? Would help me out greatly. Thanks in advance!

atmfrenki commented 2 years ago

The same problem here, my Pi is little bit overloaded, so i blame that as the issue. added/changed these lines. Its better not perfect every time. afbeelding

That looks like a good workaround at least. Can you explain a bit on where this should be changed (the file and its location)? Would help me out greatly. Thanks in advance!

It is in the plugin.py file in your plugin folder of the Domoticz-Google-Plugin. /domoticz/plugins/Domoticz-Google-Plugin

The 1st (time.sleep(2.0) is a blank line, so add it completely The 2nd is an adjustment of an existing value: time.sleep(1.0) -> time.sleep(4.0)

I'm testing this out. Thanks Xenomes

Update: it works pretty good. I installed pychromecast 9.2.1

jotheman0303 commented 2 years ago

The same problem here, my Pi is little bit overloaded, so i blame that as the issue. added/changed these lines. Its better not perfect every time. afbeelding

That looks like a good workaround at least. Can you explain a bit on where this should be changed (the file and its location)? Would help me out greatly. Thanks in advance!

It is in the plugin.py file in your plugin folder of the Domoticz-Google-Plugin. /domoticz/plugins/Domoticz-Google-Plugin

The 1st (time.sleep(2.0) is a blank line, so add it completely The 2nd is an adjustment of an existing value: time.sleep(1.0) -> time.sleep(4.0)

I'm testing this out. Thanks Xenomes

Update: it works pretty good. I installed pychromecast 9.2.1

This works great indeed! Put mine on 2/5 and its great, no issues at all anymore! Thanks everyone!