Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
homebridge-omxplayer
Advanced tools
Play or stop any youtube/videos/audio using omxplayer on raspberry pi https://github.com/oronbz/homebridge-omxplayer.
A Raspberry Pi (only) Plugin to download and play any YouTube video or a local video file using omxplayer
.
"accessories": [
{
"accessory": "OmxPlayer",
"name": "OmxPlayer",
"youtube": "https://www.youtube.com/watch?v=lf_wVfwpfp8"
}
]
"accessories": [
{
"accessory": "OmxPlayer",
"name": "OmxPlayer",
"filename": "my_video.mp4"
}
]
This plugin is great for getting some music and videos into scenes and automations, for example:
Basically, all you need to do is:
When using the switch (with Youtube), only for the first time, the video will be downloaded which should take a few seconds. Every time the Raspberry will be rebooted, all saved (youtube) videos will be deleted from the device.
sudo apt-get install omxplayer
sudo npm install -g homebridge-omxplayer
The raspberry pi should be logged in with the same user that runs homebridge. It is suggested to use auto-login when Raspberry rebooted.
If you're running homebridge
on a different user than pi
you may have permission issues. Try running the following commands:
sudo usermod -a -G video $(whoami)
sudo chmod 777 /usr/lib/node_modules/homebridge-omxplayer/node_modules/youtube-dl/bin/youtube-dl
Delete any .mp4
files inside your /tmp
folder.
Make sure your home
folder exists at /home/USERNAME
and run sudo chmod -R 0777 /home/USERNAME
Reboot and try again.
This plugin was inspired by homebridge-dummy by @nfarina and the idea for this plugin came from my little brother @nitaybz which has written many other plugins already, so you should definitely explore his repos too: https://github.com/nitaybz?tab=repositories
FAQs
Play or stop any youtube/videos/audio using omxplayer on raspberry pi https://github.com/oronbz/homebridge-omxplayer.
The npm package homebridge-omxplayer receives a total of 3 weekly downloads. As such, homebridge-omxplayer popularity was classified as not popular.
We found that homebridge-omxplayer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.