Mise en forme
This commit is contained in:
parent
d854f8c155
commit
c0cd071ded
|
@ -10,6 +10,7 @@ Pour les commentaires et le support vous pouvez allez sur le [forum][8] dédié
|
||||||
|
|
||||||
###Installation
|
###Installation
|
||||||
Se connecter en ssh sur votre Pi, il doit y avoir les environnements de développement, sinon faites un
|
Se connecter en ssh sur votre Pi, il doit y avoir les environnements de développement, sinon faites un
|
||||||
|
|
||||||
`apt-get install build-essential git-core`
|
`apt-get install build-essential git-core`
|
||||||
|
|
||||||
Ensuite :
|
Ensuite :
|
||||||
|
@ -23,22 +24,42 @@ make
|
||||||
Et voilà ce que ça donne avec un dongle MicroTeleinfo
|
Et voilà ce que ça donne avec un dongle MicroTeleinfo
|
||||||
|
|
||||||
```
|
```
|
||||||
|
root@pi01(rw):~# git clone https://github.com/hallard/LibTeleinfo
|
||||||
|
Cloning into 'LibTeleinfo'...
|
||||||
|
remote: Counting objects: 23, done.
|
||||||
|
remote: Compressing objects: 100% (20/20), done.
|
||||||
|
remote: Total 23 (delta 5), reused 21 (delta 3), pack-reused 0
|
||||||
|
Unpacking objects: 100% (23/23), done.
|
||||||
|
root@pi01(rw):~# cd LibTeleinfo/examples/Raspberry_JSON/
|
||||||
|
root@pi01(rw):~/LibTeleinfo/examples/Raspberry_JSON# make
|
||||||
|
cc -DRASPBERRY_PI -c raspjson.cpp
|
||||||
|
cc -DRASPBERRY_PI -c ../../LibTeleinfo.cpp
|
||||||
|
cc -DRASPBERRY_PI -o raspjson raspjson.o LibTeleinfo.o
|
||||||
root@pi01(rw):~/LibTeleinfo/examples/Raspberry_JSON# ./raspjson -d /dev/ttyUSB0
|
root@pi01(rw):~/LibTeleinfo/examples/Raspberry_JSON# ./raspjson -d /dev/ttyUSB0
|
||||||
{"_UPTIME":30788, "ADCO":2147483647, "OPTARIF":"HC..", "ISOUSC":15, "HCHC":247295, "HCHP":0, "PTEC":"HC..", "IINST":1, "IMAX":1, "PAPP":140, "HHPHC":"A", "MOTDETAT":0}
|
{"_UPTIME":34957, "ADCO":2147483647, "OPTARIF":"HC..", "ISOUSC":15, "HCHC":247418, "HCHP":0, "PTEC":"HC..", "IINST":1, "IMAX":1, "PAPP":150, "HHPHC":"A", "MOTDETAT":0}
|
||||||
{"HCHC":247296}
|
|
||||||
{"PAPP":170}
|
|
||||||
{"HCHC":247297}
|
|
||||||
q{"PAPP":160}
|
|
||||||
{"PAPP":140}
|
{"PAPP":140}
|
||||||
{"_UPTIME":30848, "ADCO":2147483647, "OPTARIF":"HC..", "ISOUSC":15, "HCHC":247297, "HCHP":0, "PTEC":"HC..", "IINST":1, "IMAX":1, "PAPP":140, "HHPHC":"A", "MOTDETAT":0}
|
{"HCHC":247419}
|
||||||
|
{"PAPP":160}
|
||||||
|
{"PAPP":150}
|
||||||
|
{"PAPP":160}
|
||||||
|
{"PAPP":150}
|
||||||
|
{"PAPP":160}
|
||||||
|
{"PAPP":140}
|
||||||
|
{"HCHC":247420}
|
||||||
|
{"PAPP":150}
|
||||||
|
{"PAPP":170}
|
||||||
|
{"PAPP":160}
|
||||||
|
{"_UPTIME":35017, "ADCO":2147483647, "OPTARIF":"HC..", "ISOUSC":15, "HCHC":247420, "HCHP":0, "PTEC":"HC..", "IINST":1, "IMAX":1, "PAPP":160, "HHPHC":"A", "MOTDETAT":0}
|
||||||
{"PAPP":150}
|
{"PAPP":150}
|
||||||
{"PAPP":140}
|
{"PAPP":140}
|
||||||
{"PAPP":150}
|
{"PAPP":150}
|
||||||
|
{"PAPP":160}
|
||||||
|
{"PAPP":150}
|
||||||
{"PAPP":140}
|
{"PAPP":140}
|
||||||
{"PAPP":160}
|
{"PAPP":160}
|
||||||
{"PAPP":170}
|
{"PAPP":170}
|
||||||
{"PAPP":160}
|
{"HCHC":247421, "PAPP":160}
|
||||||
{"HCHC":247298, "PAPP":140}
|
{"PAPP":140}
|
||||||
{"PAPP":150}
|
{"PAPP":150}
|
||||||
{"PAPP":140}
|
{"PAPP":140}
|
||||||
{"PAPP":150}
|
{"PAPP":150}
|
||||||
|
@ -48,17 +69,11 @@ q{"PAPP":160}
|
||||||
{"PAPP":150}
|
{"PAPP":150}
|
||||||
{"PAPP":160}
|
{"PAPP":160}
|
||||||
{"PAPP":150}
|
{"PAPP":150}
|
||||||
{"PAPP":170}
|
|
||||||
{"PAPP":160}
|
{"PAPP":160}
|
||||||
{"PAPP":170}
|
{"HCHC":247422, "PAPP":150}
|
||||||
{"PAPP":150}
|
{"_UPTIME":35077, "ADCO":2147483647, "OPTARIF":"HC..", "ISOUSC":15, "HCHC":247422, "HCHP":0, "PTEC":"HC..", "IINST":1, "IMAX":1, "PAPP":140, "HHPHC":"A", "MOTDETAT":0}
|
||||||
{"HCHC":247299, "PAPP":160}
|
|
||||||
{"PAPP":150}
|
|
||||||
{"_UPTIME":30908, "ADCO":2147483647, "OPTARIF":"HC..", "ISOUSC":15, "HCHC":247299, "HCHP":0, "PTEC":"HC..", "IINST":1, "IMAX":1, "PAPP":160, "HHPHC":"A", "MOTDETAT":0}
|
|
||||||
{"PAPP":140}
|
|
||||||
{"PAPP":150}
|
{"PAPP":150}
|
||||||
{"PAPP":140}
|
{"PAPP":140}
|
||||||
{"PAPP":150}
|
|
||||||
````
|
````
|
||||||
|
|
||||||
##Divers
|
##Divers
|
||||||
|
|
Loading…
Reference in New Issue