Python Forum
Creating An Alert Tone through a python gui on chromium.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating An Alert Tone through a python gui on chromium.
#1
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
Reply
#2
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
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020