LibTeleinfo/examples/Raspberry_JSON/README.md

89 lines
2.6 KiB
Markdown
Raw Permalink Normal View History

2015-07-20 00:10:47 +02:00
Teleinfo Universal Library
==========================
Programme d'exemple de la librairie universelle pour la téléinformation pour Raspberry Pi
##Documentation
J'ai écrit un article [dédié][10] sur cette librairie, vous pouvez aussi voir les [catégories][6] associées à la téléinfo sur mon [blog][7].
Pour les commentaires et le support vous pouvez allez sur le [forum][8] dédié ou dans la [communauté][9]
###Installation
2015-07-20 00:17:05 +02:00
Se connecter en ssh sur votre Pi, il doit y avoir les environnements de développement, sinon faites un
2015-07-20 00:10:47 +02:00
`apt-get install build-essential git-core`
Ensuite :
```
git clone https://github.com/hallard/LibTeleinfo
cd LibTeleinfo/examples/Raspberry_JSON/
make
./raspjson
```
Et voilà ce que ça donne avec un dongle MicroTeleinfo
```
2015-07-20 00:17:05 +02:00
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
2015-07-20 00:10:47 +02:00
root@pi01(rw):~/LibTeleinfo/examples/Raspberry_JSON# ./raspjson -d /dev/ttyUSB0
2015-07-20 00:17:05 +02:00
{"_UPTIME":34957, "ADCO":2147483647, "OPTARIF":"HC..", "ISOUSC":15, "HCHC":247418, "HCHP":0, "PTEC":"HC..", "IINST":1, "IMAX":1, "PAPP":150, "HHPHC":"A", "MOTDETAT":0}
2015-07-20 00:10:47 +02:00
{"PAPP":140}
2015-07-20 00:17:05 +02:00
{"HCHC":247419}
2015-07-20 00:10:47 +02:00
{"PAPP":160}
2015-07-20 00:17:05 +02:00
{"PAPP":150}
2015-07-20 00:10:47 +02:00
{"PAPP":160}
{"PAPP":150}
2015-07-20 00:17:05 +02:00
{"PAPP":160}
2015-07-20 00:10:47 +02:00
{"PAPP":140}
2015-07-20 00:17:05 +02:00
{"HCHC":247420}
2015-07-20 00:10:47 +02:00
{"PAPP":150}
2015-07-20 00:17:05 +02:00
{"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}
2015-07-20 00:10:47 +02:00
{"PAPP":150}
{"PAPP":140}
{"PAPP":150}
{"PAPP":160}
{"PAPP":150}
2015-07-20 00:17:05 +02:00
{"PAPP":140}
2015-07-20 00:10:47 +02:00
{"PAPP":160}
{"PAPP":170}
2015-07-20 00:17:05 +02:00
{"HCHC":247421, "PAPP":160}
{"PAPP":140}
2015-07-20 00:10:47 +02:00
{"PAPP":150}
2015-07-20 00:17:05 +02:00
{"PAPP":140}
2015-07-20 00:10:47 +02:00
{"PAPP":150}
{"PAPP":140}
{"PAPP":150}
{"PAPP":140}
{"PAPP":150}
2015-07-20 00:17:05 +02:00
{"PAPP":160}
{"PAPP":150}
{"PAPP":160}
{"HCHC":247422, "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}
{"PAPP":150}
{"PAPP":140}
2015-07-20 00:10:47 +02:00
````
##Divers
Vous pouvez aller voir les nouveautés et autres projets sur [blog][7]
[6]: https://hallard.me/category/tinfo/
[7]: https://hallard.me
[8]: https://community.hallard.me/category/7
[9]: https://community.hallard.me
[10]: https://hallard.me/libteleinfo