Wykres commitów

1002 Commity (6a6d6c290683867ffd6b3833ae6675090aff30ec)

Autor SHA1 Wiadomość Data
Fredrik Öhrström 6a6d6c2906 Added utility for relaying serialport SND_NR to mqtt. 2021-09-02 11:22:32 +02:00
Fredrik Öhrström f06a95b536
Merge pull request #331 from andriej/config-fix
HA addon: Fix payload with spaces
2021-08-31 10:15:58 +02:00
Andrzej 6b28525ca0 Fix payload with spaces 2021-08-31 10:01:50 +02:00
Fredrik Öhrström b5f89eb61d Add ability to send bytes to a bus. 2021-08-29 20:26:06 +02:00
Tomasz Gramza bba4cc4ce5
Home Assistant add-on (#327)
* Move ha-addon files to repository

* Add repository json file

* Map raw usb access and uart devices

* Fix meter configuration naming

* Allow to use custom configuration for MQTT

* Fix syntax related to mqtt config

* Fix shothand if syntax

* Another try on syntax fix

* Fix mosquitto_pub.sh

* Fix mosquitto_pub.sh

* Refactor mqtt publisher script

* Clean config use

* Use explicit if

* Add docs for mqtt option
2021-08-28 18:01:39 +02:00
Fredrik Öhrström de91a30853 Time start of test to avoid spurious errors due to second flip. 2021-08-27 11:22:08 +02:00
Fredrik Öhrström 4ab43ff962 Update docs. 2021-08-27 11:04:59 +02:00
Fredrik Öhrström 2739938424 Fix memleak in testinternals. 2021-08-27 08:50:46 +02:00
Fredrik Öhrström 718cb8fe1b Added test for meter extras in config file. 2021-08-27 08:45:37 +02:00
Fredrik Öhrström 301f7bd3f7 Add option --listunits 2021-08-27 08:31:56 +02:00
Fredrik Öhrström be284f3ae5
Merge pull request #329 from to-masz/unify-meterinfo-parsing
Unify meter configuration parsing between command line and configuration
2021-08-27 08:31:42 +02:00
Tomasz Gramza 62c8ffc34f
Unify meter configuration parsing between command line and configuration file 2021-08-26 20:02:45 +00:00
Fredrik Öhrström 4c1c677486 Added handling of out of bounds offset. 2021-08-21 21:45:43 +02:00
Fredrik Öhrström 59c7907215 Use -n instead of --lines for head call. 2021-08-21 21:13:47 +02:00
Fredrik Öhrström b346841a7e Add necessary header file for alpine linux docker builds. 2021-08-21 21:11:50 +02:00
Fredrik Öhrström bc6c68c3c2 Updated CHANGES. 2021-08-21 21:08:19 +02:00
Fredrik Öhrström bc522feef7
Merge pull request #328 from to-masz/apator162-custom-offset
Add possibility to explicitly point meter reading offset in apator162 telegram
2021-08-21 20:58:36 +02:00
Tomasz Gramza d006f2ef91
Test extras offset in apator162 2021-08-21 16:03:17 +00:00
Tomasz Gramza 70476b1027
Accept offset form extras meterinfo in apator162 2021-08-21 16:02:12 +00:00
Fredrik Öhrström 3c79af043a Add extra clearing of serial buffer when detecting amb8465. 2021-08-19 16:04:29 +02:00
Fredrik Öhrström f0677c2587 Improve testing code coverage. 2021-08-19 12:54:04 +02:00
Fredrik Öhrström 8dd3e87c44
Merge pull request #324 from dwrobel/dw-fix-snprintf
Fix snprintf format argument
2021-08-13 10:11:29 +02:00
Fredrik Öhrström 1f2a078567 Add ifndef FUZZING to util.h. Add wmbusmeters.g which include debug symbol, but not include full libasan address sanitizer code. 2021-08-13 10:09:20 +02:00
Damian Wrobel f6659accbb Fix snprintf format argument
Fixes the following compilation error:

src/meters.cc: In member function
  'virtual std::string MeterCommonImplementation::unixTimestampOfUpdate()':
src/meters.cc:407:35: warning: format '%zu' expects argument of type 'size_t',
  but argument 4 has type 'time_t' {aka 'long int'} [-Wformat=]
  407 |     snprintf(ut, sizeof(ut)-1, "%zu", datetime_of_update_);
      |                                 ~~^   ~~~~~~~~~~~~~~~~~~~
      |                                   |   |
      |                                   |   time_t {aka long int}
      |                                   unsigned int
      |                                 %lu
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.9tme28 (%build)
    Bad exit status from /var/tmp/rpm-tmp.9tme28 (%build)
Child return code was: 1
2021-08-12 19:36:26 +02:00
Fredrik Öhrström 272922a2aa Updated README 2021-08-09 12:17:38 +02:00
Fredrik Öhrström c0c61575be Add check of length for buffer when potentially decrypting aes blocks. 2021-08-09 12:00:55 +02:00
Fredrik Öhrström e39bfca44e Add automatic telegram fuzz seed generation from existing test case simulations. 2021-08-09 11:28:39 +02:00
Fredrik Öhrström 838f89d576 When fuzzing do not check crcs. This can make the fuzzer reach more code paths. 2021-08-09 11:06:30 +02:00
Fredrik Öhrström 5793d7f5b7 Previous commit added better detection of amb8465 dongles. This commit removes unnecessary assert for length inside crc calculation. This check caused unnecessary fuzz crashes. 2021-08-09 01:10:13 +02:00
Fredrik Öhrström 837b86da85 Fix bug that caused crash when dongle was reset. 2021-08-09 00:10:38 +02:00
Fredrik Öhrström 0d830bad59 Fix bug that caused crash when dongle was reset. 2021-08-08 23:07:34 +02:00
Fredrik Öhrström c490c92fdf Add debug information to amb8465 detection. 2021-08-08 21:36:32 +02:00
Fredrik Öhrström 8df796017e Added izar rs 868 meter detection. 2021-08-08 20:06:31 +02:00
Fredrik Öhrström 1bae33aeb7 Added tip on first using auto and then /dev/ttyxxx for raspberry pi. 2021-08-08 18:48:37 +02:00
Fredrik Öhrström bbe12e517b Added Axioma W1 water meter. 2021-08-08 18:31:36 +02:00
Fredrik Öhrström 0f209edc97 Update README, CHANGES and man page. 2021-08-08 17:16:52 +02:00
Fredrik Öhrström efbcafab9f Add timestamp_utc timestamp_lt for explicit choice of date format for fields. 2021-08-08 16:50:25 +02:00
Fredrik Öhrström 6009382d4f Rename jsons to extra_constant_fields. 2021-08-02 00:22:13 +02:00
Fredrik Öhrström e4d3ec1e7e Add field_ prefix which is equivalent to json_ prefix. 2021-08-01 23:12:52 +02:00
Fredrik Öhrström 2c83c51db1 Add field timestamp_ut for printing unix timestamp millis. 2021-08-01 18:24:19 +02:00
Fredrik Öhrström 209ce83c36 Deb package contents should be owned by root. 2021-07-15 10:06:43 +02:00
Fredrik Öhrström e31f1d005f Add telegram to listen to all test. 2021-07-10 21:08:38 +02:00
Fredrik Öhrström a8fae5550c
Merge pull request #311 from BIBOLV/master
Add version 0x06 for bmeter water meter.
2021-07-10 21:04:15 +02:00
BIBOLV a8dfb74720 Add version 0x06 for bmeter water meter.
Fix for https://github.com/weetmuts/wmbusmeters/issues/308
2021-07-09 00:58:37 +03:00
Fredrik Öhrström db42776d2b Add safety check for ancient udev rules in install script. 2021-07-06 11:57:08 +02:00
Fredrik Öhrström 5be9974086 Add safety check for install if ancient wmbusmeters.service is in etc. 2021-07-06 11:57:08 +02:00
Fredrik Öhrström 630631eb11
Merge pull request #306 from the78mole/master
Added Aventies HCA meter and some doc on creating new meter classes
2021-07-06 11:56:55 +02:00
the78mole cd8983dc62 Created some documentation on creating new meter classes. 2021-07-06 00:26:45 +02:00
the78mole 826404ef17 Added Aventies HCA meter 2021-07-05 21:19:45 +02:00
Fredrik Öhrström cf9a22a7e2 Add version 0x34 for qcaloric hca meters. 2021-07-04 10:52:20 +02:00