Go to advanced search

by chris57100
Mon May 05, 2014 1:41 pm
Forum: Français
Topic: Filesystem en lecture seule
Replies: 2
Views: 1044

Re: Filesystem en lecture seule

Salut,
As tu regardé ici : https://wiki.debian.org/ReadonlyRoot ?

Par contre pas dit que la corruption ne puisse pas se faire sur un filesystem en read only
by chris57100
Wed Apr 23, 2014 10:19 am
Forum: Français
Topic: Pas d'ecriture dans un fichier (Bash)
Replies: 4
Views: 983

Re: Pas d'ecriture dans un fichier (Bash)

A mon avis ca vient simplement du path du fichier log qui n'est pas spécifié. Il doit se trouver dans un répertoire mais lequel ...
Essaye de mettre /tmp/log.txt

init est le processus. root est le user.
by chris57100
Wed Apr 23, 2014 10:15 am
Forum: Français
Topic: Script de démarrage ?
Replies: 7
Views: 1625

Re: Script de démarrage ?

nikotinux wrote:dmesg est le buffer des messages du noyau, tu ne risques pas de trouver quoique ce soit de ton script !!!
Exactement.

Code: Select all

man dmesg
Donne :

Code: Select all

DMESG(1)                        User Commands                       DMESG(1)
NAME         top

       dmesg - print or control the kernel ring buffer
by chris57100
Wed Apr 16, 2014 11:09 am
Forum: Français
Topic: [TUTO] script executable
Replies: 2
Views: 8722

Re: [TUTO] script executable

Et le . en début de commande n'est pas nécessaire
by chris57100
Sun Apr 13, 2014 8:35 pm
Forum: HATs and other add-ons
Topic: How to correct raw data from a GPS
Replies: 4
Views: 1652

Re: How to correct raw data from a GPS

About april 2024, yes the RTC clock was wrong.
You are right about the recording. May be i should change the recording frequency to 2 or 3 seconds. May be i have a CPU contengy ?
Do you have an idea why the gps could get some information of the speed and few seconds after returns 0 ?
by chris57100
Sat Apr 12, 2014 10:11 pm
Forum: HATs and other add-ons
Topic: How to correct raw data from a GPS
Replies: 4
Views: 1652

Re: How to correct raw data from a GPS

I use the speed display of my moto. On the road i take measures all seconds but strangly the gps puts me 5 or 6 times at the same place then moves me farer. I was hoping a track with regular points. You can have a look of data renderer here : http://demos.pihomeserver.fr/logger/index.php?tripId=0 Fo...
by chris57100
Sat Apr 12, 2014 6:26 pm
Forum: HATs and other add-ons
Topic: How to correct raw data from a GPS
Replies: 4
Views: 1652

How to correct raw data from a GPS

Hello all,
I log raw data from my GPS using gpsd. It includes eps, eps, epy, etc.

I log my speed but the values are not accurate compared to the real values so i guess i can use EP? to correct them but i don't know how.

Do you know how to use these data ?

Thanks
by chris57100
Tue Apr 01, 2014 9:47 am
Forum: Français
Topic: Pi sur pile reboot tout seul, non volontairement
Replies: 12
Views: 1781

Re: Pi sur pile reboot tout seul, non volontairement

Salut, 4 piles devraient suffir s'il s'agit bien de piles rechargeables à 1200maH minimum. Les piles alcalines peuvent varier à priori et ca pourrait expliquer les sauts. J'ai un bloc 6 piles (1.2V / 2000maH) et je peux allumer mon Raspberry, alimenter une horloge RTC, un gyroscope, une sonde thermi...
by chris57100
Tue Apr 01, 2014 9:42 am
Forum: Français
Topic: problème installation paquet
Replies: 9
Views: 2330

Re: problème installation paquet

LSB c'est un entete dans un script. Donc normal si tu n'en trouves pas Ensuite le fichier concerné est /etc/init.d/minidlna Pour la séquence de boot, es tu certain que minidlna est activé ? Ca ne fonctionne pas : quel est le message d'erreur ? Supprime l'entete LSB qui est dans le script /etc/init.d...
by chris57100
Tue Apr 01, 2014 6:13 am
Forum: Français
Topic: Exécuter un script python par le web
Replies: 4
Views: 4074

Re: Exécuter un script python par le web

Il faut regarder les logs de ton serveur web. Ca te dira ce qui se passe. Et afficher le retour de la commande exec.
Pb de droits ? de path avec python ? de path avec le module php ?
by chris57100
Tue Apr 01, 2014 6:12 am
Forum: Français
Topic: Projet Sonde 1-Wire / Graphiques ?
Replies: 19
Views: 8836

Re: Projet Sonde 1-Wire / Graphiques ?

Tu as un exemple (avec une base SQlite) ici : http://www.pihomeserver.fr/2013/07/24/s ... rface-web/ pour des sondes sans fil. Le principe est le même pour des D18B20 sur 1-wire
Le code et les instructions sont téléchargeables
by chris57100
Tue Apr 01, 2014 5:07 am
Forum: Français
Topic: problème installation paquet
Replies: 9
Views: 2330

