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

No picture in camera #6

Closed
RienduPre opened this issue Feb 6, 2019 · 11 comments
Closed

No picture in camera #6

RienduPre opened this issue Feb 6, 2019 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@RienduPre
Copy link

Hi,

I use a homebridge on a RPi. Chromium is running fine and I can open url's on the desktop of the RPi.
I see no related errors in the log, just some initialization messages, which seems to be normal

When I add a camera I see
[website-camera] Starting new instance of Chromium: /usr/bin/chromium-browser
[website-camera] Chromium started
[website-camera] Opening new page

For both of the camera's

The problem is that there is no web page shown in the homekit app.

image

Thank you for any help you can give me
Rien

@werthdavid werthdavid self-assigned this Feb 7, 2019
@werthdavid werthdavid added the bug Something isn't working label Feb 7, 2019
@werthdavid
Copy link
Owner

I'll have a look

@RienduPre
Copy link
Author

Any clues yet?

@werthdavid
Copy link
Owner

Sorry for the delay... My homebridge on RPi3 crashed and the one running on RPi Zero is to weak for chromium.. Currently struggeling setting up a new Homebridge on the Pi 3, my iPhone won't find it.. But I'm on it!

@werthdavid
Copy link
Owner

For me everything works fine with a fresh installation...
Log Output looks like this:
[2/18/2019, 12:41:13 PM] [website-camera] identify
[2/18/2019, 12:41:19 PM] [website-camera] Starting new instance of Chromium: /usr/bin/chromium-browser
[2/18/2019, 12:41:28 PM] [website-camera] Chromium started
[2/18/2019, 12:41:28 PM] [website-camera] Opening new page
[2/18/2019, 12:41:29 PM] [website-camera] Setting Viewport to 960x540
[2/18/2019, 12:41:29 PM] [website-camera] Going to page: http://github.com
[2/18/2019, 12:41:32 PM] [website-camera] Created screenshot
[2/18/2019, 12:41:32 PM] [website-camera] Got screenshot

What website are you calling? Is it a RPi 3?

@RienduPre
Copy link
Author

Hi,

I use an RPi 3

See below my config.json part of the plugin

{
"platform": "website-camera",
"cameras": [
{
"name": "Google Maps Traffic",
"url": "http://google.com",
"height": 1334,
"width": 750
},
{
"name": "Google Maps Traffic #2",
"url": "http://google.com",
"scale": 1
}
]
}

@werthdavid
Copy link
Owner

Can you (first stop and then) start homebridge manually with "homebridge -D" and the open the Home App (so a refresh is triggered) and the provide the log output?

@werthdavid
Copy link
Owner

werthdavid commented Feb 18, 2019

Another idea would be to add the path of the Chromium-executable:

config.json

"platforms": [
         {
         "platform": "website-camera",
         "cameras": [
            {
               "name": "Website 1",
               "url": "http://maps.google.com",
               "chromiumPath": "/usr/bin/chromium-browser"
            }
         ]
      }
  ]

@RienduPre
Copy link
Author

Hi,
Sorry for the late response.
With debug on, there is no more logging than the ones I see in normal mode.
Specifying the chromium path does not have any effect either.

@werthdavid
Copy link
Owner

Hey,
so I found a Bug with puppeteer
puppeteer/puppeteer#1409

I'll release a new version for you

@werthdavid
Copy link
Owner

Please install 1.2.2 and try again!

@RienduPre
Copy link
Author

Sorry for the late response (was on vacation)
Issue is solved !!
Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants