0 Followers
0 Following
1 Posts

Part 2 of car Raspberry pi 4 GPS project

https://lemmy.world/post/31477306

Part 2 of car Raspberry pi 4 GPS project - Lemmy.World

Hello everyone! I already posted a first time here a while ago: https://lemmy.world/post/30549957 [https://lemmy.world/post/30549957] My goal was to replace my Android Auto + phone setup for satnav in car with a dedicated Raspberry Pi. Here’s a status update of the project so far! Choosing the parts and getting them here was obviously fairly easy even though it took quite bit of research to find a way to power the Pi4 in car reliably. It’s a pi4 with an adafruit ultimate gps dongle, an SD card and a 2.5 SSD. The SD for OS installs, and then I clone them to SSD for better stability and performances. I first tried to go Pi OS route. I figured Linux might open more possibilities and I’m more comfortable with Linux. I tried a few options in Pi OS, namely Navit. I banged my head quite hard on that one, trying to figure out how to make it work, but I never managed to get a good navit.xml config file. After hours upon hours of trials, I gave up. Tried Organic Maps then, but it was a flatpak which introduced a lot of permission issues and I never got the GPS dongle to talk to the app. After a few failed attempts, I decided to try Emteria OS, an android spin available in the Pi Imager. It doesn’t boot without SD card as opposed to PiOS, so I was glad I spent the 5€ for the SD card. It booted easily, SSH was harder to enable than on Linux but it’s likely because I just know Linux better. Installing apps was easy, but I stopped there and didn’t even try to get the GPS working because 90% of my RAM was used idling at boot, which makes the whole project impossible on Emteria. Not sure if there’s a bug in the current version or what, but I simply moved on. Then I went to LineageOS. Similarly to Emteria, installing apps was very easy. Getting the GPS from Adafruit to talk to Android was fairly easy if you read the docs carefully. I needed to install android dev tools on my main PC and connect to the Pi using ADB as root to edit some config files. That’s it, the GPS worked and I had a working GPS unit. Now I’m at the point where I need to introduce the package into the car. For now , the pi still doesn’t have a case because I didn’t want to limit my options in the car. I still haven’t found a good way to bring the pi with me and have it being safely transported without breaking or even becoming a deadly cannonball in case of crash. My current idea that I’m exploring and checking is getting a Pelican Case, not sure if any of their cases has vent holes. The pi would go inside the case, and the case would be attached to a strong anchor point like the seat rails. Not sure how, yet. I’m thinking maybe about carabiners from Petzl since they would be much stronger than needed, I’m just not sure the anchor point on the case would be strong enough. So there you have it, I’ve made good progress on the project and I’m confident it will work out reasonably well.

Need a second opinion on a project idea (Pi5 car headunit)

https://lemmy.world/post/30549957

Need a second opinion on a project idea (Pi5 car headunit) - Lemmy.World

Hello everyone, I’m thinking about a project and would like to ask for a second opinion from more experienced people. I sadly didn’t find a community dedicated to that on Lemmy and here’s the closest I know about. Let me know if I need to move the subject elsewhere, I understand this is on the fringe. I have experience self-hosting many things on an old gaming PC at home. Recently my phone which I use for music (navidrome) and satnav in car via Android Auto keeps crashing. The easiest solution would be to get a new phone but this one isn’t even two years old so I’m frustrated with modern tech and want to build my own satnav solution. One limitation I have is that my car only has one USB port to benefit from the car audio system and infotainment. I’ve chosen to give the USB port to an MP3 player with my music on it. My idea is to then get a Raspberry Pi 5 or something equivalent , probably the Pi for the community resources for the satnav system. Add a GPS receiver to it, a generic phone screen, a few physical buttons, maybe bluetooth dongle to connect a bluetooth speaker and potentially a foldable keyboard to type addresses and install something like BRouter for local satnav. Try to figure out how to add physical buttons for media control and also manual brightness. I’d power it with external powerbanks. The screen would be the size of a phone, or maybe even and old phone or something, to benefit from the third party market of phone holders. The goal is relatively simple: Local offline satnav with rerouting. Full control of the data, updates and tech used. Portable so it easily comes with me from car to car over the years. Modular, so I could potentially add stuff like rear cam later on. Why not get a dedicated GPS device? Because I don’t want to rely on a greedy corporations when I think I can do it myself (Garmin recently pulled a bad prank with a new subscription plan for instance.) And it’s simply just fun to attempt a project like this. I have plenty of free time to learn and figure it out, but if there’s something obvious that I missed and makes the project a no-go, I’d love to know before I purchase everything. Any feedback?

