solmoller / eversolar-monitor

Script to capture data and create statistics from Eversolar/zeversolar Solar Inverters. Includes easy install image files for Raspberry Pi. Working edition since 2012 :-)
https://github.com/solmoller/eversolar-monitor/blob/wiki/Introduction.md
MIT License
30 stars 20 forks source link

Serial number can contain non ascii values #47

Closed kiekerjan closed 4 years ago

kiekerjan commented 4 years ago

Similar to issue #10 I got an issue where the serial number contains non-ascii characters. I solved it by adding a line in function register_inverter:

my $serial_number = unpack( "Z*", $serial_num_response );
$serial_number =~ s/\W//g;

(I added the second line, the first is for location reference)

solmoller commented 4 years ago

Interesting, I'll look into this, when I am home and the sun is up. As far north as I live that is rare occation these days.