2019-10-03 19:33:11 +00:00
|
|
|
from decimal import Decimal
|
|
|
|
import datetime
|
|
|
|
import unittest
|
|
|
|
import pytz
|
|
|
|
from dsmr_parser import obis_references as obis
|
|
|
|
from dsmr_parser import telegram_specifications
|
|
|
|
from dsmr_parser.exceptions import InvalidChecksumError, ParseError
|
|
|
|
from dsmr_parser.objects import CosemObject, MBusObject, Telegram
|
|
|
|
from dsmr_parser.parsers import TelegramParser
|
2019-11-25 00:37:48 +00:00
|
|
|
from example_telegrams import TELEGRAM_V4_2
|
2019-10-03 19:33:11 +00:00
|
|
|
parser = TelegramParser(telegram_specifications.V4)
|
|
|
|
telegram = Telegram(TELEGRAM_V4_2, parser, telegram_specifications.V4)
|
|
|
|
|
|
|
|
print(telegram)
|