–
pkg install python2 databases/py-sqlite3 security/py-openssl security/ca_root_nss git
cd /usr/local/share/
git clone https://github.com/drzoidberg33/plexpy.git
adduser
chown -R user:wheel plexpy
cd plexpy
python2 PlexPy.py
cp /usr/local/share/plexpy/init-scripts/init.freenas /etc/rc.d/plexpy
chmod 755 /etc/rc.d/plexpy
vi /etc/rc.d/plexpy
${plexpy_user:="plexpy"}
/etc/rc.conf
and add plexpy_enable="YES"
service plexpy status
or service plexpy start
etc can now be run