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

HackyHour[4] on 2016-02-24 #14

Closed
iimog opened this Issue Jan 28, 2016 · 39 comments

Comments

Projects
None yet
9 participants
@iimog
Member

iimog commented Jan 28, 2016

As discussed in the previous HackyHour we will have a hands on session with a Raspberry Pi and multiple USB drives.
We will play around with differen RAID configurations, set-up a OwnCloud server and much more.
If someone wants to add something or has other ideas or problems just join the discussion.

@GalacticAC

This comment has been minimized.

Contributor

GalacticAC commented Feb 3, 2016

I would suggest that we set up the micro SD cards with the proper OS prior to the meeting. It took me around an hour to download and install a fresh copy when I tried this weekend. If you send me a link to the proper OS for a good Cloud Server I can set it up myself on one of the new class 10 micro SD cards I bought for just that purpose!

@iimog

This comment has been minimized.

Member

iimog commented Feb 4, 2016

Thanks for making preparations. I found many guides on setting up owncloud on the Pi (eg this one http://pimylifeup.com/raspberry-pi-owncloud/) And they all use the latest Raspbian distribution. So an SD card with Raspbian pre-installed would be great.

@EzioAuditoredaFirenze

This comment has been minimized.

EzioAuditoredaFirenze commented Feb 9, 2016

I have an old 320 GB HDD lying around from my old laptop. I'll put it in a USB 3.0 enclosure and bring it. If it works with the Raspberry Pi, we could use it to test out the OwnCloud server.

I would also bring a HDMI cable, a 4 port USB 2.0 hub and a powered 4 port USB 3.0 hub with me. 😃

@GalacticAC

This comment has been minimized.

Contributor

GalacticAC commented Feb 9, 2016

I can bring multiple 2-4gb sticks I got over the years. We can test the RAID stuff on them I guess!

Any one else has a rasberry?

@nterhoeven

This comment has been minimized.

nterhoeven commented Feb 9, 2016

Yes, I have a raspberryPi 2

@EzioAuditoredaFirenze

This comment has been minimized.

EzioAuditoredaFirenze commented Feb 17, 2016

raspberry pi 2

I've got a Raspberry Pi 2 as well, and it's running Raspbian.

@GalacticAC

This comment has been minimized.

Contributor

GalacticAC commented Feb 18, 2016

I also figured out, that you can power it with a regular power bank for several days (worth less then 7 euros) if need be....this way sky net is self-contained! :-D

20160218_134030

@EzioAuditoredaFirenze

This comment has been minimized.

EzioAuditoredaFirenze commented Feb 22, 2016

One thing that I'd like to learn is setting up PGP encryption support for emails 🔐 . I've managed to set up PGP Public/Private Keys, but I am having a bit of trouble figuring out how to send encrypted mails and decrypt them.

@nterhoeven

This comment has been minimized.

nterhoeven commented Feb 22, 2016

Good idea :-) We can do that. I don't know, if we will have enough time this week. Otherwise I would suggest to put it on the list for next month :-)

I opened a new issue ( #15 ) for this

@EzioAuditoredaFirenze

This comment has been minimized.

EzioAuditoredaFirenze commented Feb 22, 2016

👍

@EzioAuditoredaFirenze

This comment has been minimized.

EzioAuditoredaFirenze commented Feb 23, 2016

@sodalitas @diyaazak @pattypatprat @aforero11 @CodingCthulhu @manjusasi14 @WhimiscalHatter @Goodfella-no4 @iimog @malvikasharan @nterhoeven @greatfireball @GalacticAC

We would have our next HackyHour tomorrow at the CCTB. We will probably have a hands on session with the Raspberry Pi, learn some Python and Unix, play around with different RAID configurations, and setup a OwnCloud server. Hope you guys can attend. 😄

@GalacticAC

This comment has been minimized.

Contributor

GalacticAC commented Feb 24, 2016

Perfect. Just a question, when will it start?!

@greatfireball

This comment has been minimized.

Contributor

greatfireball commented Feb 24, 2016

Let me cite the website at http://hackyhour.github.io/Wuerzburg/

Every last Wednesday of the month at 6 pm at the CCTB Würzburg.

See you there!

Frank

@goodfella44

This comment has been minimized.

goodfella44 commented Feb 24, 2016

Super. I will be there. I am bringing my own Pi as well 8-)

On 24/02/2016 09:50, Frank Förster wrote:

Let me cite the website at http://hackyhour.github.io/Wuerzburg/

Every last Wednesday of the month at 6 pm at the CCTB Würzburg.

See you there!

Frank


Reply to this email directly or view it on GitHub
#14 (comment).

@sodalitas

This comment has been minimized.

Contributor

sodalitas commented Feb 24, 2016

Unfortunately, I can't come today, but I wish you all a fruitful meeting!

On Wed, Feb 24, 2016 at 9:58 AM, Goodfella-no4 notifications@github.com
wrote:

Super. I will be there. I am bringing my own Pi as well 8-)

On 24/02/2016 09:50, Frank Förster wrote:

Let me cite the website at http://hackyhour.github.io/Wuerzburg/

Every last Wednesday of the month at 6 pm at the CCTB Würzburg.

See you there!

Frank


Reply to this email directly or view it on GitHub
<#14 (comment)
.


Reply to this email directly or view it on GitHub
#14 (comment).

@pattypatprat

This comment has been minimized.

pattypatprat commented Feb 24, 2016

Cannot make it to the meeting today :( been having a series of exhausting
experiments :( have a good meeting :)

On Wed, Feb 24, 2016 at 12:50 PM, Chee Keong Kwok notifications@github.com
wrote:

Unfortunately, I can't come today, but I wish you all a fruitful meeting!

On Wed, Feb 24, 2016 at 9:58 AM, Goodfella-no4 notifications@github.com
wrote:

Super. I will be there. I am bringing my own Pi as well 8-)

On 24/02/2016 09:50, Frank Förster wrote:

Let me cite the website at http://hackyhour.github.io/Wuerzburg/

Every last Wednesday of the month at 6 pm at the CCTB Würzburg.

See you there!

Frank


Reply to this email directly or view it on GitHub
<
#14 (comment)
.


Reply to this email directly or view it on GitHub
<#14 (comment)
.


Reply to this email directly or view it on GitHub
#14 (comment).

@goodfella44

This comment has been minimized.

goodfella44 commented Feb 24, 2016

Hey guys, I am bringing an ethernet cable, a 4 port USB 2.0 hub (non powered), 2 USB sticks, 2 microSD cards with Raspbian pre-installed and a RPi 2. I also have a charger with a micro USB cable and a power bank that is almost full.

Anyone has a USB webcam? I want to learn how to make a livestream video through the RPi.

@malvikasharan

This comment has been minimized.

Contributor

malvikasharan commented Feb 24, 2016

can someone tell me the best way to get to CCTB (not coming by car)? Which
bus stop is the closest?

On Wed, Feb 24, 2016 at 4:21 PM, Goodfella-no4 notifications@github.com
wrote:

Hey guys, I am bringing an ethernet cable, a 4 port USB 2.0 hub (non
powered), 2 USB sticks, 2 microSD cards with Raspbian pre-installed and a
RPi 2. I also have a charger with a micro USB cable and a power bank that
is almost full.

Anyone has a USB webcam? I want to learn how to make a livestream video
through the RPi.


Reply to this email directly or view it on GitHub
#14 (comment).

