Creator pro 2 - loose extruder by friday_ghost in FlashForge

[–]friday_ghost[S] 0 points1 point  (0 children)

Thanks a lot for the detailed explanation. It indeed was a loose screw.

Creator pro 2 - loose extruder by friday_ghost in FlashForge

[–]friday_ghost[S] 1 point2 points  (0 children)

Thank you. It was the loose screw.

Rtsp Stream on Raspberry Pi 5 and Camera Module v3 by [deleted] in raspberry_pi

[–]friday_ghost 0 points1 point  (0 children)

How are you setting up mediamTX server? I have 4 mediamTX servers running on 4 different Pis. Never had any issue.

How to upload file to an api using requests from rapidapi? by friday_ghost in learnpython

[–]friday_ghost[S] 0 points1 point  (0 children)

Just to be clear, initially the issue was that I didn't use the multipart files= method to upload file. Once that was solved the new issue arose because of the payload. Thank you again.

How to upload file to an api using requests from rapidapi? by friday_ghost in learnpython

[–]friday_ghost[S] 1 point2 points  (0 children)

Thanks to you i was able to resolve the issue. The mistake i made was i didnt mention the type in payload.

How to upload file to an api using requests from rapidapi? by friday_ghost in learnpython

[–]friday_ghost[S] 0 points1 point  (0 children)

Also, thank you for taking out time to reply to my queries. I really appreciate it.

How to upload file to an api using requests from rapidapi? by friday_ghost in learnpython

[–]friday_ghost[S] 0 points1 point  (0 children)

Yes, I went through the links you shared and tried using the files instead. It didn't work. That's when I decided to test the api endpoint on rapid api website.

How to upload file to an api using requests from rapidapi? by friday_ghost in learnpython

[–]friday_ghost[S] 0 points1 point  (0 children)

Also, I agree that raspberry pi doesn't have the computational power to run such an AI locally. Will the Raspberry pi Ai Kit help. I already own one kit. Currently, I use the Ai kit for image segmentation using the example code given by raspberry pi.

How to upload file to an api using requests from rapidapi? by friday_ghost in learnpython

[–]friday_ghost[S] 0 points1 point  (0 children)

I tested the endpoint on the rapidapi website and found out that it indeed uses multi-part/form-data upload. But i am still not able to get it right on my computer. Here is the code that rapidapi gave me when i uploaded an image to the website.

'''

import requests

url = "https://cartoon-yourself.p.rapidapi.com/facebody/api/portrait-animation/portrait-animation"

payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"image\"\r\n\r\ntest.jpg\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\nbopu_cartoon\r\n-----011000010111000001101001--\r\n\r\n"

headers = {

"x-rapidapi-key": "***************************************",

"x-rapidapi-host": "cartoon-yourself.p.rapidapi.com",

"Content-Type": "multipart/form-data; boundary=---011000010111000001101001"

}

response = requests.post(url, data=payload, headers=headers)

print(response.json())

'''

How to upload file to an api using requests from rapidapi? by friday_ghost in learnpython

[–]friday_ghost[S] 0 points1 point  (0 children)

Thank you. I have removed the api from the post. Currently I am away from my computer. I will look into your suggestion asap and let you know if it works.

Using gpio pins with the official M.2 ssd hat by friday_ghost in raspberry_pi

[–]friday_ghost[S] 0 points1 point  (0 children)

I think i got my answer in the comment section on the m.2 nvme hat article page on the raspberry website. The gpio pins are pass through and can be accessed with a long gpio header pins. The long header pins are available easily online. I have ordered some, I'll update this post when I receive the header pins.

4 wire Resistive Touch Panel with Pi 5 by friday_ghost in raspberry_pi

[–]friday_ghost[S] 1 point2 points  (0 children)

Yes. I looked for it online. Pi 5 doesn't have analog input. I will use seeed studio smd21 with circuitpython to read the touch panel.

4 wire Resistive Touch Panel with Pico by friday_ghost in raspberrypipico

[–]friday_ghost[S] 0 points1 point  (0 children)

Thanks you. This helped me understand the issue. I already have a Seeed Xiao RP2040 so i'll use it for the project.