• Welcome to RadioDJ - Free Radio Automation Software Forum. Please log in or sign up.

So we've bought a Raspberry PI4!

Started by ghm72, July 31, 2019, 03:51:39 PM

ghm72

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!

stevewa

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.

ghm72

Yes we've purchased all the required bits along with a case.

bazclack

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...."?
Witney Radio 99.9FM, 105.3FM & 107.4FM & online @ www.witney.radio

ghm72

#4
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.

bazclack

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
Witney Radio 99.9FM, 105.3FM & 107.4FM & online @ www.witney.radio

rniblett

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.
www.piratenationradio.com
www.facebook.com/TSoFR
www.twitter.com/TSoFR

Calypso

Quote from: 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.

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.


bazclack

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.
Witney Radio 99.9FM, 105.3FM & 107.4FM & online @ www.witney.radio

ghm72

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.

ghm72

Quote from: 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...."?
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/

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.

ghm72

#11
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)

bazclack

Witney Radio 99.9FM, 105.3FM & 107.4FM & online @ www.witney.radio

ghm72

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.



neutralhills

I put my database back on the Pi3, still running like a charm.
Squirrel FM : Always playing with our nuts!
www.squirrel.fm
Studio systems running RadioDJ & Rivendell (occasional only)
Flow 8 Deck & PlayIt Cartwall for live mixing and assist.
Remote systems running RadioDJ
Pioneer DDJ-SX control surface.