Tire pressure odyssey, what am I doing wrong?

https://lemmy.world/post/13349287

Tire pressure odyssey, what am I doing wrong? - Lemmy.World

Hello everyone. I recently got myself a mountain bike from Canyon. It all works, got myself all the gear, pumps and all. And the pressure gage give me a reading of 10 PSI, which is odd because the tires are firm. 10 PSI should be nearly flat. I have other pumps, including one that works for my car too, which I trust because I cross checked its values with my mechanic. Here’s the odd thing. I got the bike out and plugged it to the car tire pressure device and it also gave me a reading of 10 PSI. I also have a Topeak Shuttle Gage, 10 PSI. How is that possible? I can’t really believe all three readings come from faulty devices so I’m thinking I’m the one doing something especially stupid, or maybe a defect somewhere on the valve/tire but it’s brand new, so I think I’m the one to blame. Any ideas where I’ve been an idiot? I did open the nut on the presta valve prior to taking measurements.

LinguaCafe - Confused why the provided docker-compose doesn't work.

https://lemmy.world/post/10947196

LinguaCafe - Confused why the provided docker-compose doesn't work. - Lemmy.World

Hello everyone, Recently found LinguaCafe and decided to spin it up. There’s a provided docker-compose with just volumes to specify to your own taste. Pretty easy right? I can’t make it work. Spent nearly two hours already trying to figure out what I’m missing. Can someone take a look at my compose file and tell me where I’m stupid? Here’s a somewhat anonymized pastebin, I just removed the password and my name from the file. The rest is basically the file provided by the github + my paths. https://pastebin.com/fJByZhic [https://pastebin.com/fJByZhic] https://github.com/simjanos-dev/LinguaCafe [https://github.com/simjanos-dev/LinguaCafe] What happens is, my containers spin up apparently properly. But when I go to :9191, I have this: https://imgur.com/a/PiazCcP [https://imgur.com/a/PiazCcP] Never had that happen before. Does anyone know? Thanks

Series of small questions

https://lemmy.world/post/6741351

Series of small questions - Lemmy.World

Hello everyone, I’ve been on Pop_OS for a good week now and I’m liking it. First linux too. I have a series of small questions though and hopefully someone can enlighten me. Question 1) I have a 3440x1440 screen. The resolution once booted is fine. During boot and up until the login screen, my monitor keeps displaying “HDMI 3440x1440” and flickers as if reset or switched port. I suspect it’s because the screens before the login screen are not compatible with that resolution. I have no idea whether I’m supposed to see something or not until that point. Is there a way to “fix” it if there’s even anything to fix? Question 2) Also boot related. Booting anything else but Pop_OS is relatively quiet with the occasional Hard drive working noise. With Pop_OS, my hard drive makes almost uninterrupted sounds as if writing/reading from boot up until well over a minute after login. What is it? Timeshift already working? I’m slightly worried it’s bringing extra wear and tear to my drives. Question 3) Is there a way to display peripherals info? I’m thinking about my wireless mouse battery level. I’m going to dig that info specific for my mouse after work today, but I’m wondering if there’s more of a “general blanket” solution to display very basic info from any connected device somewhere. I used to do stuff like that with Rainmeter on Windows. Thanks!

Trouble moving a container and its data to another server

https://lemmy.world/post/6360416

Trouble moving a container and its data to another server - Lemmy.world

Hello again, I hope it’s okay that I make several posts in a rather short time, I’m stumped. I run a series of containers on old computer A for the recipe manager Tandoor Recipes. I want to move it to another computer B so I initially thought I would: -copy the env and docker-compose -dump the source database Move everything to the new computer, compose everything and fill the database from the dump. I got 500 server errors so I went on Discord and asked what was the proper way of doing this. I’ve been told in theory I could shut everything down, pack my Tandoor folder in a zip, paste it on the target computer B and boot everything and voilà. None of this works properly. I do manage to get an instance of Tandoor running on my new computer, it displays every recipe I had originally, but it has an issue when trying to create a new recipe. I get a white page with “Server Error (500)”. It does not happen on the original Tandoor, despite being all the same files in theory. I noticed that on my source computer, the postgres DB directory changes permission when I start the container, as well as the directory containing the recipe pictures. So I’m wondering if wrong permissions might be corrupting data while copying stuff? Thanks

Need help understanding a back-up script

https://lemmy.world/post/6330578

Need help understanding a back-up script - Lemmy.world

Hello everyone! I had a container with a DB crap itself yesterday so I’m trying to speed up my learning to back up stuff. I came across a script that taught me how to back-up a containerized postgres db at given intervals and it works. I managed to create db dumps and restore them. I’ve documented everything and now my whole docker-compose/env etc are on git control. There’s one part of the script I don’t decypher but I’d like to maybe change it. It is about the number of back-up copies. Here’s the line from the tutorial: ls -1 /backup/*.dump | head -n -2 | xargs rm -f Can someone explain to me what this line does? I’d like to keep maybe 3 copies just in case the auto-backup backs up a rotten one. Thanks! Full code below: backup: image: postgres:13 depends_on: - db_recipes volumes: - ./backup:/backup command: > bash -c "while true; do PGPASSWORD=$$POSTGRES_PASSWORD pg_dump -h db-postgresql -U $$POSTGRES_USER -Fc $$POSTGRES_DB > /backup/$$(date +%Y-%m-%d-%H-%M-%S).dump echo ""Backup done at $$(date +%Y-%m-%d_%H:%M:%S)"" ls -1 /backup/*.dump | head -n -2 | xargs rm -f sleep 86400 done"

Confused by Lutris, game doesn't launch overnight.

https://lemmy.world/post/6214675

Confused by Lutris, game doesn't launch overnight. - Lemmy.world

Hello everyone! TL;DR: CP2077 worked via Lutris yesterday. Doesn’t work today. No idea how to troubleshoot Linux, need pointers. I’ve made the switch to Linux three days ago and I’m trying to figure out how to handle gaming. I’ve been recommended to use Lutris on my recent post about me switching to Linux and that’s what I did. Not gonna lie, I watched a couple videos, read a couple wikis and then jumped in the fire, eager to play, so I don’t fully understand what I’m doing yet. Yesterday, I told Lutris it could find my copy of Cyberpunk 2077 on my Windows disk. Filled the config panel as instructed by the youtube video (Linux Experiment) and launched the game. Worked perfectly immediately. Today, it crashes on launch with a RED error saying ‘Cyberpunk 2077 flatlined’. I’m on Pop_OS and did some updates yesterday so I suspect it might be related? On Windows I’d know how to troubleshoot on my own, but here I’m confused as to where to start the investigation. Could you give me pointers for me to go under the hood and figure out what’s going wrong? Thanks for your help! :)

Finally had enough of Windows. I'm packing up. I'm nervous!

https://lemmy.world/post/5961010

Finally had enough of Windows. I'm packing up. I'm nervous! - Lemmy.world

Hey! Today is the day. I finally got fed up with Windows booting up with an advert that I already had yesterday and had clicked on “remind me in three days” reluctantly. I’m finally tired of killing Telemetry. Now that gaming is less important for me, I feel like now is a good time to switch mainly to Linux. I might keep a small spare drive with a Windows/Steam partition for the occasional incompatible game. I’ve just started transferring my precious files to an external drive and I’m preparing for my Exodus. Still unsure about the distro I’ll choose, I would like to avoid distro hoping. But now I made up my mind, I’m leaving windows for the foreseable future. I started self-hosting three months ago as a way to trialing Linux with the added bonus of being useful and my server is still up and alive so I’m confident I can use Linux without breaking it. Any welcoming tips? I’m a bit anxious about the big change, but also relieved I won’t have to put up with the bloat/adverts.

How do you learn new tracks nowadays?

https://lemmy.world/post/3946549

How do you learn new tracks nowadays? - Lemmy.world

Hello! I’m wondering if things have changed. I started learning guitar in 2010 or so, and back then at school we all had Guitar Pro or something similar and we used to learn by listening to the track and to the guitar pro tab in turns. I’ve been seeing a lot of videos about computer virtual amps recently and realised the world of guitar has changed and I’ve been disconnected from it for a long time. Is the tab/guitar pro method still the popular one? How do you learn? Since then, I’ve moved on to 100% by ear because there were no tabs for my artists anyway. But I’m just wondering what the world of guitar learning is like now?