I'm programming a website where you can choose mp3's to play from a playlist. The webiste must be accessed from a Raspberry Pi. The Raspberry has 3 buttons(next, previous, pause). Can I control the playlist with the buttons? So when I press next, the next song on the website will start.
Thanks!
You probably could make a file containing a variable. every few seconds the website loads that file via java script and checks the value. When you press a key on the RPi, you could change that value, the website will read it (and reset it) and change the song. I would generate this file via PHP, as this can be run on the server and on command line.
you can attach a listener on the keypress of a keyboard touch and make a I/O for the raspberry, could it be okay for you?
Related
help me please. How to make a button for downloading a file with fireStorage in flutterflow.io and a button for opening this file in a standard program?
I just want people to be able to download, for example, a book in my application and open it without searching on the phone with the button from my application. The file itself would then be opened in a standard program for it. It's only about android.
If there are solutions without the flutterflow.io service, then write where you can make such an application without programming knowledge.
I have a barcode scanner which automatically outputs the barcode into whichever app you have open in the USB attached windows PC, if it can handle it. For example if I have chrome open, I click the address bar and then scan it outputs to there. Similarly if I click on a website textarea and then scan it'll dump it in there.
I have a simple flutter application which I simply want to detect the scan receival. I don't care how, but I don't even know what exactly to search for to get my answer. My aim is to have a windows app in flutter, which when I scan a barcode it receives this, displays the product details in the flutter screen (aka needs an API call straight after getting the scan). Any help on even what topic to search for will help, cheers.
Barcode scanner: Symcode MJ-340 Automatic Desktop USB Wired Barcode Scanner.
After a lot of trial and error I worked out that a common way to interact for barcodes through USB to apps is via the USB HID aka keyboard presses. By wrapping the app around a RawkeyboardListener with autofocus true, you can filter via RawKeyUpEvent (or down) and then simply set the state.
In my case, it always ended with an enter key to detect the end of a code.
I am trying to communicate between arduino blutooth HC-05 and ionic app.
I have succesfully connected the app to blutooth device and I am able to to read the data from the arduino and everything is fine.However, when I send data from arduino to the application it stores the data in a buffer and wait for someone to click a button in the app and read the data.
How can I read the data from the buffer contiuosly without the need to click any button in ionic and depeding on that value it keep navigating through the app?
Here is the code of the select device page where the user choose which device to control. Example: when arduino send '1' to ionic, it should enter the light page, and if it recieve '2',it should enter Ac box and so on.
This code works,but I must click the button to read data from buffer and then navigate to different pages.
How can I keep checking if data in buffer continuously untill I read either 1,2,3,or 4 without the need to click any button.
Attached are the codes
HTML FILE
TypeScript file
I have a button hooked up to a raspberry pi that is running a node server. I am using Socket.IO to interface with said server. The node server works well and when the button is pressed emits to the phone.
Basically all I want to do is have a label in the view that says "Button is Currently Pressed/Button is not Currently Pressed". I want to do this asynchronously in swift, so I can add other features later on that won't interfere with checking that button state. I haven't really found any good leads by google.
Thanks for any help or suggestions!
Me and some people are making and selling some physical drum machines, where if you press a button on a board, a related sound is played. Now I'm familiar with Microsoft Small basic and visual and html, however I'm not sure on programming the physical button to play an mp3 audio file, and set it so that you can choose a category of sounds too, thus If you press
Say a number on the machine, then the sounds played will be different. How would I go about doing this? I'm thinking of using a raspberry pi. Also if you could leave an email too, as I may need future help.
You should check out a Chumby Hacker board instead of a raspberry pi as they have audio inputs and inputs included.
This site will tell you all you need to know about the required code for the button.
https://learn.adafruit.com/playing-sounds-and-using-buttons-with-raspberry-pi/overview
While I hour this helps, please keep in mind that this site is for people who have already tried to solve their problem and failed. I produced this answer with a Google search and 5 minutes of reading.