issue97:labolinux_-_ip_camera
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue97:labolinux_-_ip_camera [2015/06/04 12:21] – créée d52fr | issue97:labolinux_-_ip_camera [2015/06/15 14:20] (Version actuelle) – d52fr | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | My father recently bought chickens and I thought it would be nice to have an Internet camera out there to keep an eye on them. Nice idea, but how can it be done when these Wi-Fi enabled cameras are out of Wi-Fi range? I can’t run a giant network cable through the garden. | + | ===== 1 ===== |
+ | |||
+ | **My father recently bought chickens and I thought it would be nice to have an Internet camera out there to keep an eye on them. Nice idea, but how can it be done when these Wi-Fi enabled cameras are out of Wi-Fi range? I can’t run a giant network cable through the garden. | ||
The answer is powerline adapters. I was highly sceptical of them at first, but I have to admit that they do work, and surprisingly well. | The answer is powerline adapters. I was highly sceptical of them at first, but I have to admit that they do work, and surprisingly well. | ||
Ligne 9: | Ligne 11: | ||
The idea behind the powerline adapter is this: you buy a pair of power outlet plugs which have network sockets on them and several flashing indicator lights. You plug your first one into the wall and have its network socket wired to your internet router. Your second plug goes wherever you need a network point. In a chicken coop, in my case. | The idea behind the powerline adapter is this: you buy a pair of power outlet plugs which have network sockets on them and several flashing indicator lights. You plug your first one into the wall and have its network socket wired to your internet router. Your second plug goes wherever you need a network point. In a chicken coop, in my case. | ||
- | TIP: when pairing the plugs together, do it in the same room as it will save you a lot of legwork. | + | TIP: when pairing the plugs together, do it in the same room as it will save you a lot of legwork.** |
- | Most come with encryption built in that you can enable. This is handy if your power source is shared with other residents. This is not something I’ve tested, but to enable it I think it requires the manufacturer’s software, which I found was Windows only and wouldn’t run in Wine. | + | Récemment, mon père a acheté des poulets et je pensais que ce serait sympa d' |
+ | |||
+ | La solution ? Des adaptateurs par courant porteur. Au départ, je n'y croyais pas trop, mais je dois avouer qu'ils fonctionnent bien, ce qui m' | ||
+ | |||
+ | Déclaration de non-responsabilité : je vais devoir rester quelque peu vague dans cet article, car il y a beaucoup de types différents d' | ||
+ | |||
+ | Installation électrique | ||
+ | |||
+ | Voici l' | ||
+ | |||
+ | ASTUCE : faites l' | ||
+ | |||
+ | ===== 2 ===== | ||
+ | |||
+ | **Most come with encryption built in that you can enable. This is handy if your power source is shared with other residents. This is not something I’ve tested, but to enable it I think it requires the manufacturer’s software, which I found was Windows only and wouldn’t run in Wine. | ||
You can add more plugs to your powerline network, but try to keep them all the same type. Otherwise, you’re asking for incompatibility and nightmares. | You can add more plugs to your powerline network, but try to keep them all the same type. Otherwise, you’re asking for incompatibility and nightmares. | ||
Ligne 19: | Ligne 35: | ||
IP (Internet Protocol) cameras come in many shapes, sizes and prices. There are two major manufacturers: | IP (Internet Protocol) cameras come in many shapes, sizes and prices. There are two major manufacturers: | ||
- | Yes, they’re cheap makes with only 640-pixel wide images, but I don’t want an expensive camera in a chicken coop. | + | Yes, they’re cheap makes with only 640-pixel wide images, but I don’t want an expensive camera in a chicken coop.** |
+ | |||
+ | La plupart ont un chiffrement intégré que vous pouvez activer. C'est utile si vous partagez votre source d' | ||
+ | |||
+ | Vous pouvez ajouter plus d' | ||
+ | |||
+ | Caméras IP | ||
+ | |||
+ | Des caméras IP (Internet Protocol) sont disponibles dans beaucoup de formes, de tailles et de prix. Il y a deux fabricants majeurs : Wansview et Foscam. | ||
+ | |||
+ | Oui, elles sont bon marché, et leurs images | ||
+ | |||
+ | ===== 3 ===== | ||
- | The good thing about these cameras is that they pan and tilt. In other words: you can move them by remote control. Most come with infrared LEDs on the front which will allow night vision, too. The back of the camera has an ethernet port, Wi-Fi antenna, power socket, and usually several connections for sound and alarms (if required). All we really need here are the power and ethernet ports. | + | **The good thing about these cameras is that they pan and tilt. In other words: you can move them by remote control. Most come with infrared LEDs on the front which will allow night vision, too. The back of the camera has an ethernet port, Wi-Fi antenna, power socket, and usually several connections for sound and alarms (if required). All we really need here are the power and ethernet ports. |
So, you’ve got your powerline adapter plugged in where you want it. Plug your network cable from the powerline to the camera, then power on the camera. This is important as I find that powering on the camera first, then plugging in the network cable, doesn’t always work for getting an IP address. Give the camera at least one or two minutes before writing it off, as mine takes at least a minute to boot up and go through its up/down, left/right test sequence. | So, you’ve got your powerline adapter plugged in where you want it. Plug your network cable from the powerline to the camera, then power on the camera. This is important as I find that powering on the camera first, then plugging in the network cable, doesn’t always work for getting an IP address. Give the camera at least one or two minutes before writing it off, as mine takes at least a minute to boot up and go through its up/down, left/right test sequence. | ||
Ligne 27: | Ligne 55: | ||
IP ADDRESS | IP ADDRESS | ||
- | Most IP cameras come with a sticker on the underside of it. This gives you the default admin password (for initial setup), a dynamic DNS url, and (sometimes) a default IP address. My one didn’t come with an IP address on the sticker, so I’ve no idea what it’s IP address is so I’ll need to find it. You can, sometimes, get it using the dynamic DNS URL, but they’re quite often in China, incredibly slow, and not exactly trustworthy. So, I’d recommend not using it and setting up a faster dynamic URL, but we’ll come to that later. | + | Most IP cameras come with a sticker on the underside of it. This gives you the default admin password (for initial setup), a dynamic DNS url, and (sometimes) a default IP address. My one didn’t come with an IP address on the sticker, so I’ve no idea what it’s IP address is so I’ll need to find it. You can, sometimes, get it using the dynamic DNS URL, but they’re quite often in China, incredibly slow, and not exactly trustworthy. So, I’d recommend not using it and setting up a faster dynamic URL, but we’ll come to that later.** |
- | Again, I have to be a bit vague here as all routers are different. I’m using a BT HomeHub 4 (in the UK) so your router will no doubt be different. But, either way, you log in to your router and head to the DHCP table page (if there is one) or to a visual list of attached devices. In there you’ll see the device and its IP address. | + | L' |
+ | |||
+ | Bon, vous avez branché votre adaptateur là où vous voulez. Maintenant branchez le câble réseau de l' | ||
+ | |||
+ | Adresse IP | ||
+ | |||
+ | La plupart des caméras IP sont livrées avec une étiquette sur sa face inférieure. Là-dessus, il y a le mot de passe de l' | ||
+ | |||
+ | |||
+ | |||
+ | ===== 4 ===== | ||
+ | |||
+ | **Again, I have to be a bit vague here as all routers are different. I’m using a BT HomeHub 4 (in the UK) so your router will no doubt be different. But, either way, you log in to your router and head to the DHCP table page (if there is one) or to a visual list of attached devices. In there you’ll see the device and its IP address. | ||
In my case, it was a device I didn’t recognise, and I knew that my main powerline was in LAN2 (on my router), so I knew right away that was the camera. It won’t always have an easily recognisable name! | In my case, it was a device I didn’t recognise, and I knew that my main powerline was in LAN2 (on my router), so I knew right away that was the camera. It won’t always have an easily recognisable name! | ||
Ligne 37: | Ligne 77: | ||
Success! | Success! | ||
- | So, I can access the IP camera over the network. First thing I did, which isn’t a necessity, is to head back into my router and tell the router that I want that device to have the same IP address every time. With that saved I know that my camera will always be 192.168.0.2. | + | So, I can access the IP camera over the network. First thing I did, which isn’t a necessity, is to head back into my router and tell the router that I want that device to have the same IP address every time. With that saved I know that my camera will always be 192.168.0.2.** |
- | By default the IP cameras use port 80 which is the default internet port – that needs to be changed. In the camera settings will be a place to edit the IP address and/or port number. I’ve changed mine to port 82. | + | À nouveau, je dois rester vague ici, car tous les routeurs sont différents. J' |
+ | |||
+ | Dans mon cas, c' | ||
+ | |||
+ | Pour voir ce qu'il en était, j'ai rentré l' | ||
+ | |||
+ | Victoire ! | ||
+ | |||
+ | Bon, je peux accéder à la caméra IP sur mon réseau. La première chose que j'ai faite, qui n'est pas nécessaire, | ||
+ | |||
+ | ===== 5 ===== | ||
+ | |||
+ | **By default the IP cameras use port 80 which is the default internet port – that needs to be changed. In the camera settings will be a place to edit the IP address and/or port number. I’ve changed mine to port 82. | ||
I also changed the password for the admin account, and added a guest operator account. This means I can give people the guest login to let them view, but not edit, the camera. | I also changed the password for the admin account, and added a guest operator account. This means I can give people the guest login to let them view, but not edit, the camera. | ||
Ligne 51: | Ligne 103: | ||
DYNAMIC DNS | DYNAMIC DNS | ||
- | If you’re like me, then your IP address will change each time to reconnect to the internet. Most routers have a setting for dynamic DNS which will let your router ping its new IP address to a provider who will associate that IP address with an easy-to-remember URL. | + | If you’re like me, then your IP address will change each time to reconnect to the internet. Most routers have a setting for dynamic DNS which will let your router ping its new IP address to a provider who will associate that IP address with an easy-to-remember URL.** |
- | There are many different free dynamic DNS providers out there, but I use DTDNS.com as this is what’s compatible with my router. You’ll need to log into your router and go to the dynamic DNS page to see what it will/ | + | Par défaut, les caméras IP utilisent le port 80, le port par défaut pour l' |
+ | |||
+ | J'ai également changé le mot de passe pour le compte administrateur et j'ai rajouté un compte pour un opérateur invité. Cela veut dire que je peut donner la connexion « invité » à des gens qui pourront ainsi voir, mais pas modifier, la caméra. | ||
+ | |||
+ | Si vous pensez utiliser plus d'une caméra en ligne, alors chacune doit avoir un numéro de port différent. | ||
+ | |||
+ | Maintenant que vous avez modifié le port, il faut l' | ||
+ | |||
+ | Jusqu' | ||
+ | |||
+ | DNS dynamique | ||
+ | |||
+ | Si vous êtes comme moi, alors votre adresse IP changera chaque fois que vous vous reconnectez au Net. La plupart des routeurs ont un réglage pour le DNS dynamique qui permet au routeur d' | ||
+ | |||
+ | ===== 6 ===== | ||
+ | |||
+ | **There are many different free dynamic DNS providers out there, but I use DTDNS.com as this is what’s compatible with my router. You’ll need to log into your router and go to the dynamic DNS page to see what it will/ | ||
Whichever service you want to use, create an account with them and sign in. Under hostnames you’ll choose a name and one of their URLs. I chose, funnily enough, chickens, then one of their URLs. | Whichever service you want to use, create an account with them and sign in. Under hostnames you’ll choose a name and one of their URLs. I chose, funnily enough, chickens, then one of their URLs. | ||
Ligne 65: | Ligne 133: | ||
PORT FORWARDING | PORT FORWARDING | ||
- | When you enter your dynamic DNS URL, you’d expect to log into your camera. But no. Why? Because the URL is using port 80 by default. We need to add a colon and your camera’s port number (eg: :82), but first we need to tell the router what to do when we enter that URL. | + | When you enter your dynamic DNS URL, you’d expect to log into your camera. But no. Why? Because the URL is using port 80 by default. We need to add a colon and your camera’s port number (eg: :82), but first we need to tell the router what to do when we enter that URL.** |
- | Somewhere in your router will be a page for port forwarding. It may come under firewall. What we’re going to do is first create a label, or name, for each camera. So I add a new application (as my router calls it). For protocol I keep it at ‘any,’ and I enter 82 for port range, 82 for translate to, and save it. Now I choose my application again (ie: the camera) which is associated with port 82 and link it to the device (the camera). | + | Beaucoup de fournisseurs de DNS dynamique gratuit existent, mais j' |
+ | |||
+ | Quel que soit le service que vous voulez utiliser, créez un compte et connectez-vous. Dans la rubrique « hostnames » (noms d' | ||
+ | |||
+ | Retournez de nouveau sur la page DNS dynamique de votre routeur et donnez-lui le nom d' | ||
+ | |||
+ | Maintenant, quand je me reconnecte au Net, le routeur fournit la nouvelle adresse IP à DTDNS et je peux utiliser mon URL pour me connecter à la caméra. | ||
+ | |||
+ | Oups, attendez. Saisir l'URL du DNS dynamique ne charge pas la caméra ! | ||
+ | |||
+ | Transfert de port | ||
+ | |||
+ | Lorsque vous entrez l'URL DNS dynamique, vous vous attendez à vous connecter à la caméra. Mais non. Pourquoi ? Parce que l'URL utilise le port 80 par défaut. Il faut ajouter un deux-points et le numéro de port de la caméra (par ex. : :82). D' | ||
+ | |||
+ | ===== 7 ===== | ||
+ | |||
+ | **Somewhere in your router will be a page for port forwarding. It may come under firewall. What we’re going to do is first create a label, or name, for each camera. So I add a new application (as my router calls it). For protocol I keep it at ‘any,’ and I enter 82 for port range, 82 for translate to, and save it. Now I choose my application again (ie: the camera) which is associated with port 82 and link it to the device (the camera). | ||
Yes, it’s a bit confusing at first, but the router needs to know where to send things. When our DNS URL comes in, the router has no idea where to send that port 82 data. We’re telling it here to send that port 82 data to the camera. | Yes, it’s a bit confusing at first, but the router needs to know where to send things. When our DNS URL comes in, the router has no idea where to send that port 82 data. We’re telling it here to send that port 82 data to the camera. | ||
Ligne 80: | Ligne 164: | ||
Not in the screenshot shown here, but at the top of that screen is a check to see if the camera is detected, found, and online. If it says it’s all OK, then you’re good to go. Go back and choose your camera from the list, sit back, and watch the show. | Not in the screenshot shown here, but at the top of that screen is a check to see if the camera is detected, found, and online. If it says it’s all OK, then you’re good to go. Go back and choose your camera from the list, sit back, and watch the show. | ||
- | They may be only chickens, but they’re far more interesting than most of the current TV shows. | + | They may be only chickens, but they’re far more interesting than most of the current TV shows.** |
- | CONCLUSION | + | Quelque part dans votre routeur, vous trouverez une page pour le transfert de port. Cela pourrait se trouver sous pare-feu. D' |
+ | |||
+ | Oui, c'est assez confus au départ, mais le routeur a besoin de savoir où envoyer les choses. Quand l'URL DNS arrive, le routeur n'a pas la moindre idée d'où il faut envoyer ces données pour le port 82. Ici, nous lui disons d' | ||
+ | Et maintenant, quand j' | ||
+ | |||
+ | Les applis mobiles | ||
+ | |||
+ | Il y a beaucoup d' | ||
+ | |||
+ | J'y ajoute une nouvelle caméra en lui donnant les paramètres pertinents tels que, marque, modèle, URL DNS, numéro de port et la connexion invité. | ||
+ | |||
+ | Cela ne paraît pas dans la capture d' | ||
+ | |||
+ | Ce ne sont peut-être que des poulets, mais ils sont beaucoup plus intéressants que la plupart des émissions TV actuelles. | ||
+ | |||
+ | ===== 8 ===== | ||
+ | |||
+ | **CONCLUSION | ||
Obviously, you can take this further with several cameras throughout your house or property. You can, if you wish, add microphones to your cameras and listen to what your camera is hearing. Some cameras even allow speakers to be added to let you use it as an intercom device of sorts. Even alarms can be wired into some cameras. | Obviously, you can take this further with several cameras throughout your house or property. You can, if you wish, add microphones to your cameras and listen to what your camera is hearing. Some cameras even allow speakers to be added to let you use it as an intercom device of sorts. Even alarms can be wired into some cameras. | ||
Ligne 90: | Ligne 191: | ||
I was a powerline sceptic, but now I’m a believer! | I was a powerline sceptic, but now I’m a believer! | ||
- | Footnote from Mike Kennedy (FCM proofreader): | + | Footnote from Mike Kennedy (FCM proofreader): |
+ | |||
+ | Conclusion | ||
+ | |||
+ | Il est évident que vous pouvez aller plus loin, avec plusieurs caméras dans la maison et/ou sur vos terres. Vous pouvez, si vous le désirez, ajouter des micros aux caméras et écouter ce que la caméra entend. Certaines permettent l' | ||
+ | |||
+ | Les vedettes principales sont les adaptateurs CPL (Courant porteur de ligne). Sans eux, il n'y aura pas de caméra dans le poulailler. Ce qui démontre la puissance de ces adaptateurs, | ||
+ | |||
+ | J' | ||
+ | |||
+ | [Note de Mike Kennedy (un relecteur pour le FCM) : j'ai utilisé des adaptateurs CPL sur divers sites clients, généralement avec beaucoup de succès. Cependant, de temps en temps, ils ne fonctionnaient pas ou mal. Après des recherches, la cause se révélait être habituellement une alimentation défectueuse dans un autre appareil, normalement dans un PC de bureau bas de gamme, une photocopieuse, |
issue97/labolinux_-_ip_camera.1433413284.txt.gz · Dernière modification : 2015/06/04 12:21 de d52fr