Installed sqlitebrowser. Opened weewx.sdb and did see records had been created. So, why does it not write to "weewx/public_html?"
Michael H Grossie [email protected] On Mon, Jul 13, 2020 at 12:30 PM Michael Grossie <[email protected]> wrote: > After reloading cheetah, I rebooted, started weewx and apache2. I opened a > browser and went to http://localhost/weewx (as directed in the User > Guide) and received the 404 page not found error. > > I then ran "sudo /etc/init.d/weewx status -l" and received - > > > > > > > > > > > > > > > > > > > > > *pi@raspberrypi:/home/weewx $ sudo /etc/init.d/weewx status -l● > weewx.service - LSB: weewx weather system Loaded: loaded > (/etc/init.d/weewx; generated; vendor preset: enabled) Active: active > (running) since Mon 2020-07-13 12:03:01 CDT; 18min ago Docs: > man:systemd-sysv-generator(8) Process: 281 ExecStart=/etc/init.d/weewx > start (code=exited, status=0/SUCCESS) Tasks: 2 (limit: 4915) CGroup: > /system.slice/weewx.service └─497 /usr/bin/python2 > /home/weewx/bin/weewxd --daemon --pidfile=/var/run/weewx.pid > /home/weewx/weewx.confJul 13 12:15:16 raspberrypi weewxd[497]: weewx[497] > INFO weewx.manager: Added record 2020-07-13 12:15:00 CDT (1594660500) to > database 'weewx.sdb'Jul 13 12:15:16 raspberrypi weewxd[497]: weewx[497] > INFO weewx.manager: Added record 2020-07-13 12:15:00 CDT (1594660500) to > daily summary …weewx.sdb'Jul 13 12:15:21 raspberrypi weewxd[497]: > weewx[497] INFO weewx.cheetahgenerator: Generated 8 files for report > SeasonsReport in 3.39 secondsJul 13 12:15:25 raspberrypi weewxd[497]: > weewx[497] INFO weewx.imagegenerator: Generated 15 images for report > SeasonsReport in 3.65 secondsJul 13 12:15:25 raspberrypi weewxd[497]: > weewx[497] INFO weewx.reportengine: Copied 0 files to > /home/weewx/public_htmlJul 13 12:20:16 raspberrypi weewxd[497]: weewx[497] > INFO weewx.manager: Added record 2020-07-13 12:20:00 CDT (1594660800) to > database 'weewx.sdb'Jul 13 12:20:16 raspberrypi weewxd[497]: weewx[497] > INFO weewx.manager: Added record 2020-07-13 12:20:00 CDT (1594660800) to > daily summary …weewx.sdb'Jul 13 12:20:21 raspberrypi weewxd[497]: > weewx[497] INFO weewx.cheetahgenerator: Generated 8 files for report > SeasonsReport in 3.79 secondsJul 13 12:20:34 raspberrypi weewxd[497]: > weewx[497] INFO weewx.imagegenerator: Generated 30 images for report > SeasonsReport in 12.33 secondsJul 13 12:20:34 raspberrypi weewxd[497]: > weewx[497] INFO weewx.reportengine: Copied 0 files to > /home/weewx/public_htmlHint: Some lines were ellipsized, use -l to show in > full.* > > Now I see that records were added and reports generated, but nothing > transferred to /home/weewx/public_html > I am still missing something - I don't know if I have a program installed > to view the contents of weewx.sdb > Michael H Grossie > [email protected] > > > On Mon, Jul 13, 2020 at 11:53 AM Michael Grossie <[email protected]> > wrote: > >> In trying to find folders and files are at, they are all in the proper >> places (based on the list in the User Guide) - I ran >> "sudo /etc/init.d/weewx status -l" from the /home/weewx directory. I >> received the following - >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> *pi@raspberrypi:/home/weewx $ sudo /etc/init.d/weewx status -ls● >> weewx.service - LSB: weewx weather system Loaded: loaded >> (/etc/init.d/weewx; generated; vendor preset: enabled) Active: active >> (running) since Mon 2020-07-13 11:10:24 CDT; 28min ago Docs: >> man:systemd-sysv-generator(8) Process: 281 ExecStart=/etc/init.d/weewx >> start (code=exited, status=0/SUCCESS) Tasks: 2 (limit: 4915) CGroup: >> /system.slice/weewx.service └─558 /usr/bin/python2 >> /home/weewx/bin/weewxd --daemon --pidfile=/var/run/weewx.pid >> /home/weewx/weewx.confJul 13 11:35:18 raspberrypi weewxd[558]: weewx[558] >> ERROR weewx.reportengine: **** File >> "/home/weewx/bin/weewx/reporteng…0, in runJul 13 11:35:18 raspberrypi >> weewxd[558]: weewx[558] ERROR weewx.reportengine: **** obj = >> weeutil.weeutil.get_object(generator)(Jul 13 11:35:18 raspberrypi >> weewxd[558]: weewx[558] ERROR weewx.reportengine: **** File >> "/home/weewx/bin/weeutil/weeutil…et_objectJul 13 11:35:18 raspberrypi >> weewxd[558]: weewx[558] ERROR weewx.reportengine: **** mod = >> __import__(module)Jul 13 11:35:18 raspberrypi weewxd[558]: weewx[558] ERROR >> weewx.reportengine: **** File "/home/weewx/bin/weewx/cheetahge… >> <module>Jul 13 11:35:18 raspberrypi weewxd[558]: weewx[558] ERROR >> weewx.reportengine: **** import Cheetah.FiltersJul 13 11:35:18 >> raspberrypi weewxd[558]: weewx[558] ERROR weewx.reportengine: **** >> ImportError: No module named Cheetah.FiltersJul 13 11:35:18 raspberrypi >> weewxd[558]: weewx[558] ERROR weewx.reportengine: **** Generator >> ignoredJul 13 11:35:20 raspberrypi weewxd[558]: weewx[558] INFO >> weewx.imagegenerator: Generated 15 images for report SeasonsReport in 1.96 >> secondsJul 13 11:35:20 raspberrypi weewxd[558]: weewx[558] INFO >> weewx.reportengine: Copied 0 files to /home/weewx/public_htmlHint: Some >> lines were ellipsized, use -l to show in full.* >> >> Looking in /home/weewx/bin/weewx I can see the files (reportengine, >> cheetahgenerator). I will reload Cheetah3 and see what happens. >> >> Michael H Grossie >> [email protected] >> >> >> On Mon, Jul 13, 2020 at 9:16 AM Andrew Milner < >> [email protected]> wrote: >> >>> see documentation >>> http://weewx.com/docs/usersguide.htm#Where_to_find_things >>> >>> >>> >>> On Monday, 13 July 2020 17:15:31 UTC+3, Andrew Milner wrote: >>>> >>>> if you used setup.py the .sdb file will be in /home/weewx/archive and >>>> should contain all your simulator data. It may be useful to edit >>>> weewx.conf and set debug=1 to get more detailed logging - remember to set >>>> it back to 0 when you have finished. >>>> >>>> >>>> >>>> On Monday, 13 July 2020 16:58:38 UTC+3, Michael Grossie wrote: >>>>> >>>>> Andrew, >>>>> >>>>> Thanks for the response - That answered my question regarding the >>>>> Simulator Station. I now need to find out where the data it is generating >>>>> is going. >>>>> >>>>> >>>>> Michael H Grossie >>>>> [email protected] >>>>> >>>>> >>>>> On Mon, Jul 13, 2020 at 12:18 AM Andrew Milner <[email protected]> >>>>> wrote: >>>>> >>>>>> setting station type to simulator effectively creates a station which >>>>>> pretends to create data and gives the data to weewx. weewx then does >>>>>> everything it should do with the 'received' data including generate >>>>>> reports. it will also store the dta in the database, so when you have >>>>>> finished using simulator you will need to clear out the simulation data >>>>>> from the database - usually just deleting the database file is >>>>>> sufficient. >>>>>> >>>>>> >>>>>> On Monday, 13 July 2020 01:01:25 UTC+3, Michael Grossie wrote: >>>>>>> >>>>>>> Andre, >>>>>>> Thanks for the response - in the [StdReport] section of the >>>>>>> weewx.conf, it shows, "where generated reports should go, relative to >>>>>>> WEEWX_ROOT HTML_ROOT= public_HTML" >>>>>>> >>>>>>> Since the station is set to Simulation, will there be any reports >>>>>>> generated? >>>>>>> >>>>>>> TIA >>>>>>> >>>>>>> >>>>>>> Michael H Grossie >>>>>>> [email protected] >>>>>>> >>>>>>> >>>>>>> On Sun, Jul 12, 2020 at 2:41 PM Andre <[email protected]> wrote: >>>>>>> >>>>>>>> First, take a look to your weewx.conf >>>>>>>> Section [StdReport] >>>>>>>> There is HTML_ROOT = /path/name/path >>>>>>>> >>>>>>>> If you have only have one website you can point to your default >>>>>>>> Apache2 path or you can edit your >>>>>>>> /etc/apache2/sites-available/000-default.conf >>>>>>>> After editing restart Apache2 with sudo /etc/init.d/apache2 restart >>>>>>>> >>>>>>>> >>>>>>>> Am Sonntag, 12. Juli 2020 20:59:03 UTC+2 schrieb Michael Grossie: >>>>>>>>> >>>>>>>>> Answered one of my questions - I changed the Weather Station to >>>>>>>>> Simulator and the weewx/public_HTML folder was created and populated. >>>>>>>>> However running http://localhost/weewx >>>>>>>>> <http://www.google.com/url?q=http%3A%2F%2Flocalhost%2Fweewx&sa=D&sntz=1&usg=AFQjCNHBxcaES0Yn82J1BxYpDZCPLsAvGg> >>>>>>>>> yields the Page Not Found error. >>>>>>>>> >>>>>>>>> >>>>>>>>> Michael H Grossie >>>>>>>>> [email protected] >>>>>>>>> >>>>>>>>> >>>>>>>>> On Sun, Jul 12, 2020 at 12:18 PM Michael Grossie < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> This is a very old thread - but it relates to my question - with >>>>>>>>>> the exception of Ubuntu >>>>>>>>>> Raspberry Pi 2 B >>>>>>>>>> Raspbian Stretch >>>>>>>>>> Station: Argent WS1 >>>>>>>>>> >>>>>>>>>> I have got Apache2 installed, followed the setup and completed >>>>>>>>>> the Apache configuration snippet. I have checked and the various >>>>>>>>>> files and >>>>>>>>>> directories are in place, however I do not find the >>>>>>>>>> /home/weewx/public_html >>>>>>>>>> file. >>>>>>>>>> Since I am not connected to active weather instruments at this >>>>>>>>>> time, could it be that this file will not be created until the weewx >>>>>>>>>> program receives data - >>>>>>>>>> the http://localhost/weewx gives me a 404 page not found error. >>>>>>>>>> >>>>>>>>>> TIA >>>>>>>>>> >>>>>>>>>> On Friday, September 16, 2016 at 2:28:31 PM UTC-5 >>>>>>>>>> [email protected] wrote: >>>>>>>>>> >>>>>>>>>>> How did you guys configure Apache? >>>>>>>>>>> Apache2 for instance is able to serve multiple/different sites >>>>>>>>>>> from different directories based on the requesting url. >>>>>>>>>>> >>>>>>>>>>> I created a virtualhost in Apache based on the url, which tells >>>>>>>>>>> Apache to serve the weewx pages from the directory where they are >>>>>>>>>>> located. >>>>>>>>>>> You could read this: >>>>>>>>>>> https://help.ubuntu.com/lts/serverguide/httpd.html >>>>>>>>>>> >>>>>>>>>>> i placed >>>>>>>>>>> >>>>>>>>>>> DocumentRoot /var/www/weewx >>>>>>>>>>> >>>>>>>>>>> In the configuration file for the site, and this works >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>> You received this message because you are subscribed to a topic >>>>>>>>>> in the Google Groups "weewx-user" group. >>>>>>>>>> To unsubscribe from this topic, visit >>>>>>>>>> https://groups.google.com/d/topic/weewx-user/kzXjvLjWI-k/unsubscribe >>>>>>>>>> . >>>>>>>>>> To unsubscribe from this group and all its topics, send an email >>>>>>>>>> to [email protected]. >>>>>>>>>> To view this discussion on the web visit >>>>>>>>>> https://groups.google.com/d/msgid/weewx-user/7ff66258-27e1-4418-83c2-11ed49e5c77an%40googlegroups.com >>>>>>>>>> <https://groups.google.com/d/msgid/weewx-user/7ff66258-27e1-4418-83c2-11ed49e5c77an%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>>>> . >>>>>>>>>> >>>>>>>>> -- >>>>>>>> You received this message because you are subscribed to a topic in >>>>>>>> the Google Groups "weewx-user" group. >>>>>>>> To unsubscribe from this topic, visit >>>>>>>> https://groups.google.com/d/topic/weewx-user/kzXjvLjWI-k/unsubscribe >>>>>>>> . >>>>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>>>> [email protected]. >>>>>>>> To view this discussion on the web visit >>>>>>>> https://groups.google.com/d/msgid/weewx-user/0a0eeb25-e5b4-4767-a254-92168ff6ed72o%40googlegroups.com >>>>>>>> <https://groups.google.com/d/msgid/weewx-user/0a0eeb25-e5b4-4767-a254-92168ff6ed72o%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>> . >>>>>>>> >>>>>>> -- >>>>>> You received this message because you are subscribed to a topic in >>>>>> the Google Groups "weewx-user" group. >>>>>> To unsubscribe from this topic, visit >>>>>> https://groups.google.com/d/topic/weewx-user/kzXjvLjWI-k/unsubscribe. >>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>> [email protected]. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/weewx-user/1b232c4f-e536-4ab5-9952-ea862c0576cfo%40googlegroups.com >>>>>> <https://groups.google.com/d/msgid/weewx-user/1b232c4f-e536-4ab5-9952-ea862c0576cfo%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> >>>>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "weewx-user" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/weewx-user/kzXjvLjWI-k/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/cff77065-309c-454d-aab6-2096c20784bbo%40googlegroups.com >>> <https://groups.google.com/d/msgid/weewx-user/cff77065-309c-454d-aab6-2096c20784bbo%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- 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/CAJBcQpXQ57utwWpQLmJJygcgxiQkPS_sVGJcKr27GaUnNNt1DA%40mail.gmail.com.
