https://github.com/djdefi/trailer_weight
Ruby script to calculate towing capacity
https://github.com/djdefi/trailer_weight
ford towing truck
Last synced: 8 months ago
JSON representation
Ruby script to calculate towing capacity
- Host: GitHub
- URL: https://github.com/djdefi/trailer_weight
- Owner: djdefi
- Created: 2022-02-25T07:19:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-23T19:38:40.000Z (over 1 year ago)
- Last Synced: 2024-10-11T14:57:35.056Z (about 1 year ago)
- Topics: ford, towing, truck
- Language: Ruby
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# trailer_weight
Ruby script to calculate towing capacity.
Guidance is for Ford's F-150, but may be applicable elsewhere. Not official advice or affliciated with Ford. Please consult your owners manual for information on your vehicle's limits.
## Usage:
```bash
$ ruby trailer_weight.rb -h
Usage: trailer_weight.rb [options]
-c, --cargo=VAL Comma separated list of cargo weights. Default = 210,180,40,125
-m, --max-weight=VAL Max combined weight of cargo and occupants. Default = 1500
-g, --gross-vehicle-weight=VAL Gross vehicle weight GVWR. Default = max-weight
-v, --verbose Run verbosely
-h, --help Show this message
```
## Example outputs:
```bash
$ ruby trailer_weight.rb -m 1198 -g 7350 -c 210,180,45,50 -v
Max towable gross trailer weight: 5485
Loaded Truck weight: 6637
Remaining weight: 713
Combined cargo weight: 485
Max combined weight: 1198
Gross vehicle weight: 7350
```
```bash
ruby trailer_weight.rb -m 1650 -g 7100 -c 210,180,45,50 -v
Max towable gross trailer weight: 8962
Loaded Truck weight: 5935
Remaining weight: 1165
Combined cargo weight: 485
Max combined weight: 1650
Gross vehicle weight: 7100
```
## Where to find max-weight and gross-vehicle-weight on F-150
Expected in lbs.
### max-weight:
"The combined weight of occupants and cargo should never exceed:"

### gross-vehicle-weight (GVWR)
Below `MFD. BY FORD MOTOR CO.`:

## Web Interface
You can also use the Trailer Weight Calculator through a web interface. The web interface allows you to input cargo weights, max weight, and gross vehicle weight, and calculates the trailer weight for you.
Access the web interface here: [Trailer Weight Calculator](https://your-github-username.github.io/trailer_weight/)
### Instructions for using the web interface:
1. Open the [Trailer Weight Calculator](https://your-github-username.github.io/trailer_weight/) in your web browser.
2. Enter the cargo weights as a comma-separated list in the "Cargo Weights" field.
3. Enter the max combined weight in the "Max Combined Weight" field.
4. Enter the gross vehicle weight in the "Gross Vehicle Weight" field.
5. Click the "Calculate" button to see the results.