Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Live map of “good morning/night” tweets (wakingandsleeping-globe.glitch.me)
138 points by OmarShehata on Oct 11, 2020 | hide | past | favorite | 31 comments



If you'd like to make it show tweets on different topics you can 'remix' it here https://glitch.com/edit/#!/wakingandsleeping-globe .

In app.js you just need to change the following to the terms you would like:

  const morning = ["Good morning", "Buenas dias", "صباح الخير", "সুপ্রভাত", "शुभ प्रभात", "Доброе утро", "Bom Dia", "おはようございます", "Guten Morgen", "Sugeng enjang", "좋은 아침", "Bon matin", "Günaydın", "Chào buổi sáng", "శుభోదయం", "शुभ प्रभात", "காலை வணக்கம்", "Buongiorno", "صبح بخیر", "સુપ્રભાત", "Dzień dobry", "Доброго ранку", "സുപ്രഭാതം", "ಶುಭೋದಯ"];
You will need to have your own twitter access keys though, which you add to the env file.

Dobranoc


I don't know about other language, but wow the term for Japanese is so formal it's likely those are just tweets from brand/official account.


You misspelled "Buenos días" (assuming it's supposed to be spanish).


Related: WebGL globe showing live Wikipedia edits https://umaar.com/globe/


Glitch is an amazing tool. Before the recent changes they made in terms of projects sleeping, I have run a collection of telegram bots [1] servicing a few thousand telegram groups / millions of users on there for free, with minimal downtime over a 2 year period. I've had to switch to the paid plan now, but the ease in getting a project live on the internet with glitch is second to none.

[1] http://telegrambotcollection.glitch.me/ (and even this website is hosted on glitch)


Another interesting twitter related project: http://alltheminutes.com/


This is pretty amazing, I'm surprised there's enough tweets with the exact time but I guess "It's X time and I'm Y" is a pretty common phrase


This actually reminds me of the early days of twitter, when people would do this more often in my feed. Don't really see it anymore, but I guess it still happens in more niche circles!


Some kind of local time zone vertical line overlay option might be a nice addition.

Why I thought about this: I'm using a ~12 year old monitor that occasionally has a broken column of pixels about 2/3 of the whole monitor width away from the left edge and thought it was trying to align with the ever-moving map on the site. It confused me why the actual location wasn't lining up until I realized it was my monitor's fault.



Oh cool - tweets from that account show up 28 times in my timelapse I made of tweets since last night (out of 13,976 tweets): https://twitter.com/Omar4ur/status/1315325135990202369


I love the idea. I think it would be a really cool idea for some IoT picture frame.

I think a 2D map would be more effective.


I have this in the about page in the app, but this is actually based on a 2D version: http://wakingandsleeping.glitch.me

I just wanted to be able to see the day/night part (which now that I think about you can do with Cesium).


That’s awesome. I’m on mobile and can’t tell what tech you’re using but I bet you can just calculate day night geometries and draw them onto a Leaflet or OpenLayers map.

I can’t commit atm but I might poke at this and I’ll flag you if I come up with something or find an existing solution. A leaflet plug-in for this sounds like a fun little project.


Yeah I'd love to see if you build off this!

FYI all you gotta do to switch to 2D in this viewer is type this in the console:

``` viewer.scene.morphTo2D() ```

It might be fun to regenerate this timelapse I did with the 2D view since you can see the whole world at once: https://twitter.com/Omar4ur/status/1315325135990202369


There's a flag you can pass to Cesium to show a button in the UI to switch between 2D and 3D.


I think this is an interesting example of how what you post publicly can indirectly give away information, but then again, I suspect people wouldn't be tweeting such things if they wanted their (even approximate) locations to remain private.


Tweet thread with timelapse from running it over night: https://twitter.com/Omar4ur/status/1315325135990202369


Interesting how 'night' seems to start well after sunset, at least right now in the Northern Hemisphere. 'Morning', however, seems to be happening more at sunrise.


Dude, add the Greek versions of good morning and goodnight. I was wondering why my country was empty in a vast field of good mornings.


@OmarShehata - do you use the Twitter API to get this data? Is it a simple process to get access?


hmmm, doesn't seem to work in firefox for me?

Realy cool though!


ah I thought it was just down, but it was FF (on macOS) related, Chrome works


Note - you may need to disable your adblocker for this site to function


I'm surprised adblocker is breaking this. Any idea what component/library it's blocking here? This is using socket.io to get tweets from the server.


At least one of the built in uBlock lists (I have almost all enabled, probably one of the anti social media ones) blocks js files with the name "tweets.js".


Thanks, was just waiting there like an idiot haha.


I like this a lot


Clearly all these tweets are fake and added by Twitter who are part of the conspiracy to make people believe the Earth isn't flat. /s


Please stop using WebGL without a fallback... Plenty of devices don't support it or immediately crash...


What are they supposed to fallback their 3D implementation to? It’s not for you, just turn the channel.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: