Powerwall - Extended Parameters


#81

Hi @bshep

First, THANKS for taking the extra effort to share your docker image!

I get this error in the setup when running your docker image on my Diskstation 1812+…I also get an error when just trying to ping the Powerwall2 gateway from my diskstation in a terminal window.

Any advice on how to get the proper network ports open to allow the communication? Is there a set of ports I need to map in the container config?

2019-07-16 23:08:06,571 INFO [main] (Controller.java:109) - *** Starting PVOutput Integration Service v1.5.4

2019-07-16 23:08:06,600 INFO [Thread-0] (Controller.java:130) - Install Directory: /usr/src/app

2019-07-16 23:08:06,621 INFO [Thread-0] (Controller.java:139) - Loaded Config: pvoutput.ini

2019-07-16 23:08:06,854 INFO [Thread-0] (AdminConsole.java:35) - Starting admin console on port: 8888

2019-07-16 23:08:10,705 INFO [Thread-0] (WebClient.java:133) - >>> http://pvoutput.org:80/service/r2/getsystem.jsp?donations=1

2019-07-16 23:08:11,228 INFO [Thread-0] (Controller.java:2136) - <<< Skyscraper of Panels & PW,10980,94028,36,305,Mission Solar 305W,4,2500,SMA SunnyBoy,N,11.0,No,20030109,37.374421,-122.213,5;;1

2019-07-16 23:08:13,231 INFO [Thread-0] (WebClient.java:133) - >>> http://pvoutput.org:80/service/r1/getstatus.jsp?d=20190716

2019-07-16 23:08:13,382 INFO [Thread-0] (Controller.java:323) - --------------------------

2019-07-16 23:08:13,384 INFO [Thread-0] (Controller.java:324) - System Name: Skyscraper of Panels & PW

2019-07-16 23:08:13,385 INFO [Thread-0] (Controller.java:325) - System Size: 10980

2019-07-16 23:08:13,386 INFO [Thread-0] (Controller.java:326) - Timezone: America/Los_Angeles

2019-07-16 23:08:13,387 INFO [Thread-0] (Controller.java:327) - Donation Mode: true

2019-07-16 23:08:13,389 INFO [Thread-0] (Controller.java:328) - Max History: 90

2019-07-16 23:08:13,391 INFO [Thread-0] (Controller.java:329) - Status Interval: 5-min

2019-07-16 23:08:13,392 INFO [Thread-0] (Controller.java:330) - Status Date Time: null

2019-07-16 23:08:13,394 INFO [Thread-0] (Controller.java:331) - Upload Temperature: true

2019-07-16 23:08:13,396 INFO [Thread-0] (Controller.java:332) - Upload Voltage: true

2019-07-16 23:08:13,398 INFO [Thread-0] (Controller.java:333) - Energy Generation: -1

2019-07-16 23:08:13,400 INFO [Thread-0] (Controller.java:334) - Energy Consumption: -1

2019-07-16 23:08:13,404 INFO [Thread-0] (Controller.java:335) - Create Local Graph: true

2019-07-16 23:08:13,406 INFO [Thread-0] (Controller.java:336) - Retry Limit: 60 to 80

2019-07-16 23:08:13,407 INFO [Thread-0] (Controller.java:337) - --------------------------

2019-07-16 23:08:13,438 INFO [Thread-0] (Controller.java:372) - Loaded Reader 1: powerwall

2019-07-16 23:08:13,440 INFO [Thread-0] (Controller.java:373) - Log Directory 1: [/logs]

2019-07-16 23:08:13,442 INFO [Thread-0] (Controller.java:384) - Loading Config 1: powerwall.ini

2019-07-16 23:08:13,446 INFO [Thread-0] (SimpleLogReader.java:428) - Read 0 log entries

2019-07-16 23:08:13,455 INFO [Thread-0] (AHttpLogReader.java:80) - URL 1: https://192.168.2.200/api/meters/aggregates

2019-07-16 23:08:13,464 INFO [Thread-0] (AHttpLogReader.java:97) - Poll Frequency: 300 seconds

2019-07-16 23:08:13,466 INFO [Thread-0] (AHttpLogReader.java:119) - v7 mapped: battery.instant_power

2019-07-16 23:08:13,468 INFO [Thread-0] (AHttpLogReader.java:125) - v8 mapped: load.energy_imported

2019-07-16 23:08:13,469 INFO [Thread-0] (AHttpLogReader.java:131) - v9 mapped: solar.energy_exported

2019-07-16 23:08:13,471 INFO [Thread-0] (AHttpLogReader.java:137) - v10 mapped: site.instant_apparent_power

2019-07-16 23:08:13,473 INFO [Thread-0] (AHttpLogReader.java:143) - v11 mapped: load.frequency

2019-07-16 23:08:13,475 INFO [Thread-0] (AHttpLogReader.java:149) - v12 mapped: load.instant_total_current

2019-07-16 23:08:13,499 INFO [Thread-0] (AHttpLogReader.java:189) - Id: 0, sensor: 0, channels: [], direction: Export, calibration: 1.0

2019-07-16 23:08:13,512 INFO [Thread-9] (WebClient.java:243) - >>> https://192.168.2.200:443/api/meters/aggregates

2019-07-16 23:08:13,523 INFO [Thread-0] (Controller.java:435) - Found 1 Sensors

2019-07-16 23:08:13,529 INFO [Thread-0] (Controller.java:536) - Added Reader: powerwall0

2019-07-16 23:08:13,542 INFO [Thread-0] (Controller.java:560) - Log File: powerwall0 [PW0-2019-07-16.log]

2019-07-16 23:08:13,545 INFO [Thread-0] (Controller.java:572) - Export Sensor: 0, id: 0

2019-07-16 23:08:13,589 INFO [Thread-0] (Controller.java:579) - Service: [http://pvoutput.org:80/service/r2/addbatchstatus.jsp] Test: false, End: 20:00

2019-07-16 23:08:13,590 INFO [Thread-0] (Controller.java:587) - Loaded 1 Readers (Import: 0, Export: 1)

2019-07-16 23:08:15,593 INFO [Thread-0] (Controller.java:731) - Startup Complete: Waiting for data…

2019-07-16 23:08:16,648 INFO [Thread-9] (DefaultRequestDirector.java:586) - I/O exception (java.net.NoRouteToHostException) caught when connecting to the target host: Host is unreachable (Host unreachable)

2019-07-16 23:08:16,650 INFO [Thread-9] (DefaultRequestDirector.java:593) - Retrying connect

2019-07-16 23:08:19,650 INFO [Thread-9] (DefaultRequestDirector.java:586) - I/O exception (java.net.NoRouteToHostException) caught when connecting to the target host: Host is unreachable (Host unreachable)

2019-07-16 23:08:19,651 INFO [Thread-9] (DefaultRequestDirector.java:593) - Retrying connect

2019-07-16 23:08:22,656 INFO [Thread-9] (DefaultRequestDirector.java:586) - I/O exception (java.net.NoRouteToHostException) caught when connecting to the target host: Host is unreachable (Host unreachable)

2019-07-16 23:08:22,657 INFO [Thread-9] (DefaultRequestDirector.java:593) - Retrying connect

2019-07-16 23:08:25,667 ERROR [Thread-9] (AHttpLogReader.java:463) - Http Error

java.net.NoRouteToHostException: Host is unreachable (Host unreachable)

at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)

at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)

at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)

at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)

at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:322)

at java.base/java.net.Socket.connect(Socket.java:591)

at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:285)

at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:375)

at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)

at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)

at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)

at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)

at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)

at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)

at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)

at org.pvoutput.integration.reader.AHttpLogReader$ASimpleLogFileWriter.get(AHttpLogReader.java:430)

at org.pvoutput.integration.reader.AHttpLogReader$ASimpleLogFileWriter.run(AHttpLogReader.java:354)


#82

OK, the answer is pretty simple – my account, even though it was in the administrator group, did not have permission to run certain network commands at root privileges. If I “sudo ping 192.168.2.200” then everything worked fine from the terminal. Who knew that “ping” would be a restricted command!

So…had to log in as Admin, and run the docker image as Admin. It’s running now and I’ll see if it produces good data.

I’ll probably end up running two, one for solar generation and one for consumption, but for now I just want to see solar production.