surfrock66 / torque

A set of tools used with the Torque app for Android to store OBD2 data in MySQL, view GPS data from Torque on a map in real time using the Google Maps JavaScript API, plot OBD2 data in time series charts, and export the data to CSV or JSON.
Other
43 stars 24 forks source link

Temperature #25

Closed 5ft24dave closed 6 years ago

5ft24dave commented 6 years ago

Maybe I'm not seeing it, but is there an option to display the temperature data in Degrees F instead of degrees C? Thanks

surfrock66 commented 6 years ago

I see you closed issue 51 on the root repository, did you figure it out?

5ft24dave commented 6 years ago

No, thought that one was for the torque app itself.  Have that one set to Deg F.  Just not the web server.  It shows Deg C and haven't been able to find it

⁣Sent from BlueMail ​

On Mar 24, 2018, 21:57, at 21:57, surfrock66 notifications@github.com wrote:

I see you closed issue 51 on the root repository, did you figure it out?

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/surfrock66/torque/issues/25#issuecomment-375945633

surfrock66 commented 6 years ago

It's a setting you set in "creds.php" in the viewer's root web directory. Something like this (should be the same, but this is from my development branch so I forget if there's a difference). Look for "source is F" and "Use F":

surfrock66@sr66-blade(shell):torquetest$ cat creds.php 
<?php
//echo "<!-- Begin creds.php at ".date("H:i:s", microtime(true))." -->\r\n";

// MySQL Credentials
$db_host = 'localhost';
$db_user = 'REDACTED';     // Enter your MySQL username
$db_pass = 'REDACTED';     // Enter your MySQL password
$db_name = 'REDACTED';
$db_table = 'raw_logs';
$db_keys_table = 'torque_keys';
$db_sessions_table = 'sessions';
$gmapsApiKey = 'REDACTED'; // OPTIONAL: Create a key at https://developers.google.com/maps/documentation/javascript/

// User credentials for Browser login
$auth_user = '';    //Sample: 'torque'
$auth_pass = '';    //Sample: 'open'

//If you want to restrict access to upload_data.php, 
// either enter your torque ID as shown in the torque app, 
// or enter the hashed ID as it can found in the uploaded data.
//The hash is simply MD5(ID).
//Leave empty to allow any torque app to upload data to this server.
$torque_id = 'REDACTED';        //Sample: 123456789012345
$torque_id_hash = 'REDACTED';   //Sample: 58b9b9268acaef64ac6a80b0543357e6
//Just 'settings', could be moved to a config file later.
$source_is_fahrenheit = false;
$use_fahrenheit = true;

$source_is_miles = false;
$use_miles = true;

//$hide_empty_variables = true;
$hide_empty_variables = false;
$show_session_length = true;
//echo "<!-- End creds.php at ".date("H:i:s", microtime(true))." -->\r\n";

?>
5ft24dave commented 6 years ago

Cool, Thank you

On Mon, Mar 26, 2018 at 10:39 PM, surfrock66 notifications@github.com wrote:

It's a setting you set in "creds.php" in the viewer's root web directory. Something like this (should be the same, but this is from my development branch so I forget if there's a difference). Look for "source is F" and "Use F":

`surfrock66@sr66-blade(shell):torquetest$ cat creds.php \r\n"; // MySQL Credentials $db_host = 'localhost'; $db_user = 'REDACTED'; // Enter your MySQL username $db_pass = 'REDACTED'; // Enter your MySQL password $db_name = 'REDACTED'; $db_table = 'raw_logs'; $db_keys_table = 'torque_keys'; $db_sessions_table = 'sessions'; $gmapsApiKey = 'REDACTED'; // OPTIONAL: Create a key at https://developers.google.com/ maps/documentation/javascript/ // User credentials for Browser login $auth_user = ''; //Sample: 'torque' $auth_pass = ''; //Sample: 'open' //If you want to restrict access to upload_data.php, // either enter your torque ID as shown in the torque app, // or enter the hashed ID as it can found in the uploaded data. //The hash is simply MD5(ID). //Leave empty to allow any torque app to upload data to this server. $torque_id = 'REDACTED'; //Sample: 123456789012345 $torque_id_hash = 'REDACTED'; //Sample: 58b9b9268acaef64ac6a80b0543357e6 //Just 'settings', could be moved to a config file later. $source_is_fahrenheit = false; $use_fahrenheit = true; $source_is_miles = false; $use_miles = true; //$hide_empty_variables = true; $hide_empty_variables = false; $show_session_length = true; //echo "\r\n"; ?>

`

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/surfrock66/torque/issues/25#issuecomment-376403341, or mute the thread https://github.com/notifications/unsubscribe-auth/Aj_7UHfiEtYQl8q4szT25AgkaUnSItDpks5tidCjgaJpZM4S50hN .

5ft24dave commented 6 years ago

Cool, works perfect.  Thanknyou

⁣Sent from BlueMail ​

On Mar 26, 2018, 22:39, at 22:39, surfrock66 notifications@github.com wrote:

It's a setting you set in "creds.php" in the viewer's root web directory. Something like this (should be the same, but this is from my development branch so I forget if there's a difference). Look for "source is F" and "Use F":

`surfrock66@sr66-blade(shell):torquetest$ cat creds.php <?php //echo "\r\n";

// MySQL Credentials $db_host = 'localhost'; $db_user = 'REDACTED'; // Enter your MySQL username $db_pass = 'REDACTED'; // Enter your MySQL password $db_name = 'REDACTED'; $db_table = 'raw_logs'; $db_keys_table = 'torque_keys'; $db_sessions_table = 'sessions'; $gmapsApiKey = 'REDACTED'; // OPTIONAL: Create a key at https://developers.google.com/maps/documentation/javascript/

// User credentials for Browser login $auth_user = ''; //Sample: 'torque' $auth_pass = ''; //Sample: 'open'

//If you want to restrict access to upload_data.php, // either enter your torque ID as shown in the torque app, // or enter the hashed ID as it can found in the uploaded data. //The hash is simply MD5(ID). //Leave empty to allow any torque app to upload data to this server. $torque_id = 'REDACTED'; //Sample: 123456789012345 $torque_id_hash = 'REDACTED'; //Sample: 58b9b9268acaef64ac6a80b0543357e6 //Just 'settings', could be moved to a config file later. $source_is_fahrenheit = false; $use_fahrenheit = true;

$source_is_miles = false; $use_miles = true;

//$hide_empty_variables = true; $hide_empty_variables = false; $show_session_length = true; //echo "\r\n";

?> `

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/surfrock66/torque/issues/25#issuecomment-376403341