Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.2.0-alpha1 broke the "Now Playing" video feed #39

Open
martinorob opened this issue Apr 18, 2017 · 6 comments
Open

0.2.0-alpha1 broke the "Now Playing" video feed #39

martinorob opened this issue Apr 18, 2017 · 6 comments

Comments

@martinorob
Copy link

0.2.0-alpha1 broke the "Now Playing" video feed,
in /tmp/ there is a homebridge-itunes-nowplaying.txt
with the text of the song but no jpg and in the home app there are no new accessories to add.

(the alpha0 work's good)

@SphtKr
Copy link
Owner

SphtKr commented Apr 18, 2017

Hmm! I don't think I intended to change the default behavior, but I might have--and that feature is now configurable. If you have Hesperus, configure the bridge and enable the now playing feature. (If you don't have Hesperus, add "enable_now_playing": true to the iTunes platform block in config.json.) if that fixes it, let me know...I'll research it more tomorrow one way or the other.

@martinorob
Copy link
Author

added "enable_now_playing": true to the config
"platforms": [{
"platform": "iTunes",
"enable_now_playing": true
}, {
"platform": "Camera-ffmpeg",
"cameras": [{
"name": "iTunes Now Playing",
"videoConfig": {
"source": "-re -loop 1 -framerate 1 -r 1 -i /tmp/homebridge-itunes-nowplaying.jpg",
"maxStreams": 2,
"maxWidth": 480,
"maxHeight": 480,
"maxFPS": 2
}
}]

removed cachedaccessories but nothing.
(but now in /tmp/ I have homebridge-itunes-artwork.jpg homebridge-itunes-nowplaying.jpg
homebridge-itunes-artwork.tmp homebridge-itunes-nowplaying.txt )

Log say that I have 5 webcam (that is true) but no new webcam "iTunes Now Playing" is showing on the Add new device in HomeKit app. (yes, I don't use Hesperus)

Thanks for your support!

@SphtKr
Copy link
Owner

SphtKr commented Apr 19, 2017

Oh...I misunderstood the problem a little. Are your other 5 webcams also using camera-ffmpeg? If so can I see your entire config.json (minus PIN and any sensitive info)?

For what it's worth, I'm testing creation of the now-playing images here and got a little bit of a weird result, my main iTunes system had to be rebooted before it would behave, no idea why. But, now it's working as expected, as well as my laptop where I do my development.

@martinorob
Copy link
Author

martinorob commented Apr 19, 2017

Yes, my other 4 webcams also using camera-ffmpeg
Here is my config

https://pastebin.com/YdSgvdp9

@martinorob
Copy link
Author

any news? Thanks

@SphtKr
Copy link
Owner

SphtKr commented Apr 30, 2017

Looking at this again now. I don't see anything wrong with your config at least. I'm having problems myself now but with all my cameras. Think this might be a problem with ffmpeg itself, or at least on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants