News for hackers. Stuff that matters.
Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Monday June 24, 2019 @09:32PM (#20270386)
There's a bus station across from my studio / coworking space. I can see people waiting for the bus and doing either: 1) staring into the void 2) looking at their watches 3) desperately glancing in the direction where the bus is coming from.

I figured that it'd be nice to let people know when the bus is supposed to be there. So, I installed a 28" display on a monitor stand, installed the stand on my window frame, turned the monitor to face the bus station, and show the up-to-date arrival time in a very big font (the buses have GPS; the Pi gets the real time info from the local transit authority).

This is in Montreal. Some info here [0]. And a little video [1].

[0] https://greg.technology/#bus [1] https://youtu.be/pc16oPb5zW0

Re:Ask HN: What do you do with your Raspberry Pi? by rockmeamedee on Monday June 24, 2019 @11:27PM (#20270925)
Big ups! I use this all the time in winter while waiting for the 55. I definitely assumed you worked at Ubisoft across the street!

Btw, from some experience spending cold winters looking at it, it flickers a lot by having so many screen changes, making it tiring to see the screen change so much. L'AUTOBUS - SERA - LA - DANS - 5... - MINUTES - GREG . - TECHNOLOGY. It would be easier on the eyes if it changed less often.

Thanks so much anyways!

Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Tuesday June 25, 2019 @12:51AM (#20271285)
Ha, small world :-)

Agreed on timing, it could be better. I'll consider skipping some of the words + make them appear slower. Thanks for the suggestion!

Re:Ask HN: What do you do with your Raspberry Pi? by marci on Tuesday June 25, 2019 @04:22AM (#20272119)
BUS 55 - DANS - 5MIN ?
Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Tuesday June 25, 2019 @06:28AM (#20272726)
AUTOBUS - DANS - 5 - MINUTES

I think that makes sense, yeah. I would rather not flash other digits (55) as that could be confusing for someone who sees that number go by (was that the bus number or the number of minutes?)

Thank you!

Re:Ask HN: What do you do with your Raspberry Pi? by StavrosK on Tuesday June 25, 2019 @11:34AM (#20275272)
You guys don't do minute notation (5')?
Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Tuesday June 25, 2019 @11:42AM (#20275346)
I don't think that it's as common to write or read

I'll be there in 5'

Also, since this is a sign seen from about 10-15 meters away, using an apostrophe might lead to confusion (it might not be clear to read).

The aesthetics of the big flashing words are also intentional. Way, way back in my brain there was definitely [0] playing while I was creating this. :-)

[0] * * * WARNING A lot of Flashing Lights! * * * https://www.yhchang.com/SAMSUNG_MEANS_TO_COME_V.html

Re:Ask HN: What do you do with your Raspberry Pi? by stoobs on Wednesday June 26, 2019 @09:40AM (#20284889)
5' is also a notation of 5 Feet..
Re:Ask HN: What do you do with your Raspberry Pi? by childintime on Thursday June 27, 2019 @10:04AM (#20294434)
Is it too nerdy to just write "BUS 55", "+5MIN" ?

You'll also have 50% more screens in the same amount of time.

Re:Ask HN: What do you do with your Raspberry Pi? by paines on Tuesday June 25, 2019 @05:54AM (#20272575)
> This is in Montréal Official language is french. So Bus 55 is coming in 5 mins!
Re:Ask HN: What do you do with your Raspberry Pi? by BrandoElFollito on Tuesday June 25, 2019 @02:58PM (#20277621)
Me too!

No, just kidding, I am in France but the idea is awesome. Simply fantastic.

Re:Ask HN: What do you do with your Raspberry Pi? by dotmanish on Monday June 24, 2019 @09:40PM (#20270428)
This is awesome work and thank you for doing this for public without asking.

P.S. does the transit authority offer an API or is this prone to breaking when they change their page layout?

[edit: I just read about the rumor on your webpage. Clarifies.]

Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Monday June 24, 2019 @09:44PM (#20270459)
Thank you!

As many other transit authorities, the STM [0] offers "GTFS" data (a standard feed format for transit info) [1].

Mucking around STM's public site, you'll also see the schedule information go by if you inspect the network requests. From what I've seen, their API endpoints are stable, reliable and fast. I've had to do ~2 updates in >1 year of service.

[0] http://stm.info/en [1] http://www.stm.info/en/about/developers

[ edit: that rumor is just a rumor :-) ]

Re:Ask HN: What do you do with your Raspberry Pi? by punnerud on Tuesday June 25, 2019 @01:17AM (#20271392)
If you use MITMProxy or Charles you can easily intercept the traffic on 99% of all iPhone/Android apps (bit harder if pinned-sertificate). These API’s are often stable because a lot of users don’t update their apps that often.
Re:Ask HN: What do you do with your Raspberry Pi? by throwbaccAndy on Tuesday June 25, 2019 @06:38AM (#20272781)
For newer android apps this is no longer true. By default, apps only trust system CA's. User added System CA's are not trusted by apps. I believe only the browser uses the user added CA's.
Re:Ask HN: What do you do with your Raspberry Pi? by punnerud on Tuesday June 25, 2019 @10:14AM (#20274374)
That is why these systems generate their own certificate that you add to your phone, so you still can see the traffic.

For MITMProxy you can visit http://mimt.it when the setup is running.

A bit more difficult with “pinned-setificate” where you have to:

1) Decompile the app (easy if you search for the online APK-download and APK-decompile tools)

2) Move the certificate out of the APK and use it for the traffic between MITMProxy/Charles and the server

3) Replace the certificate in the APK with one generated for MITMProxy/Charles, or just delete it if that works for the app (most likely not)

4) Re-compile the APK and install on your device

5) Run MITMProxy/Charles as before, just with some parameters to load the “pinned-certificate”

(There is also a lot of guides for this. Maybe not for pinned-certificate.)

Re:Ask HN: What do you do with your Raspberry Pi? by popotamonga on Tuesday June 25, 2019 @06:05PM (#20279519)
1) decompile 2) remove the line that does the pinning (Easy to find) 3) recompile and sign

5 minutes

Re:Ask HN: What do you do with your Raspberry Pi? by KirinDave on Tuesday June 25, 2019 @10:25AM (#20274493)
It can be crazier than that. App makers who work with important APIs often pin to specific certificates (not signers) so we have an one final absolute emergency measure to kill a version and force an upgrade when we have to.
Re:Ask HN: What do you do with your Raspberry Pi? by punnerud on Tuesday June 25, 2019 @10:29AM (#20274546)
That is what I refer to as pinned-certificate. Not often used except from some of the biggest companies like Facebook and Snapchat. See my answer on how to go around this.
Re:Ask HN: What do you do with your Raspberry Pi? by KirinDave on Tuesday June 25, 2019 @12:23PM (#20275803)
Your answer sure wouldn't work for my tiny startup's app's pinning and we followed a guide initially.
Re:Ask HN: What do you do with your Raspberry Pi? by ezconnect on Monday June 24, 2019 @10:04PM (#20270552)
In S. Korea most bus station have a display showing the current position of the bus and the estimated waiting time. Recently they are changing the display to show the bus stop remaining and removed the estimated time of arrival.

Lots of people use app so when the bus is about to arrive the bus station will suddenly get busy and full of people.

Re:Ask HN: What do you do with your Raspberry Pi? by superhuzza on Tuesday June 25, 2019 @09:53AM (#20274147)
I live nearby and often use this when catching the 55! Sort of surreal to start reading your post and immediately recognize it's something from just a block away!
Re:Ask HN: What do you do with your Raspberry Pi? by galphanet on Tuesday June 25, 2019 @10:01AM (#20274240)
Hey, I also take the 55 but I never saw the screen!
Re:Ask HN: What do you do with your Raspberry Pi? by ratsimihah on Tuesday June 25, 2019 @11:26AM (#20275173)
Stop staring at your phone (kidding)
Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Tuesday June 25, 2019 @10:22AM (#20274468)
There's construction right now at the street corner, so they moved the bus station, unfortunately. I hope that they'll be done soon!
Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Tuesday June 25, 2019 @09:56AM (#20274184)
This is so sweet to read! Thank you!!
Re:Ask HN: What do you do with your Raspberry Pi? by st380752143 on Monday June 24, 2019 @10:01PM (#20270536)
In China, they can get these bus message on a smartphone at mostly main city. The app would show the bus location and predict the time bus would reach according to the traffic status graphically.
Re:Ask HN: What do you do with your Raspberry Pi? by numbsafari on Tuesday June 25, 2019 @06:31AM (#20272740)
We get this in the US in most major cities as well. But sometimes you don’t want to deal with smartphones and apps with bad UI developed by Fortune 500 firms for regional transit authorities, you just wish there would be a simple sign next to the stop that gave you 2 pieces of information: “BUS X IN Y MINUTES”.
Re:Ask HN: What do you do with your Raspberry Pi? by iagovar on Tuesday June 25, 2019 @07:25AM (#20273067)
We have both in my city (Spain). The problem with displays is that sometimes they get too much light and you can't see that well. Also, the app has much more info than the display, and you don't need to be in the bus stop to know when the bus is going to be there.
Re:Ask HN: What do you do with your Raspberry Pi? by whalesalad on Monday June 24, 2019 @10:54PM (#20270785)
Awesome! This has reminded me of an old Heroku app that has been sitting idle for years: https://wmata-status.herokuapp.com (before the Silver line, which is why the UI is all wonked now)

I wanted to do something similar to try and reinvent the old/ugly/hard-to-parse televisions scattered around the DC metro.

Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Tuesday June 25, 2019 @12:53AM (#20271296)
Lovely UI, congrats!! You should definitely consider doing a 'gonzo' TV install somewhere in the city where you have access to power, wifi and shelter.
Re:Ask HN: What do you do with your Raspberry Pi? by whalesalad on Tuesday June 25, 2019 @12:19PM (#20275758)
That’s a killer idea. Raspberry pi to the rescue!
Re:Ask HN: What do you do with your Raspberry Pi? by purplex on Tuesday June 25, 2019 @12:26AM (#20271177)
I believe the UI is great and will work perfectly on big-screens installed at stations. Kudos for making the app and such a nice UI.
Re:Ask HN: What do you do with your Raspberry Pi? by vectorEQ on Tuesday June 25, 2019 @05:03AM (#20272305)
really cool project man, props! bit strange they don't do this ,but i suppose Canada is A LOT larger than my country so perhaps it's harder to roll out decent services in all places :D very nice stuff though! the most annoying thing in the world to me is waiting on something without a clear indication of when the wait will end so you are doing a big big service to these poor people :D
Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Tuesday June 25, 2019 @06:33AM (#20272753)
Thanks! Some bus stations in Montreal do have small digital signs announcing the next departures. I’m sure those devices cost a bit of money and need to be serviced, so it makes sense that not all stations get them. (All stations do have a paper schedule which is neat, but isn’t real time info..!)
Re:Ask HN: What do you do with your Raspberry Pi? by OJFord on Tuesday June 25, 2019 @06:02AM (#20272612)
blinks ouch, perhaps it's just my colour-blindness, but just fyi I can't read your site at all unless I highlight the text.

Awesome public service with the Pi bus times though, love it!

Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Tuesday June 25, 2019 @06:30AM (#20272735)
I sincerely apologize, I just relaunched my site and did not take that into consideration. I’ll definitely revisit this. Thank you!
Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Tuesday June 25, 2019 @11:54AM (#20275459)
I just changed the site to use a plain background color. Thanks again.
Re:Ask HN: What do you do with your Raspberry Pi? by m463 on Monday June 24, 2019 @09:59PM (#20270526)
That is a very kind thing to do.
Re:Ask HN: What do you do with your Raspberry Pi? by jperras on Tuesday June 25, 2019 @10:36AM (#20274612)
Ha! I live a few blocks from that corner. Always wondered who set that up and for what reason.

Nicely done. Hopefully the construction there will end soon, too.

Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Tuesday June 25, 2019 @10:42AM (#20274676)
Thank you! So happy to see the response from Montreal (/ Mile End) HNers :-)
Re:Ask HN: What do you do with your Raspberry Pi? by whytaka on Monday June 24, 2019 @11:08PM (#20270838)
Ah, so that is your work! I always found it amusing.
Re:Ask HN: What do you do with your Raspberry Pi? by boblebricoleur on Tuesday June 25, 2019 @03:26AM (#20271880)
You, sir, are a modern-time knight
Re:Ask HN: What do you do with your Raspberry Pi? by MrZongle2 on Tuesday June 25, 2019 @11:21AM (#20275128)
Great job! This is an excellent example of being able to contribute to one's community with a small but nonetheless substantive project.
Re:Ask HN: What do you do with your Raspberry Pi? by sAbakumoff on Wednesday June 26, 2019 @03:52AM (#20282745)
I am just wondering here - why does not the bus stop have the digital schedule set up? Is it normal for Canada?
Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Wednesday June 26, 2019 @10:18AM (#20285220)
Canada's a big country :-) As far as I understand, local transit authorities in every city have the autonomy to decide how they spend their budgets. A digital sign is useful, but is it worth having one at every single stop, considering the cost to buy them, the necessary infrastructure (electricity, internet access), the support costs to repair/replace them, etc.?

Also, paper schedules have been part of all stops here for a long time. Considering that the buses are pretty reliable, the paper schedule typically does the job. And you can always use the transit authority's website or one of the many mobile apps to see if there's an unexpected delay.

Re:Ask HN: What do you do with your Raspberry Pi? by sAbakumoff on Wednesday June 26, 2019 @02:03PM (#20287491)
>> but is it worth having one at every single stop, considering the cost to buy them, the necessary infrastructure (electricity, internet access), the support costs to repair/replace them, etc.?

Well, I just don't recall when I saw a public transport stop that does not have the digital sign here in the Netherlands. The paper version is always provided as well. But I suspect that it works like this in large cities only.

Re:Ask HN: What do you do with your Raspberry Pi? by lostlogin on Tuesday June 25, 2019 @02:24PM (#20277248)
Given how this has been received, interspersed HN headlines will have to be added.
Re:Ask HN: What do you do with your Raspberry Pi? by INTPenis on Tuesday June 25, 2019 @04:31AM (#20272165)
If the buses have GPS then Montreal should launch an app. They did that here where I live and now everyone can see where each bus is, live, on a map of the city. Best thing ever for us control freaks.
Re:Ask HN: What do you do with your Raspberry Pi? by gregsadetsky on Tuesday June 25, 2019 @06:37AM (#20272775)
The transit authority did have an app, which they’ve pulled at some point (as far as I understand, they felt like they couldn’t compete with the level of transit info apps out there — which isn’t untrue). There’s also the Transit app [0] that is made in Montreal, so I guess that they (the transit authority) were happy to shine a light on that (pretty great) app.

In any case, one of the neat things about the Pi sign is that it works for everyone (whether you have a phone or not), and is part of the urban landscape. You can use your phone for more important things, or just leave it alone a few minutes while you wait. :)

[0] https://transitapp.com/

Re:Ask HN: What do you do with your Raspberry Pi? by kriscius on Tuesday June 25, 2019 @06:04PM (#20279510)
In big cities in Poland it's a common thing. Good job tho
Re:Ask HN: What do you do with your Raspberry Pi? by paines on Tuesday June 25, 2019 @05:54AM (#20272579)
How cool are you! Great idea.
Re:Ask HN: What do you do with your Raspberry Pi? by illinx on Tuesday June 25, 2019 @03:19PM (#20277832)
I know this stop and have always appreciated your sign. Thank you +1!
Re:Ask HN: What do you do with your Raspberry Pi? by horacio_colbert on Tuesday June 25, 2019 @12:51PM (#20276149)
You, Sir, are a hero.