-
-
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 |
[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!
Your correct. I restarted my server now, and the plugin was successfully added.
In line 40 -- shouldn't the method be EndXvfb? Or is there a reason they both are StartXvfb in line 39 and 40
@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.
@johnmckerrell, have you though much more about publishing this a s a proper node?? 😁
I'm struggling to make a node for Node Red...
I'm getting the same error that @lnklud got...
{"Error":{"code":"MODULE_NOT_FOUND"}}
@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!
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!!
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!
Whoah....! That was quick!!!
Installing and will update you shortly...!
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
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... 🤦🏼♂️
To confirm I'm now running the released module myself and it seems to be working fine.
HI John,
When trying to create a node-red node using your code I'm getting a [object Object] error when trying to enable the node in rode-red. Any suggestions on how this may be fixed?
Here is the node-red node i created usiing your code:
https://github.com/Inklud/node-red-contrib-mcknut-xvfb