Giter VIP home page Giter VIP logo

whos_home's Introduction

Whos_Home

Quick Raspberry Pi project for lighting up status lights based on which devices are visible locally

This was carried out on a Raspberry Pi Zero W - WiFi functionality will obviously be required, but it shouldn't matter whether that's inbuilt, or using an adaptor.

Note before you start that different phones react differently to this - for whatever reason, my Android always responds, but my partner's Android only responds when the screen is unlocked. This seems to be to do with the Android version, but you can get around it to some extent with a longer cooldown timer - that way the screen only has to be unlocked occasionally!

Most of the things you'd want to edit in WiFiPing.py are set as variables near the beginning - the IP addresses of the devices, the time interval, cooldown period, operating hours, etc. Customise as suits you, and drop onto your Pi.

Open /etc/rc.local on your Pi, and add the following on the line before exit 0

python3 /home/pi/WiFiPing.py &

(Adjust the path depending on where you put the file!)

This will run your script when the Pi boots. The '&' is important here - it means the script will open the script in the background, and not wait for it to finish before carrying on. That's good, as this script won't finish!

If your Pi is set up to support a desktop, you might find it doesn't boot without a monitor plugged in, which is useful. You can get around this by enabling hdmi_force_hotplug=1 in /boot/config.txt

Lights

Super basic, the script will toggle GPIO2, 3 and 4. Check your pinout diagram and plug in accordingly.

whos_home's People

Contributors

lxgrf avatar

Stargazers

Bondt avatar

Watchers

 avatar

Forkers

tobidope

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.