Hi!

Thanks for your answers.

I will try to get tk's option to work first.

But there are some questions!
I need to get the database to be setup as intended first before I try to get 
the settings in weewx right.

Must the new database have datetime, unUnits and interval fields? I started 
with fields timestamp and temp and those worked but they was not in epoch. Now 
I got it to log in epoch time format ( after changing datetime('now', 
'localtime' to strftime('%s','now', 'localtime'); but when I create a new 
database with those three fields (datetime, unUnits,interval and temp)  it 
doesn't log anything. I will attach the script I'm using (monitor.py). I've got 
the datebase to populate when only using fields datetime and temp.
How schould I setup the database to work with weewx?
I  did setup the database like this:

Table: temps

Fields:
datetime INTEGER unique not null primary
unUnits INTEGER not null
interval INTERGER not null
temp NUMRIC

And it don't write to it.

Only when I setup like this:

Table : temps

Fields:
datetime INTERGER unique not null primary
temp NUMRIC


Here I found the monitor.py script I use.
I've also added "import datetime"


Haven't worked with database before so there's much trail and error! 

Thanks /Mikael

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ce2285c2-5dea-4a5d-8e4f-a378fae53ac0%40googlegroups.com.

Reply via email to