SQlite not logging much

Posted on
Mon Jun 16, 2008 2:34 pm
bob offline
User avatar
Posts: 500
Joined: Jun 14, 2006

(No subject)

Matt,

I'm at work so I want to do this over an ssh connection, can I stop and start the server from terminal? If so what are the commands?

thanks,

bob

Posted on
Mon Jun 16, 2008 10:51 pm
bob offline
User avatar
Posts: 500
Joined: Jun 14, 2006

(No subject)

Matt,

That seems to of done it but the times are not local which makes it confusing to compare entries with the local time. How can I set the table to use local time? I see someone else asked you this but I don't understand your reply.

regards,

bob

Posted on
Tue Jun 17, 2008 2:33 pm
bob offline
User avatar
Posts: 500
Joined: Jun 14, 2006

(No subject)

Matt,

OK I see how to convert UTC to local times using this query but it only shows the ts column. How can I select all and convert the time in the same Query

SELECT ALL datetime(ts,'localtime') from variable_history

regards,

bob

Posted on
Tue Jun 17, 2008 2:47 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

(No subject)

Hi Bob,

I'm not following your question. If you want to select more than the "ts" column, then you need to add the columns you want to select to your query.

Regards,
Matt

Posted on
Tue Jun 17, 2008 3:18 pm
bob offline
User avatar
Posts: 500
Joined: Jun 14, 2006

(No subject)

Matt,

I don't know much about SQlite yet and I can't figure out how to select more than the ts column. I want to show all column with the ts in local time.

thanks,

bob

Posted on
Tue Jun 17, 2008 3:22 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

(No subject)

You have to put in the query the specific table columns you want to select like this:
Code: Select all
SELECT datetime(ts,'localtime'), var_name, var_value from variable_history

Regards,
Matt

Who is online

Users browsing this forum: No registered users and 7 guests