Seems like you have to choose between running in 'live' mode with the system 'crashing' multiple times per day or running in 'test' mode whilst trying to find out why it is 'crashing'. If the station hasd a logger, which I believe the 2310 has, then you should be able to retrieve lost data by resetting the database back in time and restarting weewx.
I rarely run weewx off the command line, always using daemon mode, so do not know what effect command line running and monitoring has on the rpi. I'd first try a different power supply and/or use a powered hub. The Rpi is notorious for dodgy power problems - and if you are using the usb port and Ethernet this would be my first change. Dodgy sd cards also cause problems - sandisk 10's I think seem to be the most reliable in the rpi I believe. You could try and switch to using SQLite as an experiment for a couple of days - onboard the rpi - and see if this reduces the 'crashes' - again, after the test you put it all back to your original db in weewx.conf and weewx will catch up from the station so u should not lose any data whilst testing. These are just some things and tests which can be tried. If you come back with testing comments/results - do make sure we know exactly the configuration you have been testing and post the output from wee_debug and the log with your posting together with your comments/questions. The more data we have the easier it is to help. On Thursday, 22 December 2016 03:38:12 UTC+2, Marc Aubry wrote: > Hi > Thanks for your reply > i have mark below in red my answers to your questions... > > >> So let's be clear about this. You are running >> a) A new raspberry pi *YES* >> b) A new install of weewx * YES* >> c) A new weather station which is a WH2310 clone* YES* >> >> Has the rpi run weewx under simulator for any period? * NO* >> Has the weather station run on another system for a period?* NO* >> Has standard weewx, without forecasting and maybe without ftp/rsync run >> for any period??* NO* >> >> What model rpi are you using, which operating system and what kind of >> power supply and SD card? >> > *RPI 2 B+ raspbian Jessie 8 kernel 4.4.34-v7+ power supply is > samsung 5V 2A from smasung galaxy note 3* > >> >> Try and connect a screen and keyboard to the rpi and see if you can get >> any sense from the rpi when weewx appears to freeze - I would be most >> surprised if your problems are caused by weewx itself - far more likely to >> be power, sdcard, os, rpi related ..... >> > it's not going to be easy to connect any monitor or keyboard due to > the physical location of the rpi but i will try. i used rpi for the > headless capability and the small size and use ssh or screen bash under > ssh as console to communicate with the pi. I did try to ssh monitor during > more than 24h and no error message has been printed on the console neither > in the syslog. when the weewx stop the rest of rpi processes seem to work > normally. i can run vnc session and do some python scripting with pygame > remotely (as example becausenot use during normal production day:) > i can easily try a different SD card, a different power supply and a > different RPI board. > i can try the simulator during 24 h because i'm more and more suspecting a > communication problem between the wh2310 and the weewx driver but i'm > reluctant to do that because of the lost of recording data during that test. > . > > >> >> >> >> >> >> On Wednesday, 21 December 2016 13:40:59 UTC+2, Marc Aubry wrote: >> >>> Hi, >>> The weewx is a new install from less than a month, when i set up my new >>> WH2310 weather station. The data before that have been imported in weewx >>> with the weewx import tool from cumulus archive file from a WR200 oregon >>> scientific. The sensor pole of the WRM200 became loose and the sensor have >>> finished in the sea. no one could be salvage i then have purchased a Misol >>> WH2310 clone weather station. which is not compatible with cumulus which >>> bring me to weewx set up on a raspberry :) >>> the weewx have always crashed like that since first installed. Nothing >>> appear in the syslog or on the console. the weewx just stop working. it >>> still appear as runnicg process but no report or any archive are running.... >>> You'l find my old cumulus website at the following : >>> http://web.cubadak-paradisovillage.com/weather/oldsite/ >>> >>> >>> >>> >>> On Wednesday, December 21, 2016 at 5:11:47 PM UTC+7, gjr80 wrote: >>>> >>>> I am wondering what the history is here. Is this a new weewx install or >>>> an upgrade? I see you have data on your web site (nice site by the way) >>>> from 2014, is that from weewx or some other app/source? If from weewx, did >>>> weewx ever operate trouble free? I guess I am wondering what has changed? >>>> >>>> Gary >>>> >>> -- 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]. For more options, visit https://groups.google.com/d/optout.
