Giter VIP home page Giter VIP logo

doorbot-setup's People

Contributors

amcewen avatar johnmckerrell avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doorbot-setup's Issues

Init script documentation/repo/deployed don't match

The readme.md lists "Copy the startup script into /etc/init" in the "To be done" section.

The remote-setup.rb script includes the line:
ssh.exec!("sudo cp /home/pi/logcards/init/logcards /etc/init.d/") do |channel, stream, data|
which looks like it's copying the script across.

However, none of the doorbots up and running have the logcards script in /etc/init.d

It looks like that's been deprecated, and some script called startup-rfid.sh - which doesn't seem to be checked in anywhere? - is in use instead?

remote-setup.rb shouldn't hide errors

All the ssh commands in remote-setup.rb only output the stdout stream. They should also output, if not also stop, anything sent to stderr.

At present there's no way to know if any of the commands had failed to execute.

Add a power switch to the custom PCB

We should add a reset button or power switch to the custom PCB to make it easier to power-cycle a non-responding doorbot (rather than having to pull the lead out of the PC power supply, as is the current option with doorbot1)

Rework remote-setup.rb to use ansible

Given that DoESLiverpool/somebody-should#426 shows up problems with the SD card size, it'd be good to move to Raspbian-lite rather than the full-fat Raspbian (given that that's a thing now :-)

If we're doing that, and working out what's needed to get X on doorbot1 (or working out if we don't need it as KWeb3 can possibly run direct to framebuffer) I'm considering switching over to ansible for the development (as I've already got bits of that lying around, e.g. https://github.com/mcqn/etherpad-in-a-box and https://github.com/museuminabox/brain/blob/master/INSTALL.md)

Raising this issue so I can create a branch referring to it, to make a start on it...

kdeweb install hangs requiring input

The task "Install the browser" hung for ages once it stopped and I tried running the script again apt complained that I'd have to run sudo dpkg --configure -a manually, once I did that it asked me if I wanted to install youtube-dl. I want to change the browser anyway but wanted to note this issue here as it has tripped me up a times.

RFID keyboard inserts unnecessary 0s into output

Trying out the RFID keyboard mentioned in #11 (comment) just now with @paulfurley's card, it ended up adding an extra 0 to the octet that was less than 0x10.

I'd have raised the issue on the keyboard's repo directly, but can't remember my login details for it.

PCB fouls the USB/Ethernet jacks on the Pi

I wasn't paying enough attention to the hardware on the Pi that the PCB mounts onto and so designed it such that it fouls the higher components - the Ethernet jack and USB sockets on a Pi 2/3, and also the composite video connector on the Pi 1.

We should redesign it so that it doesn't foul, although as a workaround we could use Pi Zeros, or stackable headers. (That's likely a reasonable first step, given we've got about 15 blank PCBs to use up first :-)

Stop using custom SSH ports

I think we can stop using custom SSH ports now, it was only there for the port forwarding and now we have VPN access and are not doing port forwarding there's no need.

Improve way to update config.yaml on the Doorbots

The canonical copy of the config.yaml lives in bitbucket. However, so far we tend to update it on doorbot1 and just copy it across.

The reload-all-config.sh script should perform a git pull rather than copying things across.

Add X

Need to install X and at least set the background to the DoES logo.

doesliverpool-pi

Make sure Ansible sets up the `open-door.sh` utility script

I just had to copy the open-door.sh scripts from doorbot1 to the other doorbots.

pi@doorbot1:~ $ scp open-door.sh pi@doorbot2:
open-door.sh                                                                          100%  133     0.1KB/s   00:00    
pi@doorbot1:~ $ scp open-door.sh pi@doorbot4:
open-door.sh                                                                          100%  133     0.1KB/s   00:00    
pi@doorbot1:~ $ scp open-door.sh pi@doorbot5:
open-door.sh                                                                          100%  133     0.1KB/s   00:00    

@johnmckerrell says Ansible should do this.

Ringtones aren't copied

Need to decide how to deal with ringtones. They either need to be stored in the bitbucket repository with the rest of the config, or once the doorbot has been setup a script needs to be run to copy them from doorbot1 to the other machines. Former probably better so that they're stored and backed up somewhere properly.

High power traces on the PCB aren't thick enough

The kitchen doorbot has had two PCBs fail now with the tracks overheating and burning out.

We should make the traces which carry significant current (particularly the 12V traces connected to the solenoid) thicker.

Other doorbot hostnames and ssh credentials should be installed

It's useful to be able to ssh from one doorbot to another with just "ssh doorbot2" for example.

The /etc/hosts should have the doorbots added to it during the setup process (or we should move to using doorbotX.local and mDNS).

Plus we should copy across SSH keys for the new doorbot so we don't have to enter the password each time.

Better mounting for Doorbot2 (kitchen/workshop)

If left to wobble around in its current cardboard box enclosure, Doorbot2 is prone to rebooting whenever there's a knock to the door, like when the door shuts :-)

We should find a proper mounting solution for the Pi and the little breakout board, so they can't move around.

Holes for the Molex connector are a bit small

Doing a dry-run fit of the Molex power connector to the PCBs that were fabbed for #6 shows they don't quite fit through the holes. We should make the holes in the PCB a tiny bit larger so next time we do an order (which might be a while, as we've got 24 of the current PCB to use up first :-)

As a workaround we should be fine to file down the pins on the Molex connector a touch.

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.