The online racing simulator
OutGauge PHP/Web Instrument Cluster
Hello everyone, this is my first post on the forums!

I figured I should share what I've been working on lately with LFS.

After messing around with OutGauge in Python (just using the default examples), I decided to write an AJAX and PHP based instrument cluster optimized for using your phone as an instrument cluster!

There's not much to explain, screenshots give all the info you need, but I will list the basic features.

For now I've only implemented what I thought was most important:

- Top left shows gear (and R and N for Reverse and Neutral respectively)
- Top right shows turbo boost
- Mid left shows speed
- Mid center shows RPM, and has a background color that fills the area as the RPM goes higher (bad at explaining, screenshots tell the story)
- Mid right shows fuel left as a percent
- Bottom center shows a shift light that will blink when you get to ~1000RPM below redline

Edit the config to change things like speed to "MPH" or "KMH". Only the demo cars are added, I need someone with an s2 license to send me the maxrpm and idle rpm values.

How to use:

1: The program requires a computer with both Python 2.6+ and a WAMP (windows)/LAMP (linux) install for the web front-end.

2: Put your files in your web directory, making sure they are all in the same spot.

2a: Edit config.php to add your local settings (KMH/MPH and BAR/PSI)

3: Default port is 30000 so make sure your computer or server host supports opening that port

4: In a terminal (or windows CMD) type "cd path/to/your/www" replacing that with the path to your web directory (with raw.py).

5: Run "python raw.py" and it should be working.

6: Edit your LFS config to send OutGauge data to your host IP address (if you are running it on the same machine, 127.0.0.1) and port 30000

7: You need your private IP, look it up on how to do it in windows, or on linux find connection information. On your phone go to your ip (for example http://192.168.0.100) and you should have your working gauges!

Credits:

- Font: Orbitron by Matt McInerney
- PHP/HTML: Me
- Python: LFS Devs?

Download: http://www.techedison.tk/random/lfs/

#2 - gu3st
Heh, that's interesting.

Reminds me of something that I wrote a long time ago: https://github.com/gu3st/SLI-JS/tree/master/src

It works with an SLI-M, but I created a web interface for it (becuase I could) as a mirror to what the SLI-M would display.

No clue if this would still work in modern LFS, but it's fascinating and reminds me of something I wrote before.

It's always a good learning experience to write things using something you find fun and enjoyable.
Quote from gu3st :Heh, that's interesting.

Reminds me of something that I wrote a long time ago: https://github.com/gu3st/SLI-JS/tree/master/src

It works with an SLI-M, but I created a web interface for it (becuase I could) as a mirror to what the SLI-M would display.

No clue if this would still work in modern LFS, but it's fascinating and reminds me of something I wrote before.

It's always a good learning experience to write things using something you find fun and enjoyable.

Glad you like it Smile

Only took about 30 minutes to finish the basics, styling isn't my thing so that took a bit longer. I indeed have been using it with my wheel setup to provide a really neat experience racing.
#5 - Racon
That is indeed cool Smile

Have you found InSim yet? You'll love it. (There's a text file in the docs folder with detailed info)
Very interesting... I will download to check, but looks like you spent a lot of time creating this...
Quote from Skinzinho :Very interesting... I will download to check, but looks like you spent a lot of time creating this...

Cool! Let me know what you think!

It was tested on a Nexus 4 and HTC One M8.
v0.2 update!!
---
Added config file! Set your local speed and turbo measurement
Completely commented code for easy reading
Cleaned it up a whole lot

In config.php, there is an array of cars, only the DEMO cars are added! I need somebody with an S2 license to help me complete this!


If you would like to help, please send me two things for all the cars:

Max rpm: the highest RPM number when you full throttle in neutral
Idle rpm: the RPM at which the car will run in neutral, not moving, no throttle

The cars must be stock, no tweakers. I want a baseline number for all the cars to put in the program. Contributions of these numbers will be credited with a link to your user profile on these forums
Check out your PM box.
Hmm. I bought S2 I should really update this.

Update coming soon

FGED GREDG RDFGDR GSFDG