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

Flowabot on Raspberry Pi #33

Open
Maaster opened this issue Dec 5, 2019 · 7 comments
Open

Flowabot on Raspberry Pi #33

Maaster opened this issue Dec 5, 2019 · 7 comments

Comments

@Maaster
Copy link

Maaster commented Dec 5, 2019

Hey,

just toyed around with this for a few days, Endresult is that Phantomjs (Dependency of highcharts) is not meant for arm architectures and as such cannot be properly installed/run on Raspberry PIs. As the project is also deprecated, there wont be any updates to that.

Its a long shot, but theres no way to remove highcharts from flowabot and have it run correctly, right? Or anything that would spring to your mind how I could make it run without phantomjs (or any way for me to install it)?

Thanks and sorry for bugging you so often about problems!

@LeaPhant
Copy link
Owner

LeaPhant commented Dec 5, 2019

You should be able to run it. Try removing highcharts from the dependencies list in package.json, then removing the command files that need it in the commands folder. Deleting bpm.js and strains.js should be enough.

I'm not happy with highcharts anyway and might replace it with some cleaner library in the future, but for now this should do.

Hope I could help!

@Maaster
Copy link
Author

Maaster commented Dec 6, 2019

That lets me run npm i without problems and lets me config everything, but on npm start it still searches for highcharts somewhere:

Pastebin Link

@LeaPhant
Copy link
Owner

LeaPhant commented Dec 6, 2019

Ah right, it's loaded in osu.js (in the root directory, not commands) which is basically needed for everything. If you change the line where highcharts is loaded to const highcharts = {} it might happily run as long as highcharts isn't being called.

Edit: Remove the highcharts.initPool() line too.

@Maaster
Copy link
Author

Maaster commented Dec 6, 2019

Alright, that runs the bot, thanks! :)

I take it anything that provides a video (!render, !fail, etc) wont work? I tried it and it produced a segmentation fault.

@LeaPhant
Copy link
Owner

LeaPhant commented Dec 6, 2019

Segmentation fault could be anything, I guess a raspberry pi just doesn't have enough memory cause as of now there's no memory optimization whatsoever for rendering videos, it's optimized for maximum speed.

@Maaster
Copy link
Author

Maaster commented Dec 6, 2019

Weird, I got the 4GB RAM Version just to be on the safe side. How much would you say you need for it to run without big problems?

I can post a log later in the evening.

@Maaster
Copy link
Author

Maaster commented Dec 6, 2019

Pastebin Link

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