Wykres commitów

1011 Commity (61dbc60fa7e7dd809f432bcfb66cdd99ec5310b5)

Autor SHA1 Wiadomość Data
Fredrik Öhrström 61dbc60fa7 Added UniSmart gas meter driver. 2021-09-23 12:06:12 +02:00
Fredrik Öhrström b535abe0a8 Add another register size for apator162. 2021-09-22 10:18:35 +02:00
Fredrik Öhrström 3e930d82df Add another register size for apator162. 2021-09-22 00:17:18 +02:00
Fredrik Öhrström 09bb3debf6 Improved decoding of apator162 telegrams. 2021-09-22 00:01:21 +02:00
Fredrik Öhrström fc89b34015 Added another mfct/version/media combo for the izar driver. 2021-09-20 10:54:53 +02:00
Fredrik Öhrström 0788ad7b90 Added :hex type for stdin, files and ttys. 2021-09-12 19:51:33 +02:00
Fredrik Öhrström 21c8ab66cf Update README 2021-09-12 10:46:39 +02:00
Fredrik Öhrström 89cf1bad80 Parse and decode a hex string supplied as argument on command line. 2021-09-12 10:40:40 +02:00
Fredrik Öhrström 2baff2207b Correct off by one error. 2021-09-02 20:37:51 +02:00
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