Git Product home page Git Product logo

ft-dash's Introduction

Warning

The jquery version has been bumped in package.json but not tested, to satisfy an automated security vulnerability check. The code is not live. Caveat Emptor.

FT Dash

An exploration of applying FT content to your car windscreen.

Development

This prototype is based on the code from Big FT.

First run

First, clone this repo to your system and run npm install

which will grab all of the dependancies this app requires to run.

Next you need to create a .env file with the following values

siteApiEndpoint=https://api.ft.com/site/v1/pages
frontPageId=[FRONT PAGE ID]
mainContentKey=main-content
apiKey=[FT cAPI KEY]
searchApiEndpoint=https://api.ft.com/content/search/v1

Next, build the client-side app with npm run build:app. Now, you're ready to fire up FT Dash, which you can do with npm start. You will now be able to access FT Dash at http://localhost:3000/

Calibration

The first view you'll see is the calibration screen. Before proceeding place your device displaying FT Dash (at as close to a 45 degree angle as possible) to the reflective surface you intend to view FT Dash on. You should now see the mirrored image of the calibration screen on the other side of the reflective surface (presumably a windscreen).

alt tag

Next place your finger on the slider and move it up and down until the rectangle on the screen resembles a rectangle without any skew from the windscreen. Then, tap the solid white circle. This will set the display angle for FT Dash, which should remove much of the skew caused by the screen being viewed at an angle greater or lesser than 45 degrees.

Once set, you can tap three fingers on the screen to display to calibration view again

Display

Once the screen has been calibrated, FT Dash will retrieve the top 3 UK news headlines and will display them on screen, which you should now be able to see on your windscreen. If some of the content is appearing off-screen, you can drag two fingers up and down the screen to scale the content to your desired size.

alt tag

Depending on any film your reflective surface may or may not have, certain colors may be more viewable than others. White content generates a rather good effect, but green is also good. You're encouraged to experiment based on your needs.

ft-dash's People

Contributors

seanmtracey avatar railsagainstignorance avatar sqyphen avatar j-mes avatar jakechampion avatar lily2point0 avatar

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.