RadioDJ - Free Radio Automation Software Forum

So we've bought a Raspberry PI4!

Offline DJ Garybaldy

  • *****
  • 4174
  • Never Get Angry At the Stupid People (Erasure)
    • DJ Garybaldy
So we've bought a Raspberry PI4!
« 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!
Proud USER of RadioDJ since 2010

Computer Specification: Windows 10 Pro 32GB RAM & i5 processor 3.99ghz

TIP: When you make a change in RadioDJ BACKUP the database

Re: So we've bought a Raspberry PI4!
« Reply #1 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.

Offline DJ Garybaldy

  • *****
  • 4174
  • Never Get Angry At the Stupid People (Erasure)
    • DJ Garybaldy
Re: So we've bought a Raspberry PI4!
« Reply #2 on: July 31, 2019, 07:20:56 PM »
Yes we've purchased all the required bits along with a case.
Proud USER of RadioDJ since 2010

Computer Specification: Windows 10 Pro 32GB RAM & i5 processor 3.99ghz

TIP: When you make a change in RadioDJ BACKUP the database

Offline bazclack

  • ***
  • 195
  • 0800001066
    • Witney Radio - It's YOUR Local Radio
Re: So we've bought a Raspberry PI4!
« Reply #3 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...."?
Witney Radio 99.9FM & online @ 999.radio

Offline DJ Garybaldy

  • *****
  • 4174
  • Never Get Angry At the Stupid People (Erasure)
    • DJ Garybaldy
Re: So we've bought a Raspberry PI4!
« Reply #4 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.
« Last Edit: August 01, 2019, 03:26:11 PM by DJ Garybaldy »
Proud USER of RadioDJ since 2010

Computer Specification: Windows 10 Pro 32GB RAM & i5 processor 3.99ghz

TIP: When you make a change in RadioDJ BACKUP the database

Offline bazclack

  • ***
  • 195
  • 0800001066
    • Witney Radio - It's YOUR Local Radio
Re: So we've bought a Raspberry PI4!
« Reply #5 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
Witney Radio 99.9FM & online @ 999.radio

Re: So we've bought a Raspberry PI4!
« Reply #6 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.
www.piratenationradio.com
www.facebook.com/TSoFR
www.twitter.com/TSoFR

Re: So we've bought a Raspberry PI4!
« Reply #7 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.


Offline bazclack

  • ***
  • 195
  • 0800001066
    • Witney Radio - It's YOUR Local Radio
Re: So we've bought a Raspberry PI4!
« Reply #8 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.
Witney Radio 99.9FM & online @ 999.radio

Offline DJ Garybaldy

  • *****
  • 4174
  • Never Get Angry At the Stupid People (Erasure)
    • DJ Garybaldy
Re: So we've bought a Raspberry PI4!
« Reply #9 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.
Proud USER of RadioDJ since 2010

Computer Specification: Windows 10 Pro 32GB RAM & i5 processor 3.99ghz

TIP: When you make a change in RadioDJ BACKUP the database

Offline DJ Garybaldy

  • *****
  • 4174
  • Never Get Angry At the Stupid People (Erasure)
    • DJ Garybaldy
Re: So we've bought a Raspberry PI4!
« Reply #10 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/

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.
Proud USER of RadioDJ since 2010

Computer Specification: Windows 10 Pro 32GB RAM & i5 processor 3.99ghz

TIP: When you make a change in RadioDJ BACKUP the database

Offline DJ Garybaldy

  • *****
  • 4174
  • Never Get Angry At the Stupid People (Erasure)
    • DJ Garybaldy
Re: So we've bought a Raspberry PI4!
« Reply #11 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)
« Last Edit: August 11, 2019, 12:36:02 PM by DJ Garybaldy »
Proud USER of RadioDJ since 2010

Computer Specification: Windows 10 Pro 32GB RAM & i5 processor 3.99ghz

TIP: When you make a change in RadioDJ BACKUP the database

Offline bazclack

  • ***
  • 195
  • 0800001066
    • Witney Radio - It's YOUR Local Radio
Re: So we've bought a Raspberry PI4!
« Reply #12 on: August 11, 2019, 06:04:26 PM »
Thanks GB
Witney Radio 99.9FM & online @ 999.radio

Offline DJ Garybaldy

  • *****
  • 4174
  • Never Get Angry At the Stupid People (Erasure)
    • DJ Garybaldy
Re: So we've bought a Raspberry PI4!
« Reply #13 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.


Proud USER of RadioDJ since 2010

Computer Specification: Windows 10 Pro 32GB RAM & i5 processor 3.99ghz

TIP: When you make a change in RadioDJ BACKUP the database

Offline neutralhills

  • ****
  • 344
  • Nil sine labore.
    • squirrel.fm
Re: So we've bought a Raspberry PI4!
« Reply #14 on: October 10, 2019, 05:00:16 AM »
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.