-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
38 lines (24 loc) · 1.22 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cc128-php-extractor is a PHP program to make graphics from your current cost cc128 device.
------------------------------------------------------------------------------------------
Actually there is 2 parts :
- PHP extractor (ENVI => PHP => Sqlite)
- Python upload (Sqlite => Python => Google Power Meter)
In a future release PHP extractor will be replaced with a python one.
The program use the 2-hour consumption average so it needs to be pluged all the 30 days
to don't loose any data.
PHP extractor usage :
- configure serial port into cc128.php
- hold down OK and down buttons on the cc128 (current cost) untill led is flashing
- run in a console
$ php cc128.php
- the program is acquiring new data and store them
- you should now have an cc128.db sqllite file
- the db file is used to generated a javascript file holding all the plots
- open index.html in your browser and review your power consumption
to refresh data :
- use the same procedure (only new data will be added)
Python upload usage :
- configure authToken and variable path in config
- run in a console
$ ./sqlite2googlepowermeter.py -f full_path_to_config_file path_to_sqlite_file
please report bugs at : http://github.com/ka2er/cc128-php-extractor/issues