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:
Credits:
- Font: Orbitron by Matt McInerney
- PHP/HTML: Me
- Python: LFS Devs?
Download: http://www.techedison.tk/random/lfs/
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/