andrewfraley / arris_cable_modem_stats

Retrieves stats from Arris cable modems and sends to InfluxDB
53 stars 34 forks source link

Fix SSL booleans in influxdb client init #5

Closed mikesmitty closed 4 years ago

mikesmitty commented 4 years ago

Thanks for putting this together, I'm looking forward to using it. I did find that whenever I tried using it against influxdb with SSL enabled it would ignore the SSL settings and try to use plain HTTP instead like so:

2020-05-17 19:49:49,045 INFO     Retreiving stats from http://192.168.100.1/cmconnectionstatus.html
2020-05-17 19:49:55,594 INFO     Parsing HTML for modem model sb8200
2020-05-17 19:49:55,667 INFO     Sending stats to InfluxDB (my.influx.server:8086)
2020-05-17 19:49:55,689 ERROR    400: Client sent an HTTP request to an HTTPS server.
2020-05-17 19:49:55,689 ERROR    Failed To Write To InfluxDB

These changes allowed me to use it to connect over SSL however if you'd like to merge them in.

andrewfraley commented 4 years ago

@mikesmitty thank you for this!