Re: problème installation paquet

Comme je l'ai dit : dans /etc/init.d
by chris57100
Thu Mar 27, 2014 8:08 am
Forum: Français
Topic: Precision sur le Raspberry PI
Replies: 3
Views: 773

Re: Precision sur le Raspberry PI

Avec la network image il suffit de donner les informations Wifi à la configuration pour qu'il créé une image avec le wifi déjà configuré.
by chris57100
Thu Mar 27, 2014 7:41 am
Forum: Advanced users
Topic: Image Compression Ratio
Replies: 2
Views: 1259

Re: Image Compression Ratio

It will not answer you question but what you can also do is to create your 2GB image and when you intall it on a bigger SD card you just expand the filesystem with raspi-config. You will save space with multiple images and when you change it you don't have to update others
Well that's what i do ;-)
by chris57100
Thu Mar 27, 2014 7:33 am
Forum: Beginners
Topic: Autostart my python script
Replies: 2
Views: 639

Re: Autostart my python script

You can also create a script in /etc/init.d. That's what i made for my data recorder project. The source code can be find here : https://github.com/pihomeserver/PiDataLogger/blob/master/src/etc/init.d/dataLogger Then you add it in the boot sequence with update-rc.d <name of your script> defaults
by chris57100
Thu Mar 27, 2014 7:29 am
Forum: Beginners
Topic: SD card full, where has the space gone ?
Replies: 5
Views: 2978

Re: SD card full, where has the space gone ?

Did you have a crash or something that could have corrupted your card ? Maybe you should try to force a file system check on next reboot. You could recover the missing space
by chris57100
Wed Mar 26, 2014 6:51 pm
Forum: Français
Topic: [Résolu] digidalRead et niveau logique ?
Replies: 5
Views: 1027

Re: digidalRead et niveau logique ?

Thus if your Vcc is 5V,
C'est du conditionnel.
High input: 0.6Vcc to Vcc+0.5
Low input: -0.5 to 0.3Vcc
Donc High entre 3.3 * 0.6 = 1.98 et 3.8
by chris57100
Wed Mar 26, 2014 4:04 pm
Forum: Python
Topic: How to make python script into an executable
Replies: 5
Views: 3178

Re: How to make python script into an executable

Should be possible with the first line set to

Code: Select all

#!/usr/bin/python
(with the good path of course)
And setting executable rights on the script file
by chris57100
Wed Mar 26, 2014 11:13 am
Forum: Français
Topic: [Résolu] digidalRead et niveau logique ?
Replies: 5
Views: 1027

Re: digidalRead et niveau logique ?

Sur google avec "vcc level gpio switch" j'ai ça :
Thus if your Vcc is 5V, a valid “high” is 3 to 5.5V and a valid “low” is -0.5 to 1.5V.
et
High input: 0.6Vcc to Vcc+0.5
Low input: -0.5 to 0.3Vcc
Source : http://www.scriptoriumdesigns.com/embedded/gpio_in.php
by chris57100
Wed Mar 26, 2014 11:10 am
Forum: Français
Topic: problème installation paquet
Replies: 9
Views: 2330

Re: problème installation paquet

Le problème sembe venir du header du script dans /etc/init.d Enlève minidlna de la séquence de boot update-rc.d minidlna remove Installe tes paquets Rajoute de nouveau minidlna update-rc.d minidlna defaults Il faudra peut être modifier les tags LSB en début de script si ca ne passe pas Plus d'infos ...
by chris57100
Tue Mar 25, 2014 10:39 am
Forum: Français
Topic: Mon petit projet
Replies: 10
Views: 2062

Re: Mon petit projet

- owncloud
- chargement torrent + news
- minidlna pour les videos
- share samba
- sauvegarde timemachine pour le mac
- webmin
- serveur web nginx
- capture de données de sondes sans fil pour station météo

Aucun soucis. Si tu 15 utilisateurs en même temps par contre ca risque d'être chaud
by chris57100
Tue Mar 18, 2014 8:09 pm
Forum: Beginners
Topic: Simple way of playing mp3 file - Web Server
Replies: 8
Views: 10181

Re: Simple way of playing mp3 file - Web Server

Chris thanks for your help! If I go to this direction, what king of pkg should I install ?! Do you know any other thread that would show me step by step how to get close to what im looking for ? I just restored my PI so Im going to start all over again ... Thanks for your support ! Install a web se...
by chris57100
Tue Mar 18, 2014 12:10 pm
Forum: Beginners
Topic: raspi-config
Replies: 1
Views: 687

Re: raspi-config

Hi,

Look at /etc/init.d folder. You should have a script to start the window manager like gdm (default one i guess)
If yes then remove it from the boot sequence :

Code: Select all

update-rc.d gdm remove
Should help i hope
by chris57100
Tue Mar 18, 2014 12:07 pm
Forum: Beginners
Topic: Simple way of playing mp3 file - Web Server
Replies: 8
Views: 10181

Re: Simple way of playing mp3 file - Web Server

Hi
A webserver can't execute a shell script that's the reason why it does not work like what you want
What you can do is create a PHP page that will use shell_exec instruction for example

Go to advanced search