I have Raspberry Pi and I mainly use it for VPN and piHole. I’m curious if you have one, have you found it useful? What do you do with your Raspberry Pi?
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
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.]
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 :-) ]
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.
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.
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.
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”.
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.
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.
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.
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.
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!
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.
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/
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
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..!)
I have it set up to run a project where a subreddit has control over the watering of a live plant in my apartment.
The pi runs a reddit bot that reads the votes, and can switch on a pump to water. It also collects data about sunlight, moisture, temp and humidity to help inform the decision about watering. Despite many people's preconceptions about the goodness of the internet, I must admit that they do a wonderful job caring for my plant! website: http://www.takecareofmyplant.com subreddit w/ voting: http://old.reddit.com/r/takecareofmyplant
Trying to impress a girl with my plant-keeping abilities ;) --We had a collaborative message thread reminding everyone to water our plants based upon a set schedule which I was going hook up to a pump to automate, and at the time Twitch Plays Pokemon was a big thing, so I just kind of combined the two ideas.
If you have interest in doing something similar, come check out the subreddit and feel free to DM me on reddit or twitter. Always happy to talk about plants and automation
> Despite many people's preconceptions about the goodness of the internet, I must admit that they do a wonderful job caring for my plant!
Maybe I should create a subreddit where people can control a bot that has access to my bank accounts so they can manage my finances, invest some, etc. ;-)
Didn't someone do this with Twitch Plays Stocks? Essentially gave them some capital and let the chat decide what trades to make. They nuked the portfolio within 24 hours.
On average (and very much more than just average) there is a negative correlation between trading frequency and portfolio performance (you are not an HFT firm, don't compare yourself to one).
Set up a system like that wrong, and it doesn't matter how smart the crowd is, you're going to lose all your money. It would be interesting to play with the parameters of the game and see how results changed. (how often trades are made, max portfolio % per trade, voting mechanics, etc.)
- Outdoor irrigation control via OpenSprinkler Pi: https://opensprinkler.com/product/opensprinkler-pi/ - Z-Wave home automation via ZWay: https://z-wave.me/products/razberry/ - 2 Custom HAVC thermostats using: https://github.com/jeffmcfadden/PiThermostat - An NTP server with GPS attached for a time source. - 2 for weather monitoring (one directly attached to sensors, one that aggregates the data from a few sources and provides reporting) - A sort of centralized "workhorse" Pi that runs a lot of random cron jobs, etc. - An Alexa gateway for home automation - An NES emulator - An infrared-remote source for turning on/off surround receiver, TV, etc. - Monitoring of HVAC temperatures/performance - An intranet server Assuming I didn't forget anything.
I started a company that constructed booths which used 70 accurately sync'd Pis with custom PiCams (fitted with lenses) to take pictures of human subjects, for turning them into avatars like this:
https://sketchfab.com/3d-models/pete-swagger-walk-a55d807de1... At the beginning of the project, I'd barely powered up the Pis I had collecting dust in my drawer. By the end, I was a legitimate domain expert in several niches within niches of Pi dark arts. For example, since Pis do not have hardware clocks, you have to rely on NTP. However, you need to take pains to make sure that each Pi is getting the same amount of voltage or else they will run at different speeds. If you want to power 70 Pis in a constrained space, you need to devise a customized power distribution system with adequate heat venting. Due to the thin effect, voltage drops over distance, so the distance a Pi was from the power would impact the voltage and therefore the speed. The major breakthrough came when I realized that I could start with a high end power supply outputting 14 volts and terminate each parallel line with a device known as a UBEC. They are used primarily by drone enthusiasts to make efficient use of battery packs. A UBEC is designed to drop down a supply voltage to 5v without bleeding off the excess voltage as heat. Since this could also describe a fuse, we felt comfortable bypassing the Pi's MicroUSB power supply and attaching the UBEC's pins directly to the top pins on the Pi's GPIO breakout. That's just a tiny example of the hijinx. The Pi is an incredible tool if you're patient and clever. What a rollercoaster.
Comments (1,069) 486 threads
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
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.]
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 :-) ]
Continue this thread — 5 replies
Lots of people use app so when the bus is about to arrive the bus station will suddenly get busy and full of people.
I wanted to do something similar to try and reinvent the old/ugly/hard-to-parse televisions scattered around the DC metro.
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!
Agreed on timing, it could be better. I'll consider skipping some of the words + make them appear slower. Thanks for the suggestion!
Continue this thread — 6 replies
No, just kidding, I am in France but the idea is awesome. Simply fantastic.
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/
Continue this thread — 9 more replies
The pi runs a reddit bot that reads the votes, and can switch on a pump to water. It also collects data about sunlight, moisture, temp and humidity to help inform the decision about watering. Despite many people's preconceptions about the goodness of the internet, I must admit that they do a wonderful job caring for my plant!
website: http://www.takecareofmyplant.com
subreddit w/ voting: http://old.reddit.com/r/takecareofmyplant
Out of curiosity, how did you come up with this idea?
If you have interest in doing something similar, come check out the subreddit and feel free to DM me on reddit or twitter. Always happy to talk about plants and automation
Continue this thread — 5 replies
my pihole also blackholes them
Continue this thread — 4 replies
Maybe I should create a subreddit where people can control a bot that has access to my bank accounts so they can manage my finances, invest some, etc. ;-)
Continue this thread — 3 replies
Set up a system like that wrong, and it doesn't matter how smart the crowd is, you're going to lose all your money. It would be interesting to play with the parameters of the game and see how results changed. (how often trades are made, max portfolio % per trade, voting mechanics, etc.)
Continue this thread — 3 replies
Continue this thread — 3 more replies
Continue this thread — 3 more replies
- Outdoor irrigation control via OpenSprinkler Pi: https://opensprinkler.com/product/opensprinkler-pi/
- Z-Wave home automation via ZWay: https://z-wave.me/products/razberry/
- 2 Custom HAVC thermostats using: https://github.com/jeffmcfadden/PiThermostat
- An NTP server with GPS attached for a time source.
- 2 for weather monitoring (one directly attached to sensors, one that aggregates the data from a few sources and provides reporting)
- A sort of centralized "workhorse" Pi that runs a lot of random cron jobs, etc.
- An Alexa gateway for home automation
- An NES emulator
- An infrared-remote source for turning on/off surround receiver, TV, etc.
- Monitoring of HVAC temperatures/performance
- An intranet server
Assuming I didn't forget anything.
Continue this thread — 32 replies
https://sketchfab.com/3d-models/pete-swagger-walk-a55d807de1...
At the beginning of the project, I'd barely powered up the Pis I had collecting dust in my drawer. By the end, I was a legitimate domain expert in several niches within niches of Pi dark arts. For example, since Pis do not have hardware clocks, you have to rely on NTP. However, you need to take pains to make sure that each Pi is getting the same amount of voltage or else they will run at different speeds. If you want to power 70 Pis in a constrained space, you need to devise a customized power distribution system with adequate heat venting.
Due to the thin effect, voltage drops over distance, so the distance a Pi was from the power would impact the voltage and therefore the speed. The major breakthrough came when I realized that I could start with a high end power supply outputting 14 volts and terminate each parallel line with a device known as a UBEC. They are used primarily by drone enthusiasts to make efficient use of battery packs.
A UBEC is designed to drop down a supply voltage to 5v without bleeding off the excess voltage as heat. Since this could also describe a fuse, we felt comfortable bypassing the Pi's MicroUSB power supply and attaching the UBEC's pins directly to the top pins on the Pi's GPIO breakout.
That's just a tiny example of the hijinx. The Pi is an incredible tool if you're patient and clever.
What a rollercoaster.
Continue this thread — 23 replies
All comments shown.
Couldn't load more comments. Check your connection and try again.