mazi-project / portal

This is the portal of the MAZI toolkit
http://www.mazizone.eu/toolkit/
MIT License
18 stars 6 forks source link

Find Pi from the dashboard #147

Open morgulbrut opened 5 years ago

morgulbrut commented 5 years ago

We had this problem in a workshop settings that there were lots of RasPis around. Everyone had it's mazizone SSID, so it was hard to verify if everybody was connected to their RasPi.

The resin.io (i think) has this button to identify the device by blinking an LED on it.

morgulbrut commented 5 years ago

Found those two commands, to switch off the green LED and let it blink afterwards.

sudo sh -c 'echo none > /sys/class/leds/led0/trigger'
sudo sh -c 'echo heartbeat > /sys/class/leds/led0/trigger'
panosnethood commented 5 years ago

Thanks @morgulbrut ! This is very useful and it would be indeed a cool feature in the admin panel.

It would be also interesting to be able to attach more "visible" light sources to the Raspberry Pi and make them blink based on the overall activity in the MAZI Zone.

Do you have any suggestions for easily managed USB or other lights for the Raspberry Pi?

morgulbrut commented 5 years ago

@panosnethood I would say having a blinking LED connected to the GPIO would be the easiest way. Downside, it needs to be in a trasparent case, or some hole needs to be drilled. Thought about a small hat, simple enough to be done using stripboards, so it could be done wherever LEDs, stripboards and solder is available, with maybe 2-3 LEDs. And some drilling scheme for at least the official case.

panosnethood commented 5 years ago

Are there not "programmable" USB light sources perhaps? For non-technical users playing with the pins of the Raspberry Pi might be difficult.

haniavis commented 5 years ago

For now the best solution would be to change the wifi name at the initial setup page, at the very first time you login to each mazizone. So each mazizone will have its own wifi name.

I agree with Panos that it is better to provide and support a solution using the integrated in the raspberry hardware and not external attachable LEDs for example which might confuse our non-technical users.

We will investigate the integration of these two commands in the dashboard.

Thanks for your feedback.

panosnethood commented 5 years ago

Thanks Harris! The situation that we had to deal with in our workshop is that the organizer prepared a customized version of the MAZI toolkit image with already uploaded content and other customization, and so it was not possible to rely on the initial set-up phase.

morgulbrut commented 5 years ago

@panosnethood I just know there is blink(1) https://blink1.thingm.com/. But they are a bit costly, i think.

deckspace commented 5 years ago

During the recent workshops in Edinburgh where we were activating 20 MAZI per session. The solution we found was to withhold the sd cards until each group or individual was ready with password, network name and other information so they could get through the process quickly when it was their turn. It sort of worked out OK except some had trouble connecting and triggering the setup process. On other occasions we prepared MAZI's by setting different network names before starting.. In this case it is still possible to revisit the setup pages later if needed. http://local.mazizone.eu:4567/setup - the current password would be needed!

deckspace commented 5 years ago

hi @morgulbrut, thanks for the LED blink tip.. how do we return the LED to the 'normal' mode?