Torque

Forums

Forums

Guest  

Show or hide header
Welcome Guest, posting in this forum require registration.




Torque » Torque OBD ECU Scanner » Torque Discussion / Ideas » Cannot Upload to Webserver Using HTTPS

Pages: [1]
Author Topic: Cannot Upload to Webserver Using HTTPS
brusc
Member
Posts: 2
Post Cannot Upload to Webserver Using HTTPS
on: March 15, 2016 (GMT)

Hello,

I am trying to upload to a webserver I am running through my home automation platform – Home Assistant. Details here -> https://home-assistant.io/components/sensor.torque

When I enter my web server URL and press “Test Settings”, Torque returns, “No Problems Found” However, the uploads are hanging and not uploading to the web server. It throws a “still uploading – 100+ log entries left…” message at shutdown.

I am able to upload to the following HTTP and HTTPS web servers without issue.

https://torque.ip.v6.me.uk/torque.php
http://ian-hawkins.com/torque.php

Other Home Assistant users confirm the service works with HTTP so my guess is this is an encryption issue and certificates are not being passed.

Can you confirm Torque’s compatibility with SSL/TLS certificates? Best I can tell the HTTPS web server above that I can upload to is using the same types of certificates as my webserver.

Do you have any ideas to let me get this up and running?

BTW, just a plug for any Torque users out there. Home Assistant is a banging home automation platform that lets you tie any device in your home to Torque sensor values (or anything else really). Check it out!

piemmm
Administrator
Posts: 6629
Post Re: Cannot Upload to Webserver Using HTTPS
on: March 15, 2016 (GMT)

That’s quite cool about the home assistant – hadn’t seen it!

At the moment https isn’t supported (though that is changing soon, reasons described below)

The reason it’s not currently supported is in part due to the session setup cost to send a single set of values. It’s not too efficient. Sending via encrypted UDP would be better, though you couldn’t easily guarantee the message reception without additional logic to do the retries. Keeping the session open doesn’t usually work on mobile when you’re in a vehicle as it’s frequently interrupted, and when you’re logging at 100ms intervals, can be problematic

brusc
Member
Posts: 2
Post Re: Cannot Upload to Webserver Using HTTPS
on: March 15, 2016 (GMT)

Thanks for the quick reply. I appreciate the info! That’s interesting to hear. I haven’t had any issue uploading to https://torque.ip.v6.me.uk/torque.php, but I’m not really savy enough to understand why one SSL encryption works and the other dosesn’t.

Are you saying that you plan on supporting more encryption options in the future? Even if the polling frequency was >=5 seconds, I think it would serve my purposes fine in Home Assistant. I’m really more interested in tracking things like remaining fuel and approximate location.

Your app + ODB2 dongle + home assistant gives you a very powerful automation device. Basically, a cheaper and way more powerful Automatic -> https://www.automatic.com/ I would be stoked to get Torque and Home Assistant working together.

Looking forward, how would you drive development for the integration of Home Assistant and Torque?

piemmm
Administrator
Posts: 6629
Post Re: Cannot Upload to Webserver Using HTTPS
on: April 12, 2016 (GMT)

Hi!

Cool – What kind of things would you see it doing with home assistant (to get an idea of what’d be useful)

And yes to the enc options, just need to work out what’s “quick and light” in terms of getting the data off (whilst also being secure). https is possibly not a brilliant option so may have to use another method

tzfardaya
Member
Posts: 30
Post Re: Cannot Upload to Webserver Using HTTPS
on: April 13, 2016 (GMT)

I haven’t looked/dealt with home assistant, but even having ifttt hooks into torque could be useful.

Use various pid values as triggers, if the cel lights, etc…

(I can see using ifttt change the current lighting if a family vehicle throws a cel, or if the fuel drops below a certain level.. Sort of an indirect way to track family members vehicle states… If the vehicle exceeds a predefined speed, trigger another event.. )

I’ll be looking at home assistant right away… Wonder how it compares to openhab.

tylercrumpton
Member
Posts: 1
Post Re: Cannot Upload to Webserver Using HTTPS
on: December 21, 2016 (GMT)

Has there been any movement on this? I also came across this issue when trying to upload to the Home Assistant Torque component over HTTPS.

I’m also looking for slow data like fuel level, location, CEL, MPG, etc, so I’m okay with the hit to performance that the TLS transaction incurs, if it were an option.

krsandvik
Member
Posts: 1
Post Re: Cannot Upload to Webserver Using HTTPS
on: February 15, 2018 (GMT)

Any update on supporting HTTPS with home assistant?

Pages: [1]
WP-Forum by: Fredrik Fahlstad, Version: 2.4
Page loaded in: 0.028 seconds.

  Follow me on twitter