-
Notifications
You must be signed in to change notification settings - Fork 23
readme #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hackepeterOli
wants to merge
193
commits into
zanac:master
Choose a base branch
from
Spanni26:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
readme #15
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Spanni26 <dspannbauer@web.de>
New config format
- removed old help call
- modified output (prints readable value)
- added values to pyHPSU.conf - save bfore heavily modifiy the pyHPSU.py and HPSU.py for moving the commands dictionary to pyHPSU.py or a seperate function
- a lot of changes in pyHPSU.py to support the new plugin
- HPSU.py: Don't process "version" command
Plugin mysql
- therefore, edited import statements - all files use python3 now - moved canpi.ini to canpi.conf
First fixes to Dutch translation.
- delete old service file
help: label lookup through name not command .gitingnore: vscode launch config added command dictionary EN: scrred -> screed :-)
Firstpackage
- pyHPSU.py: now string values can be given
update packages and required python-can version
Copying the example, also copies the `nbsp` characters, which are **not** space characters. Debian 10 networking scripts ignore the `pre-up` command, if it is prefixed with `nbsp` chars. This behavior is real hard to diagnose.
fix /etc/network/inferfaces in example
correct translation for heat_slope
The values for the temperature of frost protection were wrong, e.g. -50.0°C instead of -5.0°C
As discussed in #62 it was not possible to get correct values for the command „error“. When adjusting the type to longint it works as expected
Changed output to valid json
Add adaptation for XML-API >=2.0
Changed homematic calls to use tokens which are required in XML-API version >=2.0
Wrong divisor for T_FROST_PROTECT
Fix command „error“
Update pyhpsu.conf
Update homematic.py
mode_01: update values for Automatic 1 & 2, add English translation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hardware Setup (ELM327)
a. Most cheap china replicas will not work because the "AT PP" command is not implemented. A purchase recommendation is as follows: https://www.totalcardiagnostics.com/elm327
b. It is recommended to order a matching obd2 socket (16pol) to connect the can adapter
c. Connect the CAN-High cable 6, the CAN-Low cable 14 and CAN signal ground 5 to the hpsu, Power on the CAN-Side is not needet
Software Setup (ELM327)
a. get the id from the usb elm interface:
ls /dev/serial/by-id/b.
apt-get install python-pika python3-pika python-configparser python3-serialc.
git clone https://github.com/Spanni26/pyHPSUd.
cd pyHPSUe.
chmod +x install.shf.
./install.shg. test the communication (exchange the id)
python3 /usr/bin/pyHPSU_dirty.py -v 2 -d elm327 --port /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_-if00-port0 -c t_hc_set -o CSVThere are the following different possibilities of data export
2.1 Data Export to CSV:
a.
python3 /usr/bin/pyHPSU_dirty.py -v 2 -d elm327 --port /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_-if00-port0 -c t_hc_set -o CSV2.2 Data Export to Emoncms
a.
cp -r pyHPSU/etc/pyHPSU/EMONCMS.ini /etc/pyHPSU/emoncms.inib. Register and note the API key:https://emoncms.org
c. Enter Api key in /etc/pyHPSU/emoncms.ini
d. sample config:
e. run pyHPSU:
/usr/share/pyHPSU/bin/pyHPSU.py -v 1 -d elm327 --port /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_-if00-port0 -o CLOUD -u EMONCMS3. Data Export to FHEM
a. Create Dummy on FHEM Server:
define HPSU dummyb. run pyHPSU:
python3 /usr/bin/pyHPSU.py -o FHEM -d elm327 -p /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_-if00-port0 -c t_hc4. Daemon Mode
a.
apt-get install rabbitmq-serverb. Check if the service is running:
sudo rabbitmqctl statusc. you can activate a management plugin, so that the access to the rabbitMQ server via webinterface port 15672 is possible. The
plugin is not needed for operation.
rabbitmq-plugins enable rabbitmq_managementrabbitmqctl restartd.
cp hpsud.service /etc/systemd/system/e.
systemctl enable hpsud.servicef.
systemctl --system daemon-reloadg. check the status:
systemctl status hpsud.serviceMore information at: (italian language) http://cercaenergia.forumcommunity.net/?t=58409485
A possible HW set-up guide (italian language):
Needs:
If a database should be used simply create a mysql DB with collation "utf8_bin", edit the pyhpsu.conf and select "DB" as output type
Configure it in /etc/pyHPSU/pyhpsu.conf