Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Song ratings
#22
I have a couple scripts that run on the Pi. One script mounts a share from my Mac that contains the cloned repo source tree. The other script batch copies files from the source tree into the corresponding dirs on the Pi for a full build. If I just need to copy a few files I do that manually. I use Atom editor on my Mac to edit the files. It works in tandem with GitHub Desktop app.

SQL updates are not scripted. I manually make the modifications after using SQLiteSutdio to make the mods to the master database file for example here are the commands run on the Pi to create a new cfg_radio table with additional columns. The DDL and .csv export comes from SQLiteStudio.

Code:
sudo sqlite3 /var/local/www/db/moode-sqlite3.db "DROP TABLE cfg_radio"
sudo sqlite3 /var/local/www/db/moode-sqlite3.db "CREATE TABLE cfg_radio (id INTEGER PRIMARY KEY, station CHAR (128), name CHAR (128), type CHAR (8), logo CHAR (128), genre CHAR (32), broadcaster CHAR (32), language CHAR (32), country CHAR (32), region CHAR (32), bitrate CHAR (32), format CHAR (32))"

sudo ./dev.sh mount-moode
sudo cp /mnt/moode-player/components/sqlite/cfg_radio.csv ./
# Edit and remove line 1 column headers
sudo nano ./cfg_radio.csv

sudo sqlite3 /var/local/www/db/moode-sqlite3.db -csv ".import ./cfg_radio.csv cfg_radio"
sudo rm ./cfg_radio.csv

When all is looking good on the Pi I use GitHub Desktop on my Mac to push the commits to the development repo.

There is also a new build process developed by @bitlab thats based on GULP and incorporates a lot more automation. I haven't had the time to test it yet... https://github.com/moode-player/moode/issues/129

Ultimately we want to get to a canned build process that any developer can install and start using with minimal learning curve.

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Song ratings - by okneloper - 06-18-2020, 09:06 AM
RE: Song ratings - by TheOldPresbyope - 06-18-2020, 10:30 AM
RE: Song ratings - by okneloper - 06-18-2020, 01:14 PM
RE: Song ratings - by Tim Curtis - 06-18-2020, 01:17 PM
RE: Song ratings - by TheOldPresbyope - 06-18-2020, 01:39 PM
RE: Song ratings - by okneloper - 06-18-2020, 02:03 PM
RE: Song ratings - by Tim Curtis - 06-18-2020, 02:11 PM
RE: Song ratings - by TheOldPresbyope - 06-18-2020, 02:20 PM
RE: Song ratings - by okneloper - 06-18-2020, 05:31 PM
RE: Song ratings - by TheOldPresbyope - 06-18-2020, 06:17 PM
RE: Song ratings - by okneloper - 06-18-2020, 06:44 PM
RE: Song ratings - by Tim Curtis - 06-18-2020, 07:00 PM
RE: Song ratings - by okneloper - 06-18-2020, 07:16 PM
RE: Song ratings - by Tim Curtis - 06-18-2020, 07:19 PM
RE: Song ratings - by TheOldPresbyope - 06-18-2020, 07:51 PM
RE: Song ratings - by okneloper - 06-18-2020, 08:02 PM
RE: Song ratings - by okneloper - 06-18-2020, 09:20 PM
RE: Song ratings - by Tim Curtis - 06-18-2020, 09:57 PM
RE: Song ratings - by okneloper - 06-19-2020, 07:56 AM
RE: Song ratings - by Tim Curtis - 06-19-2020, 12:22 PM
RE: Song ratings - by okneloper - 06-19-2020, 12:47 PM
RE: Song ratings - by Tim Curtis - 06-19-2020, 01:21 PM
RE: Song ratings - by TheOldPresbyope - 06-19-2020, 01:52 PM
RE: Song ratings - by okneloper - 06-19-2020, 04:21 PM
RE: Song ratings - by TheOldPresbyope - 06-19-2020, 04:59 PM
RE: Song ratings - by CallMeMike - 06-20-2020, 07:35 AM
RE: Song ratings - by DRONE7 - 06-20-2020, 09:11 AM
RE: Song ratings - by okneloper - 06-20-2020, 09:11 PM
RE: Song ratings - by okneloper - 02-26-2021, 09:35 AM
RE: Song ratings - by cprogrammer - 09-23-2021, 08:18 AM
RE: Song ratings - by Tim Curtis - 09-23-2021, 11:06 AM
RE: Song ratings - by cprogrammer - 09-23-2021, 11:42 AM
RE: Song ratings - by TheOldPresbyope - 09-23-2021, 01:17 PM
RE: Song ratings - by Tim Curtis - 09-23-2021, 01:26 PM
RE: Song ratings - by stefsam - 12-24-2021, 11:38 AM

Forum Jump: