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

feat: discover other rpi's and setup them #11

Merged
merged 10 commits into from Feb 8, 2021
Merged

Conversation

mxmaxime
Copy link
Collaborator

@mxmaxime mxmaxime commented Jun 26, 2020

When I plug a new rpi (or other devices in the future), I want it to register to the system automatically. So for instance I want a new security camera, I plug it with the software and that's it, everything's done for me.

To see:

Listen for new connection

I was searching about "mqtt discovery", and I found this tutorial which talks about $SYS topics. Then I found this wiki with a list and description about these topics.

I need to declare what the device is doing, for instance "hey, I'm a dumb camera" or "hey, I'm a smart camera" and so one...

…generated device_id

⚠️ You have to run nmap as root to have access to mac addresses.

I can't set rpi hostname before boot: https://www.raspberrypi.org/forums/viewtopic.php?t=184248

#!/bin/bash

model=$(ssh pi@mx_rpi 'bash -s' < scripts/rpi/get_rpi_model.sh)
echo "Device model: $model" 

Different devices

Of course our system will be composed by connected devices from Philips, Ikea... We don't have any control over these devices so we will have other process to discover & register them in the system. This PR is about setting up our devices: raspberrypi and maybe esp.

Sources

@mxmaxime mxmaxime self-assigned this Jun 26, 2020
@mxmaxime mxmaxime added this to In progress in v0.1.0 via automation Jun 26, 2020
@mxmaxime mxmaxime added this to the First release milestone Jul 20, 2020
@mxmaxime mxmaxime added the enhancement Improve internal stuffs label Jul 21, 2020
@mxmaxime mxmaxime added this to In progress in Not planed yet via automation Aug 22, 2020
@mxmaxime mxmaxime removed this from In progress in v0.1.0 Aug 22, 2020
@mxmaxime mxmaxime removed this from the First release milestone Aug 22, 2020
@mxmaxime mxmaxime changed the title feat(network): discover other rpi's toconfig ssh and hostname with a … feat: discover other rpi's and setup them Sep 12, 2020
@mxmaxime mxmaxime merged commit 6cf2b12 into master Feb 8, 2021
Not planed yet automation moved this from In progress to Done Feb 8, 2021
@mxmaxime mxmaxime removed this from Done in Not planed yet Apr 13, 2021
@mxmaxime mxmaxime added this to In progress in v0.2.0 via automation Apr 13, 2021
@mxmaxime mxmaxime moved this from In progress to Done in v0.2.0 Apr 13, 2021
@mxmaxime mxmaxime deleted the network-discover-rpi branch April 18, 2021 17:36
@mxmaxime mxmaxime restored the network-discover-rpi branch November 21, 2021 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve internal stuffs
Projects
No open projects
v0.2.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant