GithubHelp home page GithubHelp logo

Comments (3)

phylor avatar phylor commented on August 18, 2024

Yes, you need to change the transformation matrix because the display is used in portrait mode. It is documented at the end of the README. We should make that clearer though.

About the quick bookings: there is currently no configuration option, but you can change it more or less easily in the code itself. You have to change two things:

  • change the duration the events are created with: in src/components/status.js on line 59 and 60, change the value given to the function call onQuickReservation, e.g.: onClick30={() => onQuickReservation(60)} (note that you must not change the first part, i.e. onClick30=)
  • change the SVG image displayed as the buttons: these can be found in static/icons/15.svg and static/icons/30.svg. Unfortunately, we did not use a font in the SVG, so you cannot change it by opening the SVG in a text editor. You would need to open those files in Inkscape or Illustrator and change the text accordingly.

Let us know how it works out for you!

from sitincator.

michaelcrone avatar michaelcrone commented on August 18, 2024

Thanks for the reply. Strange on the transformation matrix. I had copy/pasted your exact commands and for some reason they weren't taking effect.

On the 30/60' change to quick bookings. I changed the files/images per your instructions, I can see the images changed however clicking them isn't making the appropriate length booking (still coming through as 15/30 mins). Do I need to compile code or anything afterwards? I tried with a reboot so far.

Also I noticed when for example there's a meeting coming up in 25 minutes it only shows the 15 minute booking (makes sense with the default 15/30 bookings), would this be broken if I make 30/60 minute bookings instead? Eg is the logic hard coded only to show the 15/30 buttons based on amount of free time left until next booking?

Cheers!

from sitincator.

phylor avatar phylor commented on August 18, 2024

Yes, you probably need to run npm run build. That does not work that well on a Raspberry Pi though. It's probably a better idea to run this on a faster machine and then copy it over to the Raspberry.

from sitincator.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.