Python Forum
Creating An Alert Tone through a python gui on chromium. - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: Creating An Alert Tone through a python gui on chromium. (/thread-11933.html)



Creating An Alert Tone through a python gui on chromium. - Fluffyyyzzz - Aug-01-2018

Good day,

I am busy working for a company that uses Raspberry Pi's with Raspbian. We are using Chromium and a Python Gui to view a dashboard. The dash board shows bar graphs with green, amber and red, obviously the darker the colour, the more serious it is. I have being asked to see if I am able to write code so when the bar graph turns amber-80% is sends through a sound notification tone and when it goes to red 90% is send though a different one or repeat the same one twice.

If you need any more info please let me know. Also are there any good sites to help? Is this possible? I'm sure it is though.

Thanks. Dance


RE: Creating An Alert Tone through a python gui on chromium. - buran - Aug-02-2018

well, this sound as easy as play a sound (audio file) when bar turns amber or red. there are plenty of options - just choose one that most suits you.

https://www.google.com/search?q=play+sounds+python