PlexEmail - Email Recently Added Media

@phunkysai said:
How do you install this on OSX? I see it has been tested (via github) but there are no installation instructions there…

Follow the linux instructions since OSX is unix based. I don’t have a mac right now so I can’t create step-by-step instructions. However if someone wants to create them I can add them into the README.

Is there a guide for a freenas install of this?

@eadwyn said:
AstroZombie1 wrote on May 25 2015, 10:45 AM: »

Is this install-able on freenas?

I have it running just fine in my plex jail.  Let me know if you run into any issues when installing it.

glennols wrote on May 25 2015, 8:31 PM: »

Is it possible to add multiple plex servers in the config?

I’ll look into it in a couple weeks (I’m going to be out of the country for my honeymoon!)

Can you give me a run down of how you got it running on freenas, this would go perfect with my plexwatch install.

I’d be interested to see how you got this running in a FreeNAS jail too. I’ve had a quick attempt and would appear I’m not getting the requests module installed correctly. I was assuming it was contained within ‘pkg install py27-pip’ but when i run the script get and error at line 9 which refers to the requests.

Scratch that! After a little more digging I got the requests installed with ‘pkg install py27-requests’ and with a little tinkering to the config.con file have received an e-mail and can view the web page at the jail IP. I’ll try and document it and post some steps up…

Very nice :smiley:

@adrianwi said:
I’d be interested to see how you got this running in a FreeNAS jail too. I’ve had a quick attempt and would appear I’m not getting the requests module installed correctly. I was assuming it was contained within ‘pkg install py27-pip’ but when i run the script get and error at line 9 which refers to the requests.

Scratch that! After a little more digging I got the requests installed with ‘pkg install py27-requests’ and with a little tinkering to the config.con file have received an e-mail and can view the web page at the jail IP. I’ll try and document it and post some steps up…

Very nice :smiley:

Mind giving me a hand with that?

I’ve posted some instructions in the FreeNAS forum > https://forums.freenas.org/index.php?threads/guide-for-installing-plexemail.40748/#post-257799

@adrianwi said:
I’ve posted some instructions in the FreeNAS forum > Guide for installing PlexEmail? | TrueNAS Community

Thanks for doing that! I’ll add this link to the post for installation instructions.

Hi,

I’ve just install this and have the following error

c:\Plexemail\scripts>python plexemail.py
Traceback (most recent call last):
  File "plexemail.py", line 669, in <module>
    cur.execute('SELECT machine_identifier FROM remote_servers     WHERE url LIKE "h
ttp://127.0.0.1%";')
sqlite3.DatabaseError: file is encrypted or is not a database

I’ve install the sqlite3 from your github and use python for other programs like plexpy, HTPC manager ect.

how can I resolve the error

@Main Plex said:
Hi,

I’ve just install this and have the following error

c:\Plexemail\scripts>python plexemail.py
Traceback (most recent call last):
  File "plexemail.py", line 669, in <module>
    cur.execute('SELECT machine_identifier FROM remote_servers     WHERE url LIKE "h
ttp://127.0.0.1%";')
sqlite3.DatabaseError: file is encrypted or is not a database

I’ve install the sqlite3 from your github and use python for other programs like plexpy, HTPC manager ect.

how can I resolve the error

You have to uninstall your 64bit version of python and install the 32bit version.

Anyone having the issue where plexemail.py is running but no matter how many movies are added ther is always the error.
“Emails were not sent because there were no new additions in the timeframe specified”

F:\PlexEmail-master\scripts>plexEmail.py
Web page was not created because the option is disabled in the config file.
Emails were not sent because there were no new additions in the timeframe specified.

thanks in advance,

@neounlimited said:

@Main Plex said:
Hi,

I’ve just install this and have the following error

c:\Plexemail\scripts>python plexemail.py
Traceback (most recent call last):
  File "plexemail.py", line 669, in <module>
    cur.execute('SELECT machine_identifier FROM remote_servers     WHERE url LIKE "h
ttp://127.0.0.1%";')
sqlite3.DatabaseError: file is encrypted or is not a database

I’ve install the sqlite3 from your github and use python for other programs like plexpy, HTPC manager ect.

how can I resolve the error

You have to uninstall your 64bit version of python and install the 32bit version.

Is there no other way around this as mentioned I have a number of programs that use my current python and don’t want to mess it up

@Main Plex said:

You have to uninstall your 64bit version of python and install the 32bit version.

Is there no other way around this as mentioned I have a number of programs that use my current python and don’t want to mess it up

I may be wrong, but I’m pretty sure you can safely uninstall and reinstall and be fine. The only worries is if one of your apps “requires” 64bit. But that is unlikely.

fyi, when you install the 32 bit version, unselect the PIP install if you have errors of it not wanting to install. after it installs, you can go back in and select ‘change’ for the type of install and then add the PIP on the change install. this ended up working for me.

what i meant is you can install a second time as a ‘change’, then add PIP.

Okay I’ve switched over to 32bit but I’m still getting the same error

@Main Plex said:
Okay I’ve switched over to 32bit but I’m still getting the same error

copy the sqlite.dll from your plex directory into your python dll directory. I.E. C:\Users\NEOADMIN\AppData\Local\Plex Media Server
or use the ones from the install instructions.

@neounlimited said:
Anyone having the issue where plexemail.py is running but no matter how many movies are added ther is always the error.
“Emails were not sent because there were no new additions in the timeframe specified”

F:\PlexEmail-master\scripts>plexEmail.py
Web page was not created because the option is disabled in the config file.
Emails were not sent because there were no new additions in the timeframe specified.

thanks in advance,

Any thoughts?

@neounlimited said:

@neounlimited said:
Anyone having the issue where plexemail.py is running but no matter how many movies are added ther is always the error.
“Emails were not sent because there were no new additions in the timeframe specified”

F:\PlexEmail-master\scripts>plexEmail.py
Web page was not created because the option is disabled in the config file.
Emails were not sent because there were no new additions in the timeframe specified.

thanks in advance,

Any thoughts?

Check the config file for errors.

@neounlimited said:

@neounlimited said:
Anyone having the issue where plexemail.py is running but no matter how many movies are added ther is always the error.
“Emails were not sent because there were no new additions in the timeframe specified”

F:\PlexEmail-master\scripts>plexEmail.py
Web page was not created because the option is disabled in the config file.
Emails were not sent because there were no new additions in the timeframe specified.

thanks in advance,

Any thoughts?

My config.conf contains the following…

##General
date_format = ‘%d/%m/%y’
date_days_back_to_search = 7
date_hours_back_to_search = 0
date_minutes_back_to_search = 0

Have you correctly configured this with the period that you want to cover with your email? Try ramping the number of days up to something massive whilst you test.

@neounlimited said:

@Main Plex said:
Okay I’ve switched over to 32bit but I’m still getting the same error

copy the sqlite.dll from your plex directory into your python dll directory. I.E. C:\Users\NEOADMIN\AppData\Local\Plex Media Server
or use the ones from the install instructions.

I already have the SQLite.dll from the instruction in the dll folder, when I try to remove it it tells me Python.exe is using it
Also I don’t see q SQLite.ddl in the plex folder

Sorry if I’m being dim