I've added a tempsensor to another Raspberry that I will place in my "underground storehouse" to keep track of the temperature there.
I got a script to work and add timestamp and tempvalue to a sqlite db.
Now I want to import these values to weewx and post to my weather web page.
The Raspberry in the storehouse is on the same local network.
Is there some way to make this work?
Thanks
Micael
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/rmiy2yjalib.fsf%40s1.lexort.com.
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/719292a5-06f8-404c-bdc2-7fdb3879ae55%40googlegroups.com.
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
https://github.com/Pyplate/rpi_temp_logger/blob/master/monitor.py
Must the new database have datetime, unUnits and interval fields?