Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PiControl documentation #8

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add PiControl documentation #8

wants to merge 4 commits into from

Conversation

MYKatz
Copy link

@MYKatz MYKatz commented Jun 24, 2020

"Fix" for #5. This is less complete than I would like it to be, but I've forgotten some details and will need to take a little while to verify. Feel free to leave the issue open if you don't think this is comprehensive enough.

@MYKatz MYKatz requested a review from epicfaace June 24, 2020 05:58
Copy link
Contributor

@epicfaace epicfaace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I think @theopolisme will be better placed to review some of the hardware documentation because I don't really know how to verify how to set those up 😄

docs/picontrol.md Outdated Show resolved Hide resolved
docs/picontrol.md Outdated Show resolved Hide resolved
docs/picontrol.md Outdated Show resolved Hide resolved
- Raspberry Pi Model 3b+ (but any Raspberry Pi with Wifi capability should work)

- [USB NFC readers](https://www.amazon.com/gp/product/B07Q5KXM6J/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1). These emulate a keyboard -- when an NFC badge is scanned onto them, they 'type' its ID into whatever they're connected to.
- **PLEASE** make note of the model: if that link isn't dead, you'll see it links to a '14H' reader. '14H' (or '14D') is required to get the specificity necessary to distinguish between the NFC badge IDs: these readers read the most significant bit first, and since the card IDs are assigned sequentially this means that most of them have the same first 8-10 hex digits. You are in for much pain if you do not purchase the correct readers.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs/picontrol.md Outdated Show resolved Hide resolved
docs/picontrol.md Outdated Show resolved Hide resolved
docs/picontrol.md Outdated Show resolved Hide resolved
- Run `go get -u github.com/gin-gonic/gin github.com/joho/godotenv github.com/lib/pq`
- Run `npm run dev-start`

Pushing and pulling to docker: https://ropenscilabs.github.io/r-docker-tutorial/04-Dockerhub.html
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to push and pull to docker, though, right? It's just enough to build the docker image locally (i.e. the steps mentioned in the "Installation" section next)?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had previously used docker cloud in deployments, but yeah this is no longer necessary and may lead to confusion. Good catch, removing


#### Development Set-up

- Set "homepage" in package.json to the url you want.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What URL should this be set to? Why does it need to be set?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was horrible in not specifying. This sets the root url of the frontend to be whatever "homepage" is, but I don't think that's necessary to include in the documentation, as it should be "/admin" in order for everything to work anyway. Will remove

We used a standard install of Raspbian. You will need to configure the Pi to connect to Wifi -- there are many guides online to do this, such as [this one](https://raspberrypihq.com/how-to-connect-your-raspberry-pi-to-wifi/).

An installation of Python 3.7 should include all of the necessary dependencies except for [Requests](https://requests.readthedocs.io/en/master/). A 'pip3 install requests' should work, provided you're connected to the internet.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a section here about changing the default password for the raspberry pi's?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants