testtestHome

Moblogging pour geeks…

28.09.2006 par Mich

Les lignes de texte qui vont suivre ont un contenu peut-être incompréhensible pour certains, vous pouvez donc arrêter la lecture ici si ce genre de prose ne vous intéresse pas.

Laissez-moi vous expliquer l’idée de base : j’aimerais, quand je vois quelque chose d’insolite, pouvoir prendre la photo à partir de mon GSM (que j’ai toujours sur moi) et faire paraître cette photo ensuite ici, sur ce blog.

Facile ? Oui ? Non ? Oui !

Premier étape : faire parvenir la photo sur ce serveur.
Je prendre la photo en question. Ensuite, je profite de la connexion GPRS sur mon GSM ou d’un MMS pour envoyer cette photo vers une adresse e-mail. Cette adresse e-mail, est bien entendu sur ce serveur.

Deuxième étape : faire un script pour extraire l’image du mail.
PHP possède une imposante série de fonctions dont entres autres des fonctions pour se connecter à un serveur mail. Ce que je vais faire est me connecter au serveur mail en localhost et vérifier si il y a sur ce serveur un nouvel e-mail. Afin d’éviter tout abus, je contrôlerais que les mails reçu d’une adresse e-mail spécifique, notamment celle du GSM. Via PHP (toujours), je vais ensuite extraire les pièces jointes de ce mail, de préférence celles de type ‘image/jpeg’. Cette image, je vais ensuite l’enregistrer sur le disque tout en retenant certaines autres données extraite du mail (titre, texte accompagnant, data à partir de l’EXIF de la photo…).

Troisième étape : la mise en ligne.
Après un rapide contrôle sur la taille de l’image et un éventuel redimensionnement, je vais, en utilisant les données extraite lors de la précédente étape, faire appel à un script au choix. Ce script pourrait mettre la photo en ligne sur un système de blog (eMich, Dotclear, Wordpress,…) via un insert dans la base de données ou pourrait même, pour les felés qui ont envie de le programmer, envoyer ceci vers flickr.

Dernière étape : automatiser étape 2 & 3
Il suffit pour cette dernière étape de programmer un Crontab qui va toutes les 10 minutes faire les actions contenue dans les étapes 2 et 3. Ceci voudrait donc dire que maximum 10 minutes après un envoi, la photo serait en ligne !

Ceci n’est qu’une rapide analyse de comment faire un blog multimédia alimenté depuis une source mobile. En poussant la réflexion, on pourrait s’imaginer une adresse e-mail ou tout le monde enverrais des photos qu’il/elle prend lors d’un événement et qui apparaissent immédiatement sur un site internet ou grand écran, genre festivals.

Je devrais commencer le développement ce soir. Si vous voyez apparaître une photo de ma tiesse, c’est que c’est en bonne voie. Le but est de faire un truc qui est au maximum stand-alone, afin de laisser un autre développeur (par moyen de plugins) la flexibilité par la suite de faire avec les différents supports ce qu’il veut.

tags: . |
Pas mal la réflexion, ces en effets une des solutions possibles en utilisant php et le crontab.
Si tu peux envoyer ce mail vers un mailserver dont tu as le contrôle, tu peux traiter le mail dès son arrivée. ça passe généralement par une entrée du genre dans le fichier aliases

phprobot: |/usr/bin/php /var/www/site/processmail.php

et hop tu obtiens le mail dans stdin. ça t'évite le délail et le gaspillage de ressources qu'implique un crontab.
aikii, je vais en premier lieu essayer via un Crontab, ma connaissance pour ce que tu dis est un peu limitée, si t'a des réfèrences, elles sont les bien venues !
ça dépend de ce que tu utilises comme smtp. postfix, sendmail, exim ?

Le fichier aliases se situe généralement à /etc/aliases ou /etc/mail/aliases

Pour lancer un programme qui reçoit le contenu du mail entrant pour une adresse, insérer une ligne du genre

processmail: "|/usr/bin/php /var/www/mailprocess.php"

Il me semble que la syntaxe est identique entre sendmail et exim. Postfix, je connais pas. Attention que pour des raisons de sécurité, le pipe vers un process n'est pas toujours activé par défaut. Jeter un oeil aux logs d'erreur pour débugger ...

Ah oui, pas oublier de faire un restart ou reload de l'smtp après avoir changé l'aliases
Je verrais ça en deuxième phase avec mon admin serveur
Je me rappelle par ailleurs que mobischtroumpf avait fait une campagne de pub pour le lancement de ses services relatifs au positionnement : il était censé te dire, par exemple, où se trouvait le chinois le plus proche, etc. tu dois payer de l'ordre d'un euro pour une heure de ces services. Quand j'ai voulu tester le seul service disponible ... j'ai activé le service pour une heure, donc là je douille et ensuite, je teste le service : non disponible. Ah, les cons, la qualité de service dans le monde du télécom en est donc toujours au même niveau

Enfin tout ça pour dire : la technologie permettant la géolocalisation de ton message est là. Maintenant pour ce qui est d'obtenir ces données pour un prix raisonnable, attends encore 10-15 ans.
Moué, relatif, il y a des GSM doté de GPS. Il y a surement un Smartphone qui dois avoir ça.

Imagine alors un petit programme Symbian qui va écrire dans une photo que tu choisis la longitude/latitude de l'endroit dans les EXIF ou tu viens de prendre cette photo et hop t'a directement le geotagging en ligne Et ça, on y est quasi !

Imagine également ces coordonés linké a un service comme tu le décrit (donc plus fiable que le truc de mobischtroumf).
Effectivement la géolocalisation via antennes GSM est un projet mort dans l'oeuf. Les gps ne coûtent plus grand chose, et au fond on a quasi les mêmes problèmes en cas de mauvaises conditions météo ( si l'une des antennes gsm n'est plus disponible, on ne peut plus estimer la localisation ).

Genre de projet marrant avec les données GPS, un pote récolte les tracés enregistrés par les gps ( style garmin ) pour les mettre à disposition sur un site. Avec une googlemap derrière, c'est nickel et ça donne des trucs comme ça :
http://www.mowglish.be/datagps/ind...id=53

( oué oué, tant qu'à faire autant choisir un parcours qui frime, c'est Bruxelles-lille en rollers )

Et encore, ici on n'exploite pas encore beaucoup les données temporelles. À partir de la vitesse, on pourrait en déduire les tronçons roulants, etc.

Chaque carte est un export d'un traitement local, mais si tous les points étaient en DB on pourrait faire des trucs de fou, genre calculer le meilleur parcours entre deux points en le déduisant des bons tronçons connus. Bon, là ça vole haut.

Mais de manière globale tout le potentiel du GPS est encore à exploiter. Avec suffisamment d'utilisateurs en possédant, on peut éviter les bouchons, des trucs du genre. Mais ça pose aussi plein de problèmes de protection de la vie privée. D'autres marketeux penseront à de nouveaux moyens de nous polluer le cerveau en se servant de ces données
Oui, style un GPS "freeware" avec des pubs en fonction des magasins à proximité

En tout cas bien sympa ton exemple avec le roller. BXL-Lille, faut être fou...
Si tu veux un coup de main... par PaKaL (29/09/2006 @ 08:31)
Sur la methode qu'Aiki propose j'ai déjà un truc du genre qui tourne chez moi depuis la création de PaKaL - Le mec qui sert à rien...

