Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
support for DS18S20 + HTU21D added
#21
Please post the raw message which is not working. Which perl version do you use?
#22
(02-09-2015, 06:06 AM)breaker27 Wrote: Please post the raw message which is not working. Which perl version do you use?

Code:
SHC1_RAWMSG Packet Data: SenderID=21;PacketCounter=974;MessageType=8;MessageGroupID=10;MessageID=1;MessageData=f96b00000000;Temperature=-16.85;

Code:
perl -v

This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi

When i call SHC_parser_test.pl i got these errors:
Code:
perl SHC_parser_test.pl
given is experimental at SHC_parser.pm line 101.
when is experimental at SHC_parser.pm line 102.
when is experimental at SHC_parser.pm line 114.
when is experimental at SHC_parser.pm line 126.
when is experimental at SHC_parser.pm line 138.
given is experimental at SHC_parser_test.pl line 54.
when is experimental at SHC_parser_test.pl line 56.
given is experimental at SHC_parser_test.pl line 58.
when is experimental at SHC_parser_test.pl line 60.
when is experimental at SHC_parser_test.pl line 64.
when is experimental at SHC_parser_test.pl line 73.
given is experimental at SHC_parser_test.pl line 75.
when is experimental at SHC_parser_test.pl line 77.
when is experimental at SHC_parser_test.pl line 81.
when is experimental at SHC_parser_test.pl line 87.
when is experimental at SHC_parser_test.pl line 96.
given is experimental at SHC_parser_test.pl line 98.
when is experimental at SHC_parser_test.pl line 100.
when is experimental at SHC_parser_test.pl line 107.
given is experimental at SHC_parser_test.pl line 109.
when is experimental at SHC_parser_test.pl line 111.
Could not create file parser context for file "FHEM/lib/SHC_packet_layout.xml": Datei oder Verzeichnis nicht gefunden at SHC_parser.pm line 200.
#23
Now i can run SHC_parser_test.pl:

1. The file SHC_packet_layout.xml was not up to date in FHEM.
2. First i don't get after MessageData the Temperature: <value> as you.
3. After a new SHC_parser_test.pl i got the right value as you.
4. After a restart of FHEM now i see the right value. Angel

I've copied the files SHC_parser_test.pl, SHC_parser.pm and SHC_parser_test.pl from /opt/fhem/FHEM to /opt/fhem cause in SHC_parser.pm there is a command to open file "FHEM/lib/SHC_packet_layout.xml"

But from where comes the other value when the SHC_packet_layout.xml is not able to read the right value?


Code:
perl SHC_parser_test.pl

Parsing Message: Packet Data: SenderID=21;PacketCounter=1285;MessageType=8;MessageGroup;MessageID=1;MessageData=f9a700000000;Temperature=-16.25;

SenderID: 21
MessageTypeName: Status
MessageGroupName: Weather
MessageName: Temperature
MessageData: f9a700000000
Temperature: -16.25

Thanks for your help.


Forum Jump:


Users browsing this thread: 1 Guest(s)