MMS Download Script - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139) +---- Thread: MMS Download Script (/showthread.php?tid=12119) Pages:
1
2
|
MMS Download Script - antiX-Dave - 11-11-2020 Just finished cleaning up / redoing my bash script for downloading mms messages. It appears that others have already published their programs/scripts for working with MMS and some are now working on better implementations. Thought I would share mine anyway in case it helps somehow. Script: https://gitlab.com/antiX-Dave/mms-download/-/blob/master/mms-download It will need / should have installed curl, recoverjpeg, libnotify-bin, sox apt install curl recoverjpeg libnotify-bin sox You will need to modify the variables in the script at least to show your service providers mms proxy and mms proxy port I also have this running on a cron job every 5 minutes. For this you also need to install cron apt install --no-install-recommends cron A couple others I have noticed working on mms when looking where to post this https://forum.pine64.org/showthread.php?tid=11994 https://forum.pine64.org/showthread.php?tid=12106 RE: MMS Download Script - DarkManiels - 11-11-2020 (11-11-2020, 02:23 PM)antiX-Dave Wrote: Just finished cleaning up / redoing my bash script for downloading mms messages. It appears that others have already published their programs/scripts for working with MMS and some are now working on better implementations. Thought I would share mine anyway in case it helps somehow. This is great - thanks for working on and sharing it! And thanks for pointing to the other MMS projects as well, which I hadn't heard of. This has been the only issue keeping me from using the Pinephone as my daily driver, since my wife and friends often send MMS messages and I was concerned about missing them or having them clog up my inbox. Look forward to trying it out soon. RE: MMS Download Script - kng - 11-12-2020 (11-11-2020, 02:23 PM)antiX-Dave Wrote: Just finished cleaning up / redoing my bash script for downloading mms messages. It appears that others have already published their programs/scripts for working with MMS and some are now working on better implementations. Thought I would share mine anyway in case it helps somehow. RE: MMS Download Script - Cree - 11-12-2020 Now lets just make this bash script run in the background every 5 or 10 mins automatically after boot and package it as a .deb file for public download and it should satisfy anyone who has this as a Daily Driver requirement. RE: MMS Download Script - HLing - 11-12-2020 AntiX-Dave, Thanks for the work! I am not quite ready to try this, but in going through the motion I found today with sudo mmcli -L that my modem is no longer 0, but is 6. (which explains why I was getting error message of not finding the modem, even though my phone voice and data were both working.) So then I continue to check and see if i have any large sms that usually means someone sent me a mms without me knowing. Literally, within the same hour, with sudo mmcli -i 6 , I get the error message that there is no SIM found. OK, so I did another sudo mmcli -L , and what do you know, it is now 7, not 6. RE: MMS Download Script - antiX-Dave - 11-12-2020 (11-12-2020, 01:44 PM)HLing Wrote: AntiX-Dave, Thanks for the work! I am not quite ready to try this, but in going through the motion I found today with sudo mmcli -L that my modem is no longer 0, but is 6. (which explains why I was getting error message of not finding the modem, even though my phone voice and data were both working.) So then I continue to check and see if i have any large sms that usually means someone sent me a mms without me knowing. Literally, within the same hour, with sudo mmcli -i 6 , I get the error message that there is no SIM found. OK, so I did another sudo mmcli -L , and what do you know, it is now 7, not 6. Not 100% sure but it sounds like your modem is improperly power cycling and the kernel is seeing it as a new device every time the modem power cycles without seeing the "old" one turning off. Maybe this is a bug when you are toggling mobile service/data on and off? Mine is consistently 0. If that is the case maybe the script needs to check for the modem over a sequence from 0-10? RE: MMS Download Script - HLing - 11-12-2020 (11-12-2020, 02:44 PM)antiX-Dave Wrote:(11-12-2020, 01:44 PM)HLing Wrote: AntiX-Dave, Thanks for the work! I am not quite ready to try this, but in going through the motion I found today with sudo mmcli -L that my modem is no longer 0, but is 6. (which explains why I was getting error message of not finding the modem, even though my phone voice and data were both working.) So then I continue to check and see if i have any large sms that usually means someone sent me a mms without me knowing. Literally, within the same hour, with sudo mmcli -i 6 , I get the error message that there is no SIM found. OK, so I did another sudo mmcli -L , and what do you know, it is now 7, not 6. So I updated and upgraded after posting the above. After rebooting, sudo mmcli -L is back to 0. I think whatever happened had happened yesterday already. Maybe updating had fixed it. But, yes, prior to this my modem had also been consistently 0. RE: MMS Download Script - fdlamotte - 12-07-2020 Hi, Thank you for sharing your script, I've been using it and it worked well. I also have this modem number that increments on each wakeup, so I've modified the script to get the number automatically : MODEM_NUM=`mmcli -L|awk '{print $1}'|awk -F '/' '{print $6}'` ; also, at some point, the wwan interface name changed (it got back to normal afterwards), so I also got to get the name automatically INTERFACE=`ls /sys/class/net|grep ww -m 1`; I sometimes have to reset the modem, but this mostly works. I hope it will help Regards, -- FdL RE: MMS Download Script - Gribouille - 12-10-2020 Thank you @"antiX-Dave", I've used your script with the @fdlamotte's adjustment. But, I've forgotten to add the mandatory package . I've some phone numbers but nothing else, and now nothing to try the script. I would know how to send a MMS with the Pinephone and Mobian. RE: MMS Download Script - kop316 - 12-10-2020 (12-10-2020, 10:36 AM)Gribouille Wrote: Thank you @"antiX-Dave", I've used your script with the @fdlamotte's adjustment. https://forum.pine64.org/showthread.php?tid=12456 It's being worked on! There are ways to send an MMS, but it is clunky right now. Right now thw bulk of the work is now to intergrate it into purple-mm-sms (which then into chatty). If folks have experience with this sort of thing, help would be appreciated though. |