Skip to content

Instantly share code, notes, and snippets.

@johnmckerrell
Last active August 11, 2021 09:59
Show Gist options
  • Save johnmckerrell/54877cd0e15a7f4364736458f2752f96 to your computer and use it in GitHub Desktop.
Save johnmckerrell/54877cd0e15a7f4364736458f2752f96 to your computer and use it in GitHub Desktop.
# This has now been released as a real node-red module - node-red-contrib-xvfb - use that rather than copying code from here
@johnmckerrell
Copy link
Author

[object Object] doesn't sound like an error? Sounds more like it's just logging the object you just created? I really should just publish this as a proper node!

Copy link

ghost commented Dec 14, 2020

Your correct. I restarted my server now, and the plugin was successfully added.

@saran13raj
Copy link

saran13raj commented Jan 21, 2021

In line 40 -- shouldn't the method be EndXvfb? Or is there a reason they both are StartXvfb in line 39 and 40

@johnmckerrell
Copy link
Author

johnmckerrell commented Jan 21, 2021

@Saran-13 No I think you're right. I suppose it doesn't come up for me as I keep the browser around on the flow rather than recreating it so I don't generally need to end the XVFB. Looks like it was in the original gist that I based mine on[1] but I suspect it's just a typo.

  1. https://gist.github.com/rybycy/ebba8b0e1bd0b874f7282f4dc5e68fa1

@finch6
Copy link

finch6 commented Aug 9, 2021

@johnmckerrell, have you though much more about publishing this a s a proper node?? 😁
I'm struggling to make a node for Node Red...

@finch6
Copy link

finch6 commented Aug 9, 2021

I'm getting the same error that @lnklud got...

{"Error":{"code":"MODULE_NOT_FOUND"}}

@johnmckerrell
Copy link
Author

@finch6 have you manually installed the XVFB node-red package? Yes I have been thinking of publishing this as a proper node, I've done my first NPM package elsewhere so shouldn't take too much effort when I find time!

@finch6
Copy link

finch6 commented Aug 9, 2021

I have... But it seems I'm having the same issue as Dimey on the How to: RaspberryPi Headless Mode (no GUI/Window Manager) page...

I installed it as he did in the post I have linked... But I'm pretty sure I have missed something... *I'm VERY new to all of this stuff...

If you would be able to publish the node, I think you'd be up for president!! Well it would make my day at least!!

@johnmckerrell
Copy link
Author

https://flows.nodered.org/node/node-red-contrib-xvfb

🎉

I haven't independently tested it tbh but it's the same code as I've been using so it should work, would help if you could confirm!

@finch6
Copy link

finch6 commented Aug 9, 2021

Whoah....! That was quick!!!
Installing and will update you shortly...!

@finch6
Copy link

finch6 commented Aug 9, 2021

getting this in the Node Palette Error: start-xvfb already registered (line:22)
Just have to work out which file it's in... Obviously conflicting with my previous install of your goodie

@finch6
Copy link

finch6 commented Aug 9, 2021

Ok, so I just needed to reboot my Pi....
But I'm still getting the same "MODULE_NOT_FOUND"

So it must be something that I haven't installed correctly... 🤦🏼‍♂️

@johnmckerrell
Copy link
Author

To confirm I'm now running the released module myself and it seems to be working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment