Pi Club

39 watchers
Sep 2020
9:50pm, 6 Sep 2020
275 posts
  •  
  • 0
ZenTaoPlurp
All real programmers look away now: Run The Sum worker-outer.

# RunTheSum.py
# Purpose: Days of the month summation in kms for Fetch game

MonthDays=32
milesConv=.62137
cumulativeKm=0
cumulativeMiles=0

for days in range(1,MonthDays):

units=days % 10

tens=int(days/10)

km=units+tens

miles=km*milesConv

cumulativeKm=cumulativeKm+km

cumulativeMiles=cumulativeKm*milesConv

print ("day "+str(days)+": "+str(km)+" km, "+str(round(miles,2))+" miles"+". Cumulative "+str(cumulativeKm)+"km, "+str(round(cumulativeMiles,2))+" miles")
Sep 2020
9:50pm, 6 Sep 2020
276 posts
  •  
  • 0
ZenTaoPlurp
And all of the indentation disappeared on submitting. Darn.
Sep 2020
10:13pm, 6 Sep 2020
277 posts
  •  
  • 0
ZenTaoPlurp
I find 'Barrier' really useful for running a Pi on its own screen alongside a desktop or laptop and using the keyboard and mouse of the desktop without additional keyboards cluttering the desk (and typing on one keyboard when I meant to type on another, etc.) I prefer it to VNC or SSHing-in for some projects; particularly for onboard graphic use. It also allows cut and pasting from PC/Mac to Pi and vice-versa.

raspberrypi.org
Sep 2020
10:55pm, 7 Sep 2020
3,901 posts
  •  
  • 0
FergusG
I received a 433MHz RF receiver module in the post today, and connected it to a ludicrously cheap Wemos Mini D1 microcontroller. The Wemos runs Tasmota and is configured to publish an MQTT message whenever it detects a particular RF signal. The MQTT message (handled by the open source mosquito MQTT broker running on a Pi Zero) is caught by a bash script running on the same Pi Zero.

I already use Kodi (OSMC on Raspberry Pi) in the kitchen, livingroom and backroom to access Live TV, Recorded TV, Radio, YouTube and my Music/Video library).

End Result - When my cheap RF wireless doorbell is pressed:

- The doorbell base unit chimes, just as it always did (but I rarely hear it, unless I’m in the same room and not playing anything loud).

- I now also get a ‘Telegram’ alert that causes my iPhone, iPad and Garmin watch to alert me that the doorbell rang.

- If Kodi is active in any room, it’ll pause playback and display a notification on the screen.

Only cost a few quid, a few hours of screen time!







RF Module: amazon.co.uk

Wemos: uk.banggood.com
Sep 2020
9:45am, 8 Sep 2020
13,178 posts
  •  
  • 0
Cerrertonia
Nice work.

I wasn't familiar with the Wemos Mini D1 device. It has a pretty powerful Tensilica CPU, which has shipped in quantities of billions (certainly more than Intel or AMD x86 devices) and yet is almost unheard of. I spent my working career as a chip designer and sometimes it still shocks me how much processing power you can have for pennies these days. I'm reminded of Marvin the paranoid android - that thing could be beating you at Chess, running a flight simulator and hosting a web server and still be listening out for an occasional RF signal.
Nov 2020
2:50pm, 6 Nov 2020
6,572 posts
  •  
  • 0
bigleggy
Finally bi the bullet and bought a Pi 4 a couple of weeks ago.

Set up pihole (Ad blocker) and added a backup disk so I can view all the photos from any device in the house.
Nov 2020
3:00pm, 6 Nov 2020
312 posts
  •  
  • 0
ZenTaoPlurp
Nice work Fergus, that's put another idea in my head. I've been slow on the Pi of late but there are more plans than time. I'm currently irrationally happy at the idea of the Pi 400 - even though there's a Pi 4 already on the desk beside me. Somehow, the fact that they've finally released their own integrated keyboard/computer in a form factor so evocative of the Spectrum, Oric, C64, and others, just brings a wave of nostalgia. And it's got that nice lap-warning heatsink like the Spectrum - for the coming winter - and is already clocked at 1.8 Ghz. Jeff Geerling's taken it to 2.2 GHz but I haven't seen the numbers yet.
Nov 2020
3:04pm, 6 Nov 2020
3,982 posts
  •  
  • 0
FergusG
Good work. Funny to think how that would’ve required an old rescued PC in the past, and would’ve taken up space and made a lot of fan noise!
Nov 2020
3:04pm, 6 Nov 2020
313 posts
  •  
  • 0
ZenTaoPlurp
^warning=warming^ !

I hope it's not a lap-warner - that sounds like another project for someone else. I think I've just had a Prague moment.
rhb
Nov 2020
7:18pm, 28 Nov 2020
1,512 posts
  •  
  • 0
rhb
I bought a Pi B 5yrs ago but never got to grips with it. Also got MagPi with the first PiZero attached, unused. Saw the 400 and that restarted my interest, in a week I've got the 400 running as a desktop, the B running PiHole, and two Zero W's, one running a justboom sound output, the other and Autumn Watch cam using Zerocam Noir and Motioneyeos, although no IR source so a bit of a usb lamp hack to get it working.

The latter was today's project I'm testing in the garden with an Anker Powercore Mini and we've already seen a fox on screen which was ace. I'm hoping that clip is saved ok on the sd card.

I think I could get into making more useful things for around the house.

Pics of zero autumn watch cam:



About This Thread

Maintained by fetcheveryone
I thought I'd start a thread for Raspberry Pi fans. This is it :-)

Related Threads

  • coding
  • hobbies
  • support









Back To Top
X

Free training & racing tools for runners, cyclists, swimmers & walkers.

Fetcheveryone lets you analyse your training, find races, plot routes, chat in our forum, get advice, play games - and more! Nothing is behind a paywall, and it'll stay that way thanks to our awesome community!
Get Started
Click here to join 112,236 Fetchies!
Already a Fetchie? Sign in here