Life for the Pi 2

What are you doing with your (now) old model 2?

Attached: Raspberry-Pi-2-1-1621x1080.jpg (1621x1080, 182K)

I've set mine up as an info billboard (Pi 2 Model B)

It essentially has it's own web server and runs Firefox in fullscreen mode on boot. I added an RTC to it as well.

Pulls web info from Google calendar, Forecast.io, SNTP time

Locally calculates Sunrise/Sunset - Moonrise/Moonset & the moon phase

Many sensors connected to it; 4 1-wire temperature sensors: Inside/Outside/Garage/Crawlspace. One humidity sensor for indoors. - all displayed on-screen

GPIO inputs connected to:

Garage door sensor,

front and side Doorbells,

Furnace AC/Heat,

Well Water pump,

It displays the AC/Heat running, and Garage door open-on screen

All Input events are logged to files on the MicroSD, in seperate text files - web accessible.

When the doorbell inputs are activated, it plays an MP3 as a sound file to a locally attached amp, speakers are throughout the house. It can also audio play streams if I want via remote web control.

The web page does fade transitions on the top wallpaper as well as animates the falling snowflakes during winter, raindrops in spring, and leaves in fall. The messages about the heating/cooling/garage door do fade-in/out blink effects.

It runs pretty stable except the humidity sensor, sometimes it shows a 500 http error. It self reboots at 2:30AM to keep memory holes at bay.

I cludged all this together over a bunch of months (I only took MS Visual Basic 2 in HS, so my programming skills are lame) It's a mix of PHP, Iframes, css, javascript, shell scripts, python. (open standard stuff) All code I found online and trial/errored to make it work.

Attached: kiosk.jpg (1728x2880, 910K)

And yes,
as you can probably tell, Brony nerd posting

Flashing coreboot

Attached: 1551989199687.png (888x894, 520K)

That's awesome! Good work

It’s my local DNS server to filter out ads and shit with Pi-Hole.

Still an occasional pain in the ass because the blacklist (Wally’s list or some shit) I initially set up with it blocks practically everything, making more than half of the internet inaccessible.. If anybody has figured out how to make a block webpage with a convenient button to whitelist a site, please let me know.

It's still fast enough for plenty of task, maybe not PS1 emulation but for simple network services, and 2D emulation it should be fine.

>PS1 emulation
Have you tried overclocking? I just got done messing with my Zero to see how well it handles emulation and for the ps1 games I tried they played somewhat decent with the occasional hiccups here and there. I'm wondering since I think the model 2 has better hardware than the Zero.

Attached: cookie.jpg (4160x3120, 895K)

Nope, I've played with my Model B 3+ only

I like this idea, now I kind of want to do something similar but for a much different purpose.

Thank you.

In my playing, I've found that programming with shell script is the easiest to understand. Single threaded linear queue. It shows how simple my mind works.

My Pi is also running alot in the background I didn't mention. Samba so I can edit web the content and change the mp3s easily, Mopidy for playing streams, Domoticz (haven't used it much though).

For example my Pi also runs irsend to power on/off my amp to play the doorbells.
In reality, it checks to see if its playing anything when the doorbell is pressed,
If you've been in a bar with a touchtunes jukebox, it fade transitions the audio like they do from tv to a song and back again. If nothing is playing, it assumes the amp is off, then powers it on plays the mp3 then powers it off again. My next step is to put GPIO input to the amp so the Pi knows when its really on. As of now, it works on assumptions

For inspiration, here's the code. It's linear and easy to follow. The commented lines are for if I simply want to leave the amp on all the time and switch the input back to my music PC afterward.

Attached: doorbell.png (1360x584, 138K)

I originally developed (grandiose word for it) this for digital signage for work. I worked for a land devolper/leasing company for a bit, and had fun making this with TVs and the inexpensive Pi. They put them in place in a building to replace the business directory placcards. Back then it was just a png wallpaper with a date/clock app over the bottom.

I wanted more dynamic content at home, sensor data, and fluid transitions. So it evolved.

Heh, when I hear 'a much different purpose', I think of the saw movie, or maybe a porn slideshow....

One of those is hawt, the other is nout. As Jack Palance would say 'choose wisely' :)

Learning all about riscos, it's truly an INTERESTING operating system. You can program the GPIO in Lua and do a lot of fun shit. The system is so flat and accessible, I wish other operating systems were this easy.

Mine does file service and torrents. The 100Mbit ethernet is somewhat limiting, so I'll eventually replace it with an Odroid or even a bigger machine.

Attached: 1.png (1384x138, 20K)

Do you download the files to an attached usb hdd? If so, what filesystem do you use? I'd think exFat?

:^)
I run a "legacy portal" on my website that currently is just a news scraper that takes content from RSS feeds and turns them into basic HTML pages that you can view on pretty much anything with a browser, I've always wanted to extend that with some kind of personalizeable dashboard like what you built for yourself.

Hard drive is an ancient 0.5T WD Green, btrfs and swap partition. I don't know how well exFat behaves on linux.

Retired my old Pi and made it a Pi Hole now. I use the 3b+ as my workbench / shitposting lair computer.

I have a 2b+ set up as a portable SIP server for demonstrations.

Do you use computer clients to connect to it or cisco phones?

honestly, a Retropie with some DOSBox goodness for the MS-DOS/VGA/486/386/AdLib sound era, mostly (i have actual computers for later on. I also have a Pi1 runnign DOSBox configured as a Tandy 1000 computer, like i had as a teenager.

Blocking ads at DNS.

I have a couple physical phones, a FXS adapter and a laptop with a computer client. No Cisco because fuck their XML configuration bullshit.

*a FXS adapter with an analog phone

Mine's just a pi-hole.

Can your DOSBox actually emulate a MPU401? And my big hope, an AWE32/64 wavetable? I ask because DUKE3D with AWE32 was my HS cherished memory. I just can't seem to emulate dat wavetable successfully on a Virtualbox

Pretty nice, but do you feel you're getting actual value from that?