Je faisais parfois des postes en état seconde et en direct de l'Irish Pub Charleroi...
LOL
greco guitar - greco guitar (01/11/2011 @ 10:44)
The one stop dealer system intended for listings throughout Asia. You can easlily bid on Japan online auctions and have these brought to your home.
[...]please visit the sites we follow, including this one, as it represents our picks from the web[...]…
[...]usually posts some very interesting stuff like this. If you’re new to this site[...]…
Featured Sites - Featured (02/12/2011 @ 03:31)
...These are some featured websites that we choose to honor with a link back to their site...
[...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]…
[...]we came across a cool site that you might enjoy. Take a look if you want[...]…
[...]one of our visitors recently recommended the following website[...]…
[...]usually posts some very interesting stuff like this. If you’re new to this site[...]…
dance clubs - Sites we Like… (08/12/2011 @ 19:46)
[...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]…
[...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]…
brian ofsie - Superb website (09/12/2011 @ 06:08)
[...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]…
[...]Here are ѕоme оf the sites wе recommend for thаt visitors[...]
[...]Here are some of the sites we recommend for our visitors[...]…
brambula - Check this out (09/12/2011 @ 14:53)
[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]…
[...]just below, are some totally unrelated sites to ours, however, they are definitely worth checking out[...]
[...]the following are several web page links to sites I always link to seeing as we believe these are worth visiting[...]
[...]just below, are some totally unrelated sites to ours, however, they are definitely worth checking out[...]
udvarlás - Awesome website (11/12/2011 @ 00:07)
[...]the time to read or visit the content or sites we have linked to below the[...]…
[...]that would be the end of thе report. In thіs article you'll uncover sоmе websites that mаnу оf uѕ bеlievе you'll value, click оn all the backlinks over[...]
ismerkedés - Check this out (11/12/2011 @ 13:09)
[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]…
[...]please visit the sites we follow, including this one, as it represents our picks from the web[...]…
[...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]…
[...]the time to read or visit the content or sites we have linked to below the[...]
Keep functioning ,terrific job!
[...]The information mentioned in the article are some of the best available [...]...
[...]Here are some of the sites we recommend for our visitors[...]…
vonzalom jelei - Check this out (13/12/2011 @ 11:39)
[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]…
It was a dreary day here today, so I just took to messing around on the internet and realized
[...]below you’ll find the link to some sites that we think you should visit[...]…
I’ve recently been an avid supporter of your respective web web-site for quite a while and not actually presented something back again, I am hoping to enhance that down the road with increased discussion.Many thanks for an additional new inclusion to th
[...]please visit the sites we follow, including this one, as it represents our picks from the web[...]…
[...]far more web pages that contain previously linked to your blog at some time during the past[...]
hogy kell csajozni - Sources (14/12/2011 @ 11:50)
[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]…
[...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]…
Find the hottest deals on web today!
[...]we came across a cool site that you might enjoy. Take a look if you want[...]…
[...]the time to read or visit the content or sites we have linked to below the[...]…
[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]…
[...]blow are some sites that we think it will be worth your time[...]
[...]The information mentioned in the article are some of the best available [...]...
[...]the time to read or visit the content or sites we have linked to below the[...]
[...]please visit the sites we follow, including this one, as it represents our picks from the web[...]…
All in one place solutions for all your TV lamps needs.
medicinal herb - Links (17/12/2011 @ 12:01)
[...]Sites of interest we have a link to[...]…
[...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]…
[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]…
csajozás - Check this out (17/12/2011 @ 20:14)
[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]…
csajozás - Sites we Like… (18/12/2011 @ 14:54)
[...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]…
[...]the time to read or visit the content or sites we have linked to below the[...]
Top LMS - Top Blogger Post Here (19/12/2011 @ 19:44)
This is surely one of the most choice blog stories I have seen in the past few days.
Thanks for all your insight. This site has been really helpful to me.
csajozás - Awesome website (20/12/2011 @ 22:33)
[...]the time to read or visit the content or sites we have linked to below the[...]…
[...]while the sites we link to below are completely unrelated to ours, we think they are worth a read, so have a look[...]
[...]here are some links to sites that we link to because we think they are worth visiting[...]
[...]Sites of interest we have a link to[...]…
Car Accident - Digg (23/12/2011 @ 15:58)
While checking out DIGG today I found this
windows 8 - windows 8 (25/12/2011 @ 04:47)
There was somebody else that wrote one thing equivalent, however you probably did a much better job. Thanks for the read.
[...]YOU PEOPLE acquired trick I THINK....[...]
Thanks for all your insight. This site has been really helpful to me.
Including Blinds , Shades, Shutters and Draperies.
Huper Optik Ceramic Window Films are low glare and block over 99% of harmful UV Rays.
[...]here are some links to sites that we link to because we think they are worth visiting[...]
[...]here are some sites that we think it will warm you up[...]
[...]in the following are a handful of listings to online websites I always connect to since we believe they are seriously worth visiting[...]
Oak Internal Doors - Digg (04/01/2012 @ 15:52)
While checking out DIGG yesterday I noticed this
- Hello (07/01/2012 @ 02:13)
I regard something genuinely special in this site.
[...]no...im some1 elizabeth nevr knew...im all four an illsion 0.0[...]
While checking out DIGG yesterday I found this
penny stock tip - Another Title (10/01/2012 @ 18:33)
I saw this really good post today.
Its hard to find informative and accurate information but here I noted
Car Accidents - Looking around (13/01/2012 @ 16:03)
I like to surf in various places on the web, often I will go to Stumble Upon and follow thru
[...]in the following are a handful of links to online sites I always connect to seeing that we think they really are seriously worth visiting[...]
Oak Fire Doors - Tumblr article (18/01/2012 @ 16:21)
I saw someone talking about this on Tumblr and it linked to
online kredit - Thumbs up (19/01/2012 @ 04:10)
I saw this really good post today.
i must say best article
Oak Doors - Just Browsing (25/01/2012 @ 18:12)
While I was browsing today I saw a excellent article concerning
I want to tell good post gamevui
I want to comment fantastic images truyen la
although websites we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look
I must comment you are best images bongda bong da xaluan
I had to tell this is fantastic site truyen tranh xaluan
[...]Wartrol Scam treatments for genital warts in women[...]
wartrol - wartrol reviews (10/02/2012 @ 23:24)
[...]Wartrol genital warts cancer[...]
[...]blow are some sites that we think it will be helpful and fun to read[...]
[...]here are some links to sites that we link to because we think they are worth visiting[...]…
[...]below you’ll find the link to some sites that we think you should visit[...]…
[...]the time to read or visit the content or sites we have linked to below the[...]…
shamballa - Bracelet shamballa (25/03/2012 @ 19:30)
[...] bracelets shamballa [...]
shamballa - Bracelet shamballa (29/03/2012 @ 21:34)
[...] bracelets shamballa [...]
[...]loads addiitional information for this types of area of interest on websites, observe[...]
Stud Earring - Shoes On Line (11/04/2012 @ 00:26)
Pretty nice post. I just stumbled upon your blog and wished to say that I have really enjoyed browsing your blog posts. After all I will be subscribing to your rss feed and I hope you write again very soon!
Office Shoes - Blue Shoes (15/04/2012 @ 05:20)
This website is really a stroll-via for all of the information you wanted about this and didnot know who to ask. Glimpse right here, and also you’ll definitely discover it.
[...]just below, are some totally unrelated sites to ours, however, they are definitely worth checking out[...]
[...]the time to read or visit the content or sites we have linked to below the[...]
furry bean bags - Sites I like (29/04/2012 @ 05:36)
[...]Invest the time to scan or visit the subject or sites we have linked to immediately below[...]
Laisser un commentaire
  • Nom *

  • Email *

  • Homepage

  • Commentaire *

  • * = champs requis


  • Je suis amnésique