[image: --]
Malvika Sharan
[image: http://]about.me/malvikasharan
http://about.me/malvikasharan?promo=email_sig

@goodfella44

This comment has been minimized.

goodfella44 commented Feb 24, 2016

Am Hubland if you are taking Bus 14 or 10. Philosophishes Institut if you are taking 114 or 214.

@nterhoeven

This comment has been minimized.

nterhoeven commented Feb 24, 2016

if you're taking the line 10, the closest is "emil-fischer-strasse"

@goodfella44

This comment has been minimized.

goodfella44 commented Feb 26, 2016

Hello everyone! How did it go with the USB camera in the end? I am sorry I had to leave early.

@greatfireball

This comment has been minimized.

Contributor

greatfireball commented Feb 26, 2016

Finally we had images from the camera, but the colors were strange... Might be an issue with the camera drivers. I missed your explanation why you want to use a camera, but if you actually need a camera, I would suggest to buy the Raspberry camera. This is supported by soft- and hardware and should work out of scratch with Raspberian.

@goodfella44

This comment has been minimized.

goodfella44 commented Feb 26, 2016

Thanks for the update. I wanted to monitor the print process of the 3D
printer in my lab without being physically there in the room. The raspberry
pi camera seems like a nice suggestion as I actually checked it and it's
very light, so I can glue it to the housing of the machine.

I do have a couple of other Logitech cameras so I will check with these
just for the fun of it before I get anything new.

The issue for me will be to encrypt and password protect the stream. Any
ideas?
On Feb 26, 2016 1:48 PM, "Frank Förster" notifications@github.com wrote:

Finally we had images from the camera, but the colors were strange...
Might be an issue with the camera drivers. I missed your explanation why
you want to use a camera, but if you actually need a camera, I would
suggest to buy the Raspberry camera. This is supported by soft- and
hardware and should work out of scratch with Raspberian.


Reply to this email directly or view it on GitHub
#14 (comment).

@greatfireball

This comment has been minimized.

Contributor

greatfireball commented Feb 26, 2016

I am not sure about the performance of a raspberry + video processing + encryption... Think we have to test the performance... It might be an easy solution to enable local host streaming only, connect to the RasPi via SSH (encryption+user credentials) and use that tunnel to watch the camera stream... But as I mentioned, I have no idea about possible performance issues. The SSH setup would also avoid the setup of a webserver on the RasPi.

@goodfella44

This comment has been minimized.

goodfella44 commented Feb 26, 2016

That's a fantastic idea. Thanks 😆
On Feb 26, 2016 2:07 PM, "Frank Förster" notifications@github.com wrote:

I am not sure about the performance of a raspberry + video processing +
encryption... Think we have to test the performance... It might be an easy
solution to enable local host streaming only, connect to the RasPi via SSH
(encryption+user credentials) and use that tunnel to watch the camera
stream... But as I mentioned, I have no idea about possible performance
issues. The SSH setup would also avoid the setup of a webserver on the
RasPi.


Reply to this email directly or view it on GitHub
#14 (comment).

@GalacticAC

This comment has been minimized.

Contributor

GalacticAC commented Feb 26, 2016

A little off topic: No-one uses the gitter chat we set up?

@goodfella44

This comment has been minimized.

goodfella44 commented Feb 26, 2016

This comes to my email ☺
On Feb 26, 2016 2:21 PM, "GalacticAC" notifications@github.com wrote:

A little off topic: No-one uses the gitter chat we set up?


Reply to this email directly or view it on GitHub
#14 (comment).

@GalacticAC

This comment has been minimized.

Contributor

GalacticAC commented Feb 26, 2016

Both infact do, if the settings are enabled! :-D Anyway...is there a way to link them without reposting stuff?!

@iimog

This comment has been minimized.

Member

iimog commented Feb 26, 2016

In fact, you can see the activity in the right sidebar of the gitter chat. But it only states "GalacticAC commented #14" and not the comment itself.

@GalacticAC

This comment has been minimized.

Contributor

GalacticAC commented Feb 26, 2016

I am not sure what you mean!

@iimog

This comment has been minimized.

Member

iimog commented Feb 26, 2016

See "Activity" on the right side:
gitter_screenshot

@goodfella44

This comment has been minimized.

goodfella44 commented Feb 29, 2016

Just a little update. I tried the camera again using a Logitech HD Webcam (C615) and a RPi 1 with a Class 4 microSD card. It worked, well kind of... I was able to access the feed remotely from another PC and to make the daemon start automatically. But somehow, the camera starts for like 10 seconds and that's it. I will investigate this later. It occurs to me that this is maybe some sort of motion tracking or something, that's why it doesn't work, but in any case, the camera is switched off when it's not streaming, so I have no idea how it will be monitoring motion. Maybe it was also a hardware problem or limitation (slow Pi, slow card). I will try again with a RPi 2 and faster card and see how it goes.

@iimog How can I tunnel the feed via SSH when I enable it only via localhost? I am using Putty as the SSH client on Windows.

@iimog

This comment has been minimized.

Member

iimog commented Mar 2, 2016

@Goodfella-no4 I'm happy to hear that you made some progress. As of how to tunnel a feed via ssh you should have a look at the LocalForward option of ssh.
For openssh on linux you can follow my instructions (for doing the same on Putty and Windows have a look at this page: http://howto.ccs.neu.edu/howto/windows/ssh-port-tunneling-with-putty/)
In principle you do the following:

  • restrict your feed to localhost only
  • say your port for the feed is 8080 (you don't have to change this if it is another number just modify my example) and the ip address of your pi is 192.168.1.100
  • now you are able to watch the stream from a browser on the raspberry with the address http://localhost:8080
  • when you connect to your raspberry via ssh you do the following:
ssh -L 12345:localhost:8080 pi@192.168.1.100
  • this way your local port 12345 is forwarded to port 8080 of your raspberry
  • now you can access your feed with your local webbrowser on http://localhost:12345

Let me know if it worked 😃

@GalacticAC

This comment has been minimized.

Contributor

GalacticAC commented Mar 2, 2016

Sounds good. My main problem right now is getting the ssh to work remotly at all. At home it works, on the university vpn from home it works too, but if i am at work locked into "the same" VPN session, it does not recognize it. At home it works again. Is there a trick to do this remotely over the web?

@goodfella44

This comment has been minimized.

goodfella44 commented Mar 3, 2016

Hey guys. Thanks @iimog for the tip, I will try it and tell you if it worked (and if it doesn't ;-) )

Anyway, I have updates. It seems that it works after all. The command
sudo service motion start
resulted in motion running as a daemon, and I can see it running when I type
service --status-all
but in reality it's not running and the webserver and the webcam are off.

So what I did was to type
sudo motion start

And voila it works! But, even when using a RPi 2, with a powered USB 3.0 hub, ethernet and a Class 10 card, the lag of the video is horrible! It's unusable. There is lag and there is a very bad framerate. I tried lowering the resolution but it didn't work, and needless to say that when I increased the framerate nothing happened as well. The CPU usage with the RPi 2 doesn't exceed 25%, so that's a good sign. Any advice?

@goodfella44

This comment has been minimized.

goodfella44 commented Mar 3, 2016

@malvikasharan

This comment has been minimized.

Contributor

malvikasharan commented Mar 3, 2016

Frank, Do you think you can lead the WUBSyB discussion next week?
I can't find your personal email :(

On Thu, Mar 3, 2016 at 12:23 PM, Goodfella-no4 notifications@github.com
wrote:

I followed the guide in here:
http://pimylifeup.com/raspberry-pi-webcam-server/


Reply to this email directly or view it on GitHub
#14 (comment).

[image: --]
Malvika Sharan
[image: http://]about.me/malvikasharan
http://about.me/malvikasharan?promo=email_sig

@goodfella44

This comment has been minimized.

goodfella44 commented Mar 15, 2016

Hello! Here is an update. I finally got it to work, I got the RPi Camera and it works fine even with a RPi1 with an output of 1080p@30fps with a bitrate of around 10-15 Mbps. The feed is accessible through the RTSP protocol and can be shown on VLC and accessed from several clients at the same time. It worked fine with ethernet and with wifi as well, CPU temp was around 57 degrees Celsius max. I will be very glad to help anyone who is putting a similar system together. Thank to all of you and especially to @iimog

@goodfella44

This comment has been minimized.

goodfella44 commented Mar 15, 2016

Sorry a quick addition: The feed is not in real time and there is a lag of around 2 seconds. But for my needs this is very acceptable. Resolution, fps and bitrate have no influence on the lag, I believe it's needed for buffering, but movement is fluid even with my old RPi1 with ~60% CPU activity while streaming to 2 clients simultaneously at 1080p. Impressive little beast :-)

@iimog iimog closed this Apr 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment