Jump to content

The new news 24 thread


Recommended Posts

Posted
Just now, Ohdearme said:

Thanks.

Radio looks good but  - No juice in battery so hopefully it works. 🤣

 

You know what, fuck it I’m off outside to lie under it and try and fix it.

Posted
30 minutes ago, Ohdearme said:

You know what, fuck it I’m off outside to lie under it and try and fix it.

And here comes the rain… tits.

 

 

image.jpg

Posted
1 hour ago, LightBulbFun said:

funnily enough I was just thinking about this the other day, in that I was wondering if could you run every registration mark between REV1R to REV999R? it would be interesting to know if any other REV-R's of any sort of vehicle survive at all? :) 

the only other REV-R I have ever actually seen is REV690R this Ford Capri 

52472657921_e0a8189b14_k.jpg

Possibly... Although I've not got time to do those all now 😂 will try and do 30 to see what happens before I'm off on Friday and all next week

And I can still only do batches of 30 which is mildly annoying, need to automate that part🤔

  • Like 1
Posted
4 minutes ago, beko1987 said:

Possibly... Although I've not got time to do those all now 😂 will try and do 30 to see what happens before I'm off on Friday and all next week

And I can still only do batches of 30 which is mildly annoying, need to automate that part🤔

#!/bin/bash

# API endpoint and key
API_ENDPOINT="https://driver-vehicle-licensing.api.gov.uk/vehicle-enquiry/v1/vehicles"
API_KEY="YOUR_API_KEY_HERE"

# Function to call the DVLA API for a list of license plates
function call_dvla_api {
    local license_plates=("$@")
    for plate in "${license_plates[@]}"; do
        response=$(curl -s -X POST "$API_ENDPOINT" \
            -H "x-api-key: $API_KEY" \
            -H "Content-Type: application/json" \
            -d "{\"registrationNumber\": \"$plate\"}")
        echo "Response for $plate: $response"
    done
}

# Function to generate range of license plates
function generate_plate_range {
    local start_plate="$1"
    local end_plate="$2"
    local start_number=$(echo $start_plate | grep -o '[0-9]\+')
    local end_number=$(echo $end_plate | grep -o '[0-9]\+')
    local prefix=$(echo $start_plate | grep -o '^[^0-9]\+')
    local suffix=$(echo $start_plate | grep -o '[^0-9]\+$')

    plates=()
    for ((i=start_number; i<=end_number; i++)); do
        plates+=("${prefix}${i}${suffix}")
    done
    echo "${plates[@]}"
}

# Main function
function main {
    # Check if a range is provided
    if [[ "$1" =~ .*-.+ ]]; then
        IFS="-" read -r start_plate end_plate <<< "$1"
        license_plates=($(generate_plate_range "$start_plate" "$end_plate"))
    else
        # Read the file containing license plates
        license_plates=($(cat "$1"))
    fi

    # Split the list into batches of 30 and make API calls
    batch_size=30
    for ((i=0; i<${#license_plates[@]}; i+=batch_size)); do
        batch=("${license_plates[@]:i:batch_size}")
        call_dvla_api "${batch[@]}"
        echo "Waiting for next batch..."
        sleep 10  # Add a delay between batches if necessary
    done
}

# Execute the main function with provided arguments
main "$@"

You can use it with a file
 

./dvla_vehicle_enquiry.sh license_plates.txt

Or with a range
 

./dvla_vehicle_enquiry.sh "REV1R-REV999R"

 

Posted

That's bloody impressive, but I don't know how to do it by the cli. I use Alteryx to pull the data, but the dvla api seems limited to 30 at a time (I tried to chuck 100 at it and it errored after the 30th one). 

I need to have an excel full of vrm's (or a +1 formula 🤔) , then a way to batch that, push that through and parse/store the answer then lob the next through. Repeat until done then spit out one single file. 

What technology would that use to do it that way? 

Posted
3 hours ago, reb said:

Just ordered a lithium jump pack as a temporary* alternative to figuring out the battery drain issue on the v70.

It's a Noco which seems to be a real brand, it's the 1500A model. Probably overkill, but better than something unsuitable. 

Does it have a tow bar? I found a current drain on something to do with a towbar feed, pulled the fuse and it's fine (she never used towbar anyway) 

Posted
9 minutes ago, beko1987 said:

That's bloody impressive, but I don't know how to do it by the cli. I use Alteryx to pull the data, but the dvla api seems limited to 30 at a time (I tried to chuck 100 at it and it errored after the 30th one). 

I need to have an excel full of vrm's (or a +1 formula 🤔) , then a way to batch that, push that through and parse/store the answer then lob the next through. Repeat until done then spit out one single file. 

What technology would that use to do it that way? 

I have no idea, CLI is the way for any automation. Sorry :(

This is compatible with any Linux or Mac system, and I can also parse the data into a CSV if you tell me what do you want to pull, and how you want it sorted. A row out of the existing sheet would be enough to add that as well, and just give you an output CSV as a result. 
The only change this needs is to replace API key at the beginning of the script with your API key.

I can also pull the data for you, but I'd need your API key as I'm not UK resident and can't register. 

Posted
1 hour ago, IronStar said:

I have no idea, CLI is the way for any automation. Sorry :(

This is compatible with any Linux or Mac system, and I can also parse the data into a CSV if you tell me what do you want to pull, and how you want it sorted. A row out of the existing sheet would be enough to add that as well, and just give you an output CSV as a result. 
The only change this needs is to replace API key at the beginning of the script with your API key.

I can also pull the data for you, but I'd need your API key as I'm not UK resident and can't register. 

I can give you my api key (I only set it up for this purpose so if it gets banned I'm not fussed and it's got a silly amount of requests anyway) 

I'll pm it to you tomorrow. It's great fun! All comes back as one long string

  • Like 3
Posted
6 hours ago, reb said:

It's a Noco which seems to be a real brand, it's the 1500A model.

I have the 1250a one. Can confirm, they're bloody good. They work as a USB-C power bank too.

Posted

Do you work with the cars, or are they in the distance from your workplace? With the owners permission, there's a cracking YouTube opportunity right there, even if it's just walk-around videos with no dialogue, ala Flexiny. 

Posted
1 hour ago, Dick Longbridge said:

Do you work with the cars, or are they in the distance from your workplace? With the owners permission, there's a cracking YouTube opportunity right there, even if it's just walk-around videos with no dialogue, ala Flexiny. 

It's just what I see gazing out of the window when I'm supposed to be working!

  • Like 1
Posted
1 minute ago, richardmorris said:

Full moon?

Full moon didn't previously cause school shootings in Europe 

Posted

20240821_115615.jpg

 

The first "motorcar" apparently. An 1886 Benz patent motorwagen.

Posted
17 minutes ago, IronStar said:

Full moon didn't previously cause school shootings in Europe 

people with a grudge don't need much of a push.

Their bodies have been transported to the Sanski Most Health Centre, according to local reports. Unconfirmed reports have named Vukalić is understood to have suffered a self-inflicted injury to his chest but that he survived the attempt on his own life. It is understood he was in a dispute with school management.

Posted

Installing tint is one of those things that you can understand how not to fuck it up...

20240821_122017.jpg.7adca00e2d7877cb22589f16162cc1dd.jpg

...then fuck it up anyway!

Posted
1 hour ago, reb said:

Installing tint is one of those things that you can understand how not to fuck it up...

20240821_122017.jpg.7adca00e2d7877cb22589f16162cc1dd.jpg

...then fuck it up anyway!

Add some stickers of black clouds and a sinister castle and you'll have a great Halloween scene!

Posted
4 minutes ago, Split_Pin said:

Add some stickers of black clouds and a sinister castle and you'll have a great Halloween scene!

FFS that comment made me snort tea all over the keyboard and monitor 🤣.

@reb I've tried so many times to tint windows and it always goes to shit, yours looks far better than any I've ever done, there must be some secret black magic art to it that just completely escapes me.

Posted
20 minutes ago, Popsicle said:

FFS that comment made me snort tea all over the keyboard and monitor 🤣.

@reb I've tried so many times to tint windows and it always goes to shit, yours looks far better than any I've ever done, there must be some secret black magic art to it that just completely escapes me.

The flaws in this one are down to forgetting the right way to do it and remembering partway through, at the point it is already irredeemably fucked!

It'll be a while before I have a spare moment to do more windows, by which time I'll have forgotten again!

Posted
19 hours ago, beko1987 said:

I need to have an excel full of vrm's (or a +1 formula 🤔)

forgive me if this is what you already do, but when I need to generate a batch of VRM's for anything I use the concatenate function to very quickly generate a list of VRM's (concat A1 B1 C1 into D1 then highlight the 4 boxes and drag down LOL) that I then just copy paste into wherever I need em :) 

image.png.e4d20c6763c89a1eb78d3081f336f774.png

Posted
4 hours ago, richardmorris said:

20240821_115615.jpg

 

The first "motorcar" apparently. An 1886 Benz patent motorwagen.

Finally, a car that's slower than yours!

  • Like 1
  • Haha 2
Posted
4 hours ago, IronStar said:

Full moon didn't previously cause school shootings in Europe 

I suspect it's partly down to the availability of automatic weapons, with a shotgun or similar some might have got away.

Posted

Seeing as the 205 passed it's test,I decided to give it a treat and change it's oil and filter.

20240821_130506.jpg.fc8d6de54dda62a4beb1e005ea5b8d60.jpg

Oh,the lack of access is shocking!!

Don't even need to Jack it up,or remove and undetray that's held on with 47 clips/screws or whatnot.

20240821_130750.jpg.c310b45c5c6ad282f6d3eb647abdaa4f.jpg

Whilst looking for my copper washers I found the semi Feral cats new hiding/sleeping place.

20240821_131237.jpg.8900ebc34f36c26506fa33450bfaff85.jpg

20240821_131310.jpg.19bc895388f7553cd5209b910bb10313.jpg

Struggle to reach the inaccessible oil filter...

20240821_132251.jpg.ccf5640879a012d0f84544ac459a0a38.jpg

Glug 5 litres of 15/40 into the sump.

20240821_133305.jpg.69d1372577367e5f14bc15991d32b4ea.jpg

20240821_145328.jpg.cea8200286702978f82304f86ebf21a8.jpg

Done!!😁

Posted
6 hours ago, richardmorris said:

20240821_115615.jpg

 

The first "motorcar" apparently. An 1886 Benz patent motorwagen.

The actual horsey_horseless 😱

  • Like 4
Posted
17 minutes ago, beko1987 said:

The actual horsey_horseless 😱

I suspect it’s a copy as there seems to be one original in the Benz museum. Interesting bit of history though. And nearly 140 years old!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...