but the reporting is not quite at full speed - http://www.byteinsight.net/weather. If I force a report to be generated:
and the log files show:
I'm using sqlite because I cannot get mysqld to work on the synology box (Luc - I think you might have solved this problem?)
If anyone has any ideas I would be so grateful. It's been a really good couple of days getting the weather station this far.
Thanks
Chris
--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/qAF7Fn7D3h8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/qAF7Fn7D3h8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
bash-3.2# gcc --version
gcc (GCC) 4.2.1
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bash-3.2#
I think the problem is that this version of gcc does not come with ccache or at least we cannot find it. Having looked around a lot of people seem to be suffering with this line
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
sqlite> select datetime(max(dateTime), 'unixepoch', 'localtime') from archive;
2013-12-29 10:00:00
I had to try the next step slightly differently to how you suggested but...
sqlite> select max(dateTime) from archive;
1388311200
sqlite> select barometer, outTemp from archive where dateTime = 1388311200;
|6.17142857142857
There are some fields missing such as wind. The anemometer is broken and if I can get this working I'll look at buying a replacement or maybe upgrading but its not worth the investment without a suitable software solution.
sqlite> select * from archive where dateTime = 1388311200;
1388311200|16|60||1008.06326530612|1011.3580540946|20.4397959183674|6.17142857142857|46.1326530612245|87.8367346938775|||||0.0|0.0|4.26979591836735|-18.9|6.17142857142857|||||||||||||||||||||||||||||||||
So there is something there and interestingly the Raspberry Pi version is working 100% and has produced correct reports http://weather.byteinsight.co.uk. I moved the databases across to the Synology box and ran ./bin/wee_reports weewx.conf but it still gave the same missing current data.
Interestingly the raspberry pi did complain about None types not being ints but seemed to recover from it.
Attached is the messages log file from the Synology box.
Thanks again for your help.
Chris
Assuming that your problem is nulls in the database and your interval is 1 minute, you can repair existing data by doing this:
sqlite3 /home/weewx/archive/weewx.sdb
update archive set interval=1 where interval=NULL;
I'll try to replicate the null intervals when i get access to my dev system again.
unfortunately i borked my dev system by trying to install lm-sensors, and there is no way for me to do a remote reboot. i'll be back in the us soon to fix it.
m
be sure to set record_generation=software in weewx.conf. Until we sort the interval problem, that is a safer way to run the ws23xx stations.
tom,
it might be time to put a 2.5.1 out, even though 2.6 is lurking on the horizon. There is a bugfix on the trunk that makes at least part of chris' problem go away, and it would get the ws23xx and te923 drivers into an actual release. Let me know how you want to play this...
m
m
[WS23xx]
port = /dev/ttyUSB0
driver = weewx.drivers.ws23xx
record_generation=software
--
You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/qAF7Fn7D3h8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
Hi M, TKThank you for the ideas/advice. This morning I made the changes suggested by M to the configuration[WS23xx]
port = /dev/ttyUSB0
driver = weewx.drivers.ws23xx
record_generation=software
and deleted both the archive and public_html folders so forcing it so start over. Both folders have been recreated and this is the net result http://www.byteinsight.net/weather/I had left the weather station running overnight on the raspberry pi and by contrast this is what I get http://weather.byteinsight.co.uk/ (I'm still working on the template) so I'm not sure it is a driver issue because the same set up is working on another machine.
/usr/local/lib/python2.7/site-packages/Cheetah-2.4.4-py2.7-linux-x86_64.egg/Cheetah/Compiler.py:1509: UserWarning:
You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with the compiled C version of NameMapper.
"\nYou don't have the C version of NameMapper installed! "
and this is the dump from the logs
bash-3.2# tail -f /var/log/messages
Dec 30 18:50:47 mole wee_reports[11405]: **** Generator terminated...
Dec 30 18:52:47 mole wee_reports[11418]: cheetahgenerator: generate failed with exception '<class 'Cheetah.NameMapper.NotFound'>'
Dec 30 18:52:47 mole wee_reports[11418]: cheetahgenerator: **** ignoring template /volume1/homes/weewx/system/skins/Byteweather/RSS/weewx_rss.xml.tmpl
Dec 30 18:52:47 mole wee_reports[11418]: cheetahgenerator: **** reason: cannot find 'dateTime'
Dec 30 18:52:47 mole wee_reports[11418]: cheetahgenerator: generate failed with exception '<class 'Cheetah.NameMapper.NotFound'>'
Dec 30 18:52:47 mole wee_reports[11418]: cheetahgenerator: **** ignoring template /volume1/homes/weewx/system/skins/Byteweather/mobile.html.tmpl
Dec 30 18:52:47 mole wee_reports[11418]: cheetahgenerator: **** reason: cannot find 'outTemp'
Dec 30 18:52:47 mole wee_reports[11418]: cheetahgenerator: generate failed with exception '<class 'Cheetah.NameMapper.NotFound'>'
Dec 30 18:52:47 mole wee_reports[11418]: cheetahgenerator: **** ignoring template /volume1/homes/weewx/system/skins/Byteweather/smartphone/index.html.tmpl
Dec 30 18:52:47 mole wee_reports[11418]: cheetahgenerator: **** reason: cannot find 'dateTime'
Thanks for all your effort trying to solve this problem with me.
Regards
Chris
--
--
{'barometer': 1005.6999142277193, 'windchill': -18.9, 'dewpoint': 2.82, 'pressure': 1002.0, 'outHumidity': 86.0, 'altimeter': 1005.2772719424348, 'heatindex': 5.0, 'rain': None, 'dateTime': 1388435251, 'windDir': None, 'outTemp': 5.0, 'windSpeed': None, 'inHumidity': 52.0, 'inTemp': 23.6, 'windGust': None, 'rainTotal': 79.764, 'rainRate': 0.0, 'usUnits': 16, 'windGustDir': None}
which would agree with this.
Any recommendations on a new weather station if one was to buy one. How easy is it to cope with the Davis Vue if you don't buy the weatherlink adapter?
Thanks again
Chris
Any recommendations on a new weather station if one was to buy one. How easy is it to cope with the Davis Vue if you don't buy the weatherlink adapter?
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
Jan 1 20:12:59 weewx[19576]: cheetahgenerator: generate failed with exception '<class 'Cheetah.NameMapper.NotFound'>'
Jan 1 20:12:59 weewx[19576]: cheetahgenerator: **** ignoring template /volume1/homes/weewx/system/skins/Standard/wxtest.html.tmpl
Jan 1 20:12:59 weewx[19576]: cheetahgenerator: **** reason: cannot find 'outTemp'
Jan 1 20:13:01 weewx[19576]: cheetahgenerator: generate failed with exception '<class 'Cheetah.NameMapper.NotFound'>'
Jan 1 20:13:01 weewx[19576]: cheetahgenerator: **** ignoring template /volume1/homes/weewx/system/skins/Standard/RSS/weewx_rss.xml.tmpl
Jan 1 20:13:01 weewx[19576]: cheetahgenerator: **** reason: cannot find 'dateTime'
Jan 1 20:13:01 weewx[19576]: cheetahgenerator: generate failed with exception '<class 'Cheetah.NameMapper.NotFound'>'
Jan 1 20:13:01 weewx[19576]: cheetahgenerator: **** ignoring template /volume1/homes/weewx/system/skins/Standard/mobile.html.tmpl
Jan 1 20:13:01 weewx[19576]: cheetahgenerator: **** reason: cannot find 'outTemp'
Jan 1 20:13:01 weewx[19576]: cheetahgenerator: generate failed with exception '<class 'Cheetah.NameMapper.NotFound'>'
Jan 1 20:13:01 weewx[19576]: cheetahgenerator: **** ignoring template /volume1/homes/weewx/system/skins/Standard/smartphone/index.html.tmpl
Jan 1 20:13:01 weewx[19576]: cheetahgenerator: **** reason: cannot find 'dateTime'
Jan 1 20:13:08 weewx[19576]: cheetahgenerator: generate failed with exception '<class 'Cheetah.NameMapper.NotFound'>'
Jan 1 20:13:08 weewx[19576]: cheetahgenerator: **** ignoring template /volume1/homes/weewx/system/skins/Standard/wxtest.html.tmpl
Jan 1 20:13:08 weewx[19576]: cheetahgenerator: **** reason: cannot find 'outTemp'
Jan 1 20:13:10 weewx[19576]: cheetahgenerator: generate failed with exception '<class 'Cheetah.NameMapper.NotFound'>'
--
--
You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/qAF7Fn7D3h8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/qAF7Fn7D3h8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
<?phpclass MyDB extends SQLite3{function __construct(){$this->open('/volume1/homes/weewx/system/archive/weewx.sdb');}}$datab = new MyDB();if(!$datab){echo $datab->lastErrorMsg();}$sql ="SELECT * from archive where oid = (select max(oid) from archive);";$ret = $datab->query($sql);$row = $ret->fetchArray(SQLITE3_ASSOC);$datab->close();?>
--
--
You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/qAF7Fn7D3h8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
--
--
You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/qAF7Fn7D3h8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
I'm using sqlite because I cannot get mysqld to work on the synology box (Luc - I think you might have solved this problem?)
Installation of weewx-2.5.1 with ws28xx driver on ds-luc4 (ds211- Marvel Kirkwood mv6282 ARM)
Reset ds-luc4 (2x reset button)
Apply latest patch (3810.pat)
Select: DHCP
Select: TS Santiago
Control panel - Webservices - Enable Webstation - Enable MySQL
Control panel - Terminal - Enable SSH service - Apply
Create User - Luc
HTTP service Port: change to: 1450 (each of my DiskStations has it's own port)
Package Center – Install phpMyAdmin
Set pasword for user root (localhost)
Note: Don't install any python package
Putty - ssh connection with disk station
First visit shows Warning - Potential Security Breach - Yes
Login as : root - root@[ip-address] password: same pasword as admin
BusyBox v1.16.1 (2013-11-06 05:31:51 CST) built-in shell (ash)
First time: create directories for weewx
mkdir /home
mkdir /home/weewx
First time: install ipkg
cd /volume1/@tmp
rm -rf /volume1/@optware
rm -rf /usr/lib/ipkg
wget http:[the right bootstrap file for your CPU]
sh [the right bootstrap file for your CPU]
Note: most of the times a reboot isn't needed
ipkg update
ipkg upgrade
ipkg install py26-setuptools
ipkg install py26-configobj
ipkg install py26-cheetah
ipkg install python26 Note: is installed at first request (py26-setuptools)
ipkg install mysql
ipkg install py26-mysql
Note: if needed, the root passwords of
MySQL can be set with:
cd /opt ; /opt/bin/mysqld_safe &
/opt/bin/mysqladmin
-u root password 'password-for-root'
/opt/bin/mysqladmin
-u root -h ds-luc4 password 'password-for-root'
cd /volume1/homes/download (storage for downloads; accesible from a Windows share)
wget http://downloads.sourceforge.net/project/weewx/weewx-2.5.1.tar.gz
tar -xvf weewx-2.5.1.tar.gz
cd /volume1/homes/download/weewx-2.5.1
copy weewx.conf from an earlier version to weewx-2.5.1 (or modify weewx.conf to your needs)
python2.6 setup.py build
python2.6 setup.py install
cd /home/weewx (the directory of weewx;
note: this directory is lost after a DSM upgrade!)
./bin/wee_config_database weewx.conf
--create-archive
Using configuration file weewx.conf.
Created database 'archive_mysql'
./bin/wee_config_database weewx.conf --create-stats
Using configuration file weewx.conf.
Created database 'stats_mysql'
Note: the USB-serial part is not installed yet; I've got problems with this.
If you can get the C version of Cheetah running, it could well solve your problems. Here's the Cheetah download page.
--
python cheetahtest.py
find /usr/lib/pyth* /usr/local/lib/pyth* -name "Cheetah*" -print
This will show both your original version of Cheetah, as well as, hopefully, your freshly installed version. Once you find it, we'll find a way of making sure it is used.
Version 2.6 of weewx has a workaround for this problem. An alpha version is available, but I don't recommend using it unless you are very experienced. The release version should come out in a week or two.
--