-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for https? #1
Comments
what did the log say? you do not have to modify the python code to change the server url. you should be able to set it like this: [Influx] there might be issues with accepting your server's ssl certificates, so we might have to add options for that. also, urllib2 might have issues depending on whether your python was built with ssl support. the log should tell us |
OK. Wasn't aware of the possibility of using server_url in weewx.conf. I think this is because I use a self-signed certificate (see https://billyoverton.com/2016/05/30/smart-meter-installing-and-configuring-influxdb.html) |
what python version are you running? |
Python 2.7.9 |
python before 2.7.9 did not verify certs. let me see if i can add config options for verification... |
please try influx extension v0.3. this should ignore the server certs. at some point i'll have to add the full set of ssl options, but i need to figure out the right pattern since that will be applied to a whole slew of weewx extensions. |
Thanks! Yes I will do that, but as it is a standalone setup at my work and I will not be there the next two days I can give it a try next Thursday. |
Installed v0.3 but keep getting the <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] .... (_ssl.c: 581>error |
there is a typo in influx.py. please change this:
to this:
notice the change from urllib.urlopen to urllib2.urlopen |
I changed this in /usr/share/weewx/user/influx.py I now also tried to connect from a browser from the same RPi where weewx is installed: no problem, I get response. |
unfortunately, it sounds like the _create_unverified_context is not working. i'll have to set up an https influx server and do some deeper testing. |
Well, I would be very grateful if you could solve this. Please keep me informed. |
Never used GitHub before so maybe I follow the wrong path for this but I have a question about weewx-influx.
I used it succesfully in a test-setup. But I needed to change the Influx-server to accept https.
I'm not quite sure if this module can handle that.
I tried this:
-set hostname in the weewx-conf Influx-section to https://: no success
-changed ~weewx/user/index.py line 189: site_dict['server_url'] = 'https//%s:%s' % (host, port): no success
Before I dig deeper into this I would like to know whether is is possible at all to use this module with https?
The text was updated successfully, but these errors were encountered: