Backdraft76
Dabbler
- Joined
- Oct 23, 2014
- Messages
- 11
Thanks for the help. And thanks for the advice! I really appreciate it.
msg_header3 = '<a href="{website}" style="color: #9A9A9A
You have a code per chance on how to update PlexEmail with newest version? Tried git clone command and said fatal error because directory already existedI had a look at this today, installed and configured in it's own jail. Not done one before, but an attempt at some instructions below:
1. Create new Jail (default options, I'd called it plexemail)
2. Add storage to the plexemail jail pointing to your plexdata folder in your plex jail (my destination was /plexms)
3. From the CLI in the jail run:
Code:pkg upgrade pkg install py27-sqlite3 py27-requests apache24 nano git clone https://github.com/jakewaldron/PlexEmail.git mkdir /usr/local/www/apache24/data/plexemail cp -R /PlexEmail/web/ /usr/local/www/apache24/data/plexemail
Update 03/05: I've update the above code as the mkdir and cp command were the wrong way around!
4. Edit the config.conf file with relevant details:
Code:nano /PlexEmail/scripts/config.conf
nb: you’ll need to change the path to the plex media server storage link (mine was /plexms) and web folder (/usr/local/www/apache24/data) along with SMTP settings for your e-mail service.
5. Run the plexEmail script:
Code:python2.7 /PlexEmail/scripts/plexEmail.py
6. Set-up a weekly Cron job to run the script:
Code:crontab -u root -e 59 23 * * 0 python2.7 /PlexEmail/scripts/plexEmail.py
nb: Hit the 'i' button to set vi into 'insert mode'. Copy & paste line 2 into the editor, then hit the "Escape" button then ":" then "w" then "q" then "enter"
Alternatively, you can create a Cron task in the FreeNAS GUI with the following command:
Code:jexec plexmail python2.7 /PlexEmail/scripts/plexEmail.py
When I updated it I renamed the old folder and then used git clone to copy the new version. From there you could try copying the old config.conf file into the new scripts folder, but as I hadn't updated for a while I was guessing there would be new stuff so manually updated it based on the previous files settings.