Long time no see man. Glad you’re doing ok. Thank you for the script btw.
I figured out my issue. I was putting “bearer” instead of “Bearer”. I never felt so dumb in my life when I realized what I had done 🤣
I kept getting this error http post failure at block 1359 javax.net.ssl.sslhandshakeexception: connection closed by peer I changed to a newer android phone and got rid of the sslhandshake issue but now I am getting owntracks post failure <@1303: Shell command 10-13 08:23:50.827 I 218@1553: Failure catch 10-13 08:23:50.831 I 218@1548: Location get 10-13 08:23:50.837 I 218@1549: Expression true? 10-13 08:23:50.838 I 218@1569: Variable set 10-13 08:23:50.838 I 218@1560: Atomic store 10-13 08:23:50.850 I 218@1561: Variable set 10-13 08:23:50.851 I 218@1562: Atomic store 10-13 08:23:50.869 I 218@1602: Atomic store 10-13 08:23:50.885 I 218@1603: Atomic store 10-13 08:23:50.899 I 218@1604: Variable… Read more »
You are getting a 401 response from your home assistant. Most likely you have an error in your token. I would check that first in your home assistant setup and your script settings. The log will show ‘rest post success’ when messages are correctly accepted.
Connor
3 years ago
?How do I re enter the details in prompts at the start?
A good way to debug in automate is to use the ‘toast’ block. Link it to the bottom of block 1359 as an example and add the output variables that can be found in block 1359. This should help you understand whether your message is getting through and the content of the message.
for example in block 1359 i have data in my mqtt i have values
inside of /owntracks/homeassistant/”device” but in /devices/”namedevice”/torque is empty the block 1379 is the block that i have to debug?
in /devices/”namedevice”/ ihave data as the time, “occupants” “speed”.. but inside “torque” nothing
Have you also checked your Torque settings. Rotate log files should be disabled
Pedro Joaquín
3 years ago
Hello Robert,
With the new update of Torque, the logfiles are placed in a different path, so, your scripts fails. Please could you check if you have to change the script to be sure that path of the log is the correct one?
Thanks for the feedback. See below. The Torque app was updated recently which meant that my ‘car telemetry script’ couldn’t find log file data. The author of Torque app has issued another update which makes log data accessable again. I have introduced a new automate script which provides more consistensy and guidance in setup, as people often get stuck on the same issue’s. This is version 13 of the script and is available in the automate community space. I’m also working on a version over Xmas which should allow a user to select the file location of the config file… Read more »
I think I messed something up in the script in automate, is there any way to start it over?
Download a new version and delete your config file in the / torquelogs folder.
Long time no see man. Glad you’re doing ok. Thank you for the script btw.
I figured out my issue. I was putting “bearer” instead of “Bearer”. I never felt so dumb in my life when I realized what I had done 🤣
Easily done by anyone. 😄
I kept getting this error http post failure at block 1359 javax.net.ssl.sslhandshakeexception: connection closed by peer I changed to a newer android phone and got rid of the sslhandshake issue but now I am getting owntracks post failure <@1303: Shell command 10-13 08:23:50.827 I 218@1553: Failure catch 10-13 08:23:50.831 I 218@1548: Location get 10-13 08:23:50.837 I 218@1549: Expression true? 10-13 08:23:50.838 I 218@1569: Variable set 10-13 08:23:50.838 I 218@1560: Atomic store 10-13 08:23:50.850 I 218@1561: Variable set 10-13 08:23:50.851 I 218@1562: Atomic store 10-13 08:23:50.869 I 218@1602: Atomic store 10-13 08:23:50.885 I 218@1603: Atomic store 10-13 08:23:50.899 I 218@1604: Variable… Read more »
You are getting a 401 response from your home assistant. Most likely you have an error in your token. I would check that first in your home assistant setup and your script settings. The log will show ‘rest post success’ when messages are correctly accepted.
?How do I re enter the details in prompts at the start?
Just type over whateve is already there or leave if it is appropriate.
how can i debug in automate? i see payload in my mqtt but empty.
Thanks!
A good way to debug in automate is to use the ‘toast’ block. Link it to the bottom of block 1359 as an example and add the output variables that can be found in block 1359. This should help you understand whether your message is getting through and the content of the message.
Thank you!, i´ll try because i think that is a good application but i cannot use :(. i´ll let you know!
for example in block 1359 i have data in my mqtt i have values
inside of /owntracks/homeassistant/”device” but in /devices/”namedevice”/torque is empty the block 1379 is the block that i have to debug?
in /devices/”namedevice”/ ihave data as the time, “occupants” “speed”.. but inside “torque” nothing
Take a look at your output from block 1196
Have you also checked your Torque settings. Rotate log files should be disabled
Hello Robert,
With the new update of Torque, the logfiles are placed in a different path, so, your scripts fails. Please could you check if you have to change the script to be sure that path of the log is the correct one?
Thanks for the feedback. See below. The Torque app was updated recently which meant that my ‘car telemetry script’ couldn’t find log file data. The author of Torque app has issued another update which makes log data accessable again. I have introduced a new automate script which provides more consistensy and guidance in setup, as people often get stuck on the same issue’s. This is version 13 of the script and is available in the automate community space. I’m also working on a version over Xmas which should allow a user to select the file location of the config file… Read more »