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

Running and respacks #47

Open
dascar5 opened this issue Apr 28, 2021 · 14 comments
Open

Running and respacks #47

dascar5 opened this issue Apr 28, 2021 · 14 comments

Comments

@dascar5
Copy link

dascar5 commented Apr 28, 2021

Fairly new to this.
I just had 2 questions:

  1. How do I start the project? I installed all the dependencies from your package.json, but I've never used gulp before and thus am not sure how to start it on localhost
  2. Respacks - I don't see them in this repo. I would like to make my own. Can you point me to a tutorial about them? Or a repo that already has them so I can figure out where to place them and what they're supposed to look like.
@mon
Copy link
Owner

mon commented Apr 28, 2021

Hey! If you don't want to mess around with the build system, just use a pre-compiled release. Download the zip file, not the source code.

There is documentation about creating respacks here.

I have deliberately left directory listing on for my site, so you can download some example respacks here.

There are also a bunch more on the Hues Portal.

Good luck!

@dascar5
Copy link
Author

dascar5 commented Apr 29, 2021

Thanks for your detailed response! I've downloaded both the source and and pre-compiled release - I just don't know how to run it :)

gulp seems to compile it, and I'm used to npm start, which doesn't work here. What's the command you use to run it on localhost?

@mon
Copy link
Owner

mon commented Apr 29, 2021

I just use python -m http.server to locally host, but you can use literally any local-hosting server to do it for you. I know that npm has some packages.

See more:
https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server

@dascar5
Copy link
Author

dascar5 commented May 1, 2021

Thanks for your answer. Finally got it to run. I'm guessing if I wanted to mess with the software, I'd have to use the source code instead of minified release? I'd personally remove all the hues and make some other tweaks for a hobby project of mine. Just checking if that can be done in minified version as well.

@mon
Copy link
Owner

mon commented May 2, 2021

If you've already set up everything and gulp creates a .js.min, I'd recommend modifying the source and building minified bundles that way. Modifying the .min directly is quite a painful experience.

@dascar5
Copy link
Author

dascar5 commented May 2, 2021

Got it. So I made my own respack, and I've edited index.html to point to it instead of DefaultHues, however, it still plays default. Yes, I used gulped before running the web app. I'm not sure what I'm missing tbh. Lol, I even deleted default respacks from my folder and they still played as usual.

@mon
Copy link
Owner

mon commented May 3, 2021

As a sanity check - modify the <title> in index.html. Does it change? Perhaps your local server is not pointing at the right place?

@dascar5
Copy link
Author

dascar5 commented May 4, 2021

Yeah, that changed something alright. Even though I changed defaults to my own respack, I get this
Error: 404: Could not fetch respack at ./respacks/Defaults_v5.0.zip

I'm also using python python -m http.server. I didn't mess with any other files except index.

@mon
Copy link
Owner

mon commented May 4, 2021

What does your index.html look like? Specifically, what is the defaults object?

@dascar5
Copy link
Author

dascar5 commented May 4, 2021

var defaults = { workersPath : "lib/workers/", respacks : ["./respacks/myrespack.zip"], firstSong : "mysong", };

@mon
Copy link
Owner

mon commented May 4, 2021

That is quite curious - if you'd like, you can zip up your entire custom build and I can take a look. Feel free to send it via email.

Failing that - does it still happen with the original hues.min.js? I wonder if you edited the defaults object in the .js before compiling.

@dascar5
Copy link
Author

dascar5 commented May 4, 2021

Never mind, for some reason, it started loading now. And it works. Now I just got one more question, sorry. The pictures I'm using are varying in size, some I can see properly, some are stretched beyond web app borders. Also, the purple hue is there. How would I go about making all the pics "sit" in the center of the screen, keeping their original resolution, and how would I completely disable hues? Honestly, I just want to use this as an image gallery with music playing in the background haha

@mon
Copy link
Owner

mon commented Apr 17, 2023

Also @dascar5 I hope you're not too bothered by these extra emails, I've just realised I never responded to your most recent question.

Hues is pretty much locked to the concept of "image always fill full height, width is scaled to fit". It's not really designed to be a slideshow. That being said, I can see a lot of value in having special modes (through the options object, not anything visible) to both enable "scale to fit" behaviour and "no colour overlay" behaviour. Would that be sufficient, or has your project fallen by the wayside in the past 2 years 😅

@mon
Copy link
Owner

mon commented Apr 17, 2023

I've cleaned up the comments of this issue, @thisfardi please move to #80

Repository owner deleted a comment Apr 17, 2023
Repository owner deleted a comment Apr 17, 2023
Repository owner deleted a comment Apr 17, 2023
Repository owner deleted a comment Apr 17, 2023
Repository owner deleted a comment Apr 17, 2023
Repository owner deleted a comment Apr 17, 2023
Repository owner deleted a comment Apr 17, 2023
Repository owner deleted a comment Apr 17, 2023
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