RadioDJ - Free Radio Automation Software Forum

RadioDJ v2 => General Talking => Topic started by: DJ Garybaldy on July 31, 2019, 03:51:39 PM

Title: So we've bought a Raspberry PI4!
Post by: DJ Garybaldy on July 31, 2019, 03:51:39 PM
We've just made an investment in a Raspberry PI4 and we're waiting for it to be delivered.

The plan for it is to run a DHCP server as the one on the router is faulty and our provider says there's nothing wrong in their tests.

We're also going to centralise the RadioDJ database, So 2 computers call off the same database rather than having 2 separate ones like it is now. Going to make it easier to sync any new imports etc...

All we need to do is make sure the music drive letters are the same on both boxes and bingo!


We've had our original PI since it came out and while it still works we need something with a bit more beef to it!
Title: Re: So we've bought a Raspberry PI4!
Post by: stevewa on July 31, 2019, 06:53:10 PM
did you buy heat sinks with it? i hear they run hot. i won't get mine until i get back from amsterdam in Sept.
Title: Re: So we've bought a Raspberry PI4!
Post by: DJ Garybaldy on July 31, 2019, 07:20:56 PM
Yes we've purchased all the required bits along with a case.
Title: Re: So we've bought a Raspberry PI4!
Post by: bazclack on August 01, 2019, 11:29:35 AM
Very interested in running 2 x RDJ from one database. Do let me know how you get on with that. Are you planning on writing a "how to...."?
Title: Re: So we've bought a Raspberry PI4!
Post by: DJ Garybaldy on August 01, 2019, 03:03:21 PM
The 2 copies won't be running at the same time as each other, its just going to basic networking to get a connection between the 2 PC's and the database.


It really isn't (rather shouldn't be) difficult

You just connect the 2 instances to the database using the IP of the machine running the DB server and your usual log in details if you've set it up with the same passwords.

I can't guarantee a how to on this one as I'm not doing the installation of it all my coding partner is he's far more proficient at that sort of stuff, I know the basics.
Title: Re: So we've bought a Raspberry PI4!
Post by: bazclack on August 01, 2019, 03:05:31 PM
ok thanks, it'll solve a problem for me with 2 x databases and the need to import music twice due to having two studios
Title: Re: So we've bought a Raspberry PI4!
Post by: rniblett on August 01, 2019, 03:28:48 PM
We managed to get this working fine (with 1.8.2), the issue we had was playout rules: each instance of RDJ would mark the song as played and therefore it wouldn't show up in rotations for the other instance. There may be a way around it on later versions, need to investigate further as it would be useful.
Title: Re: So we've bought a Raspberry PI4!
Post by: Calypso on August 04, 2019, 10:39:38 AM
We managed to get this working fine (with 1.8.2), the issue we had was playout rules: each instance of RDJ would mark the song as played and therefore it wouldn't show up in rotations for the other instance. There may be a way around it on later versions, need to investigate further as it would be useful.

When using the same database, there is no way around that, simply because the played files are still kept in the same database table. It could be seperated, but that would make the internals of RadioDJ much more complicated (more/heavier queries, so less performance). But to be honest, the use cases of this would be limited I think - it'd be as many as there is for the current behaviour (2 studios that alternate working with the database, so you see the date played in the other studio).

What you could do is make 2 databases and "sync" new/removed entries between them with a script. It should add new entries, remove old ones, but keep the artist/title/album played columns intact. Should not be that difficult.

Title: Re: So we've bought a Raspberry PI4!
Post by: bazclack on August 04, 2019, 11:48:02 AM
My original plan was to have two independent installs using one cloud based hard drive of music with both systems working independently so one presenter could use both studios but with just one copy of music.
Title: Re: So we've bought a Raspberry PI4!
Post by: DJ Garybaldy on August 04, 2019, 05:27:23 PM
We have the Pi4 up and running and so far so good bar one networking issue. Both installs of RadioDJ are pointing to the new database on the PI.


Its working rather well as far as i can see. Now to find a box to put it into to keep the dust off it.
Title: Re: So we've bought a Raspberry PI4!
Post by: DJ Garybaldy on August 10, 2019, 01:12:48 PM
Very interested in running 2 x RDJ from one database. Do let me know how you get on with that. Are you planning on writing a "how to...."?
This is as good a post as you are getting from me about how you run multiple copies of radioDJ from the one (local) database.

https://djgarybaldy.co.uk/one-database-multiple-computers-running-radiodj/ (https://djgarybaldy.co.uk/one-database-multiple-computers-running-radiodj/)

I wrote it a while back when we initially tried with our original Raspberry PI a few years back I've just formatted it to flow better.
Title: Re: So we've bought a Raspberry PI4!
Post by: DJ Garybaldy on August 10, 2019, 07:07:04 PM
My website is currently down... Hosting issue.


**Update**

It should be accessible again no idea what was stopping my website from loading yesterday but its fixed (for now)
Title: Re: So we've bought a Raspberry PI4!
Post by: bazclack on August 11, 2019, 06:04:26 PM
Thanks GB
Title: Re: So we've bought a Raspberry PI4!
Post by: DJ Garybaldy on October 07, 2019, 04:54:26 PM
Update: Everything seem to be running rather well with the database on the RaspberryPi4, the database & RadioDJ are amazingly fast and sleek.

Apart from a Raspbian/Linux update screwing things up last week, everything is working as anticipated (good job we had a copy of the disc image backed up)

We're currently running a DHCP server., MariaDB, PiHole and our home web server from it.

The Pi rarely runs over 56*c so it doesn't run that hot.

So in short I think the RaspberryPi4 is one of our better purchases this year.


Title: Re: So we've bought a Raspberry PI4!
Post by: neutralhills on October 10, 2019, 05:00:16 AM
I put my database back on the Pi3, still running like a charm.
Title: Re: So we've bought a Raspberry PI4!
Post by: DJ Garybaldy on January 24, 2020, 08:33:44 AM
The Pi4 is sadly sat there doing nothing at the moment it broke a while back and TechMonkey hadn't gotten round to re-imaging it.

I guess I need to learn how one of those things works hadn't I? Although I'm crap with programming due to my dyslexia.

The MariaDB database is now on the same virtual machine as RadioDJ. Its like I've gone back 6 steps.