News for hackers. Stuff that matters.
Re:Show HN: iMessage Wrapped – your year in texts by lxor677 on Friday January 01, 2021 @01:57PM (#25605651)
I got inspired by Spotify Wrapped to put together this - an iMessage Wrapped with data and visualizations on who/where/what/how/when people texted in 2020.

Stack is Flask, Jinja, chart.js, leaflet.js and bootstrap. The app runs locally, and accesses the chat and contact SQLite DBs on OS machines. I've been programming for about 18 months, but this was is the first side project I've released into the wild, so it's been an awesome learning experience.

Link to the repo is here

https://github.com/michael-danello/iMessageWrapped

Re:Show HN: iMessage Wrapped – your year in texts by pvg on Saturday January 02, 2021 @01:24AM (#25610868)
I got the impression from the code that this operates directly on whatever sqlite db iMessage actually uses. Is this right? If so, it's probably worth considering just making a copy, or including a script that makes the copy, when sudo'd. That way you don't need the permanent permission and there's no chance of accidentally messing up an important bit of user data. And paranoid people will probably feel better about not having a live local webserver that's poking around their personal messages.
Re:Show HN: iMessage Wrapped – your year in texts by lxor677 on Saturday January 02, 2021 @08:56AM (#25612845)
Totally fair. I'll look into that for a v2. Since the operations are RO, I don't think there's much risk of messing up the data, but I think it makes sense from a context standpoint. The application certainly doesn't need permanent access.

Although tbh, one of the reasons I had it was because I tried to orient the setup towards a non-technical audience, so I wanted a 'clickable' solution, like giving full disk access.

Re:Show HN: iMessage Wrapped – your year in texts by 67868018 on Saturday January 02, 2021 @11:29PM (#25619466)
SQLite has write locking, it's not going to happen. And you're only reading anyway...
Re:Show HN: iMessage Wrapped – your year in texts by Zanni on Saturday January 02, 2021 @03:40AM (#25611331)
This is very cool. Some minor nits, since you seem to be open to feedback here: 1) Received (not Recieved) 2) represents (not repersents) 3) I have a random late night buddy because I sent no texts between 12 and 3am. 4) The "Good morning sunshine" block tells me my first morning text was sent at 13:39 AM on average, which is not a real time (should be just 13:39 or 1:39 PM) and not in the morning--which further suggests you're taking my overall average text time and not my average morning text time. This might be clearer as "You sent your first text at" (skipping "morning"). 5) I got no days of the week data and no map data.

Once again, these are minor nits and didn't detract from my enjoyment at all. Just thought you might appreciate the chance to fix some easy errors.

Re:Show HN: iMessage Wrapped – your year in texts by lxor677 on Saturday January 02, 2021 @09:03AM (#25612873)
Thank you! Appreciate the feedback and glad you enjoyed. Spelling errors are my bane - I'll make sure to fix those.

And yep, I think fixing some of those time errors is where I'll start. I feel that pandas is better optimized for handling dates than times, which explains some of my wonky work arounds.

Days of the week is also interesting - did you have a full year of imessages on your computer or do you auto-delete after a certain period?

The map is puzzling and I'm working to debug. It seems that it works occasionally on reload and that it works consistently if all fade-in animations are removed from page.

I put this together in the last two weeks, so it's definitely been rushed. Thanks again for the feedback!

Re:Show HN: iMessage Wrapped – your year in texts by oefrha on Saturday January 02, 2021 @12:29AM (#25610654)
The contact map seems to be based on area code: https://github.com/michael-danello/iMessageWrapped/blob/cef2...

Unfortunately area code of a cell phone number isn't a great indicator of where the owner lives (though to be fair you can't really tell otherwise). Relevant XKCD entry: https://xkcd.com/1129/ In my case my area code (650) is where I went to college, and many if not most of my friends and colleagues seem to be in a similar position.

Re:Show HN: iMessage Wrapped – your year in texts by lxor677 on Saturday January 02, 2021 @09:11AM (#25612924)
Haha, that XKCD is great. Yeah, this was definitely a recognized constraint for the where section.

What I will say is that I recently graduated from college, so my data was actually fairly descriptive - friends' hometowns (where a number of them have moved back) + a whole lot of international students in my college town who got US numbers.

Re:Show HN: iMessage Wrapped – your year in texts by gnicholas on Saturday January 02, 2021 @03:30AM (#25611303)
Fun, thanks! BTW, the word "represents" is misspelled in the WHO section.
Re:Show HN: iMessage Wrapped – your year in texts by firekvz on Saturday January 02, 2021 @01:03AM (#25610790)
As a side note, not american and not iphone user.

the last time i got an sms from a real person was mid 2018 and it was my mom telling me that she had no wifi thus could not answer my whatsapp messages

after that, i have received around 2k SMSs, all of them are just notifications from bunch of services (banking, airlines, etc) and 2FA from another bunch of services.

Has SMS really died as a form of communication for most of the people?

Also, I saw some news about RCS in android, I saw my pixel 4 got it, i set it up but i had noone to use it with

Re:Show HN: iMessage Wrapped – your year in texts by BiteCode_dev on Saturday January 02, 2021 @01:42AM (#25610916)
I keep using a lot of text messages: I have many people with different type of chat apps, or no chat apps at all (old gen), so the only way to reach everybody is doing that instead of juggling with different services.

I don't use whatsapp, and don't have an iPhone, so no imessage. Most people don't use Telegram or Signal which I do. Not to mention a lot of geeks have their favorite way of being contacted (slack, wire, etc).

And of course all that will have change in a few years. Before you had to have facebook. When in Asia, it was lime or something else.

As soon as you have a lot diversity in your life, text messages are the only thing that works all the time, plus they are free in my country.

In fact, iMessage is basically sending text messages without the user knowing they do if the other hand is not an Apple device.

In the end, I suspect text messages will still be here in 10 years, and all people around me asking to subscribe to yet another chat service will have change 3 times (and lose their contact list in the process).

Re:Show HN: iMessage Wrapped – your year in texts by icelancer on Saturday January 02, 2021 @01:24AM (#25610867)
In America for people in their 30s it's the primary method of communication for personal use. I try to push Signal but haven't had much success. It's Slack (or Discord) and iMessage/SMS for the most part. I do communicate internationally though and that's nearly exclusively through WhatsApp.

Younger generation seems to be more on Facebook Messenger, Snapchat, and Instagram DMs.

Re:Show HN: iMessage Wrapped – your year in texts by dinkleberg on Saturday January 02, 2021 @09:45AM (#25613107)
I’m in the US and the only people I know that use WhatsApp or the like instead of sms/iMessage are those who came from another country and use WhatsApp to talk with their friends and family back home.
Re:Show HN: iMessage Wrapped – your year in texts by frombody on Saturday January 02, 2021 @07:50AM (#25612489)
Most people in my circle refuse to use whatsapp because of privacy concerns or just simply that they don't want to use any facebook apps.

Since there is a mix of messenger apps out there that everyone uses, SMS is always reliable, especially when you interact with many different people whose preferences you do not know.

Re:Show HN: iMessage Wrapped – your year in texts by deft on Saturday January 02, 2021 @02:22AM (#25611058)
Most people I talk to still text me. I don't have facebook or instagram I think is the main reason.
Re:Show HN: iMessage Wrapped – your year in texts by swiley on Saturday January 02, 2021 @02:13AM (#25611027)
Apple killed internet chat by effectively disallowing community maintained clients on the app store.

So your choices are convince all your friends to use a proprietary app/service (with all the downsides) or put up with mms group chats which are free in the US anyway and don't require setting up accounts. I've struggled with this for years and until apple un___ks iOS I think it's going to stay the same.

Re:Show HN: iMessage Wrapped – your year in texts by oarsinsync on Saturday January 02, 2021 @02:26AM (#25611070)
> Apple killed internet chat by effectively disallowing community maintained clients on the app store.

Can you elaborate on this please? Is this a reference to the GPL being incompatible with proprietary appstores, or something else?

Re:Show HN: iMessage Wrapped – your year in texts by swiley on Saturday January 02, 2021 @12:39PM (#25614534)
No.

The publisher of the app is the only one allowed to run push notification servers. The privilege of doing this costs $100/year and you're not allowed to sign other people's keys to allow them to do it. Since most chat apps were maintained by volunteers they're unlikely to have the time to dedicate to running a service like this which means that pretty much have to be paying someone in order to have usable chat apps.

Re:Show HN: iMessage Wrapped – your year in texts by vimy on Friday January 01, 2021 @03:07PM (#25606420)
It won't start on my computer. 500 internal server error.

----

[nltk_data] Error loading averaged_perceptron_tagger: <urlopen error

[nltk_data] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify

[nltk_data] failed: unable to get local issuer certificate

[nltk_data] (_ssl.c:1108)>

And a nitpick: "Once you’ve done this, you can open the iMessageWrapped.exe file." .exe is windows. .app is macOS.

Re:Show HN: iMessage Wrapped – your year in texts by lxor677 on Friday January 01, 2021 @03:10PM (#25606473)
Thanks vimy - I'll look into that error and change the README
Re:Show HN: iMessage Wrapped – your year in texts by vimy on Friday January 01, 2021 @03:11PM (#25606488)
Sorry, that was the wrong error.

"[2021-01-01 21:06:27,366] ERROR in app: Exception on / [GET] Traceback (most recent call last):

  File "flask/app.py", line 2447, in wsgi_app

  File "flask/app.py", line 1952, in full_dispatch_request

  File "flask/app.py", line 1821, in handle_user_exception

  File "flask/_compat.py", line 39, in reraise

  File "flask/app.py", line 1950, in full_dispatch_request

  File "flask/app.py", line 1936, in dispatch_request

  File "imessage2020wrapped/app.py", line 360, in index

  File "imessage2020wrapped/app.py", line 194, in get_when_data

  File "imessage2020wrapped/app.py", line 155, in avg_datetime
"
Re:Show HN: iMessage Wrapped – your year in texts by lxor677 on Friday January 01, 2021 @03:15PM (#25606531)
Huh ok. I had a pretty hacky way of calculating average time, so I'll take a look. Thanks for flagging this.
Re:Show HN: iMessage Wrapped – your year in texts by ibrarani on Friday January 01, 2021 @04:54PM (#25607597)
I got the same error as well
Re:Show HN: iMessage Wrapped – your year in texts by mrala on Friday January 01, 2021 @06:33PM (#25608493)
It seems like the error is related to nltk: https://stackoverflow.com/questions/38916452/nltk-download-s...
Re:Show HN: iMessage Wrapped – your year in texts by andrethegiant on Friday January 01, 2021 @02:32PM (#25605988)
Love it, and would love to see more analysis based on chat.db. A while ago I made a script to select a conversation from a person and output it as a styled PDF, and gave it to them as a gift. It was a hit :-) still need to publish that code, but it was for a previous version of iOS when it used to be sms.db.
Re:Show HN: iMessage Wrapped – your year in texts by lxor677 on Friday January 01, 2021 @02:37PM (#25606061)
Thanks! There's a lot more I would want to include in a V2 - statistics like average contact response time, top phrases, and conversation analysis (did you like to double text? did you have conversations in bursts or consistently?).

That said, it's been cool sharing with friends and seeing the results they share with me. Seeing some interest dips/spikes in text frequency around the start of the pandemic depending on the person.

Re:Show HN: iMessage Wrapped – your year in texts by andrethegiant on Friday January 01, 2021 @04:33PM (#25607400)
It would be cool to tie this data into a personal CRM so you could e.g. get a reminder when it's been longer than 6 months without texting a person
Re:Show HN: iMessage Wrapped – your year in texts by lxor677 on Saturday January 02, 2021 @09:11AM (#25612928)
I like that! It bugs me endlessly that you can't schedule/get nudged by imessages
Re:Show HN: iMessage Wrapped – your year in texts by zajn on Friday January 01, 2021 @06:17PM (#25608353)
Really cool analysis! Weirdly I get a total of 0 messages sent and received, but the `span` has a style that seems to have the correct number. My top 10 data was all there and correct. Nice job!
Re:Show HN: iMessage Wrapped – your year in texts by adeelk93 on Friday January 01, 2021 @06:37PM (#25608519)
Might be a safari/chrome issue
Re:Show HN: iMessage Wrapped – your year in texts by ibrarani on Friday January 01, 2021 @04:47PM (#25607530)
I keep getting

Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Re:Show HN: iMessage Wrapped – your year in texts by lucolsthoorn on Sunday January 03, 2021 @10:38PM (#25627715)
I made a similar one for facebook messenger messages https://luc-olsthoorn.github.io/FacebookMessengerViz/
Re:Show HN: iMessage Wrapped – your year in texts by swiley on Saturday January 02, 2021 @02:11AM (#25611020)
IME installing OSX and logging into iCloud alone won't give you access to iMessage archives even though it allows you to send and receive them.
Re:Show HN: iMessage Wrapped – your year in texts by raunakdag on Friday January 01, 2021 @03:17PM (#25606550)
I know the answer will be no, but is there any similar way to accomplish this on iPhone without jailbreak?
Re:Show HN: iMessage Wrapped – your year in texts by throwawaysea on Friday January 01, 2021 @03:48PM (#25606910)
This tool relies on having a Mac desktop or laptop, since they can also show iMessages. It doesn’t require a jailbroken phone.
Re:Show HN: iMessage Wrapped – your year in texts by lights0123 on Friday January 01, 2021 @04:58PM (#25607637)
Find a vulnerability in the Messages app like the Safari one a few months ago that allowed you to share its SQLite databases :D?
Re:Show HN: iMessage Wrapped – your year in texts by tahabroach on Saturday January 02, 2021 @05:02AM (#25611635)
I just want to make sure that by OSX, you meant macOS, right? Or is it only the older versions?