Thanks for the information.
I have debug=1 set in the weewx.conf file.
I just ran 'sudo ./bin/wee_reports' and it created and populated the 
public_html directory with image files.

If I manually call "sudo ./bin/weewxd', I start seeing weather station data 
appear in the /var/log/syslog.

I followed the Debian instructions for adding a weewx daemon using the 
init.d commands.
I don't think it worked, because there is no evidence of weewx running.
- not seeing weather station data appearing in /var/log/syslog
- not seeing weewx in the "top" screen
- not seeing a /var/run/weewx.pid file
- no /home/weewx/public_html/index.html file is being created

Now, I guess the mystery is, why isn't weewx running as a daemon?

If I manually call 'sudo /etc/init.d/weewx start', I do not see any entries 
appear in the /var/log/syslog.

Didn't Ubuntu move to using 'service name start/stop' commands?

I can manually start weewx with 'sudo service weewx start' and the 
following appears in the /var/log/syslog:
Apr 24 14:29:21 Ubuntu20-WEEWX systemd[1]: Starting LSB: weewx weather 
system...
Apr 24 14:29:21 Ubuntu20-WEEWX systemd[1]: Started LSB: weewx weather 
system.

And I can manually stop weewx with 'sudo service weewx stop' and the 
following appears in the /var/log/syslog:
Apr 24 14:29:34 Ubuntu20-WEEWX systemd[1]: Stopping LSB: weewx weather 
system...
Apr 24 14:29:34 Ubuntu20-WEEWX systemd[1]: weewx.service: Succeeded.
Apr 24 14:29:34 Ubuntu20-WEEWX systemd[1]: Stopped LSB: weewx weather 
system.

weewx@Ubuntu20-WEEWX:~$ sudo service weewx status
● weewx.service - LSB: weewx weather system
     Loaded: loaded (/etc/init.d/weewx; generated)
     Active: inactive (dead) since Sat 2021-04-24 14:29:34 CDT; 6min ago
       Docs: man:systemd-sysv-generator(8)
    Process: 3737 ExecStart=/etc/init.d/weewx start (code=exited, 
status=0/SUCC>
    Process: 3747 ExecStop=/etc/init.d/weewx stop (code=exited, 
status=0/SUCCES>

Apr 24 14:29:21 Ubuntu20-WEEWX systemd[1]: Starting LSB: weewx weather 
system...
Apr 24 14:29:21 Ubuntu20-WEEWX systemd[1]: Started LSB: weewx weather 
system.
Apr 24 14:29:34 Ubuntu20-WEEWX systemd[1]: Stopping LSB: weewx weather 
system...
Apr 24 14:29:34 Ubuntu20-WEEWX systemd[1]: weewx.service: Succeeded.
Apr 24 14:29:34 Ubuntu20-WEEWX systemd[1]: Stopped LSB: weewx weather 
system.




On Saturday, April 24, 2021 at 1:03:25 PM UTC-5 vince wrote:

> Tested on debian10 (current raspi os) with the Simulator...
>
>    -  you did not need to create /home/weewx, the 'setup.py install' will 
>    handle that for you
>    -  public_html and webpages are not created by the installation 
>    process, they are created and populated when run weewx as a daemon and it 
>    runs its reports the first time
>    -  there 'should' be a /home/weewx/archive/weewx.sdb created for you 
>    when you ran that 'weewxd' command the first time
>
> If you run "sudo ./bin/wee_reports" then it'll create public_html and 
> populate it for you immediately.
>
> Als, if you're debugging a new system, set debug=1 in weewx.conf please, 
> at least initially, so it logs more verbosely.
>
>
> On Saturday, April 24, 2021 at 10:24:14 AM UTC-7 [email protected] 
> wrote:
>
>> I downloaded weewx-4.5.1 source code from github and I've been following 
>> the setup.py method of install into a Ubuntu 20 virtual machine.
>> see:  https://weewx.com/docs/setup.htm
>>
>> I created a 'weewx' Ubuntu user, so the /home/weewx directory structure 
>> would be created.
>> I've edited the weewx.conf file for my setup to use an RTL-SDR to receive 
>> data from an Acurite Atlas weather station.
>> The stock apache2 conf.d file included in weewx, points to the web server 
>> location of:
>> Alias /weewx /home/weewx/public_html
>> <Directory /home/weewx/public_html>
>> That public_html directory was not created by the installation process.  
>> Was it supposed to?
>>
>> When I manually start weewx with the suggested commands:
>> cd /home/weewx 
>> sudo ./bin/weewxd
>>
>> Parts of the system start and i see the SDR reading the Atlas data.
>> There doesn't appear to be a database file, and there isn't any webpage 
>> files being created or updated.
>>
>> weewx@Ubuntu20-WEEWX:~/Desktop$ sudo tail -f /var/log/syslog
>> Apr 24 12:04:56 Ubuntu20-WEEWX weewx[16422] DEBUG weewx.engine: Finished 
>> loading service weewx.engine.StdPrint
>> Apr 24 12:04:56 Ubuntu20-WEEWX weewx[16422] DEBUG weewx.engine: Loading 
>> service weewx.engine.StdReport
>> Apr 24 12:04:56 Ubuntu20-WEEWX weewx[16422] DEBUG weewx.engine: Finished 
>> loading service weewx.engine.StdReport
>> Apr 24 12:04:56 Ubuntu20-WEEWX weewx[16422] INFO __main__: Starting up 
>> weewx version 4.5.1
>> Apr 24 12:04:56 Ubuntu20-WEEWX weewx[16422] DEBUG weewx.engine: Station 
>> does not support reading the time
>> Apr 24 12:04:56 Ubuntu20-WEEWX weewx[16422] INFO weewx.engine: Using 
>> binding 'wx_binding' to database 'weewx.sdb'
>> Apr 24 12:04:56 Ubuntu20-WEEWX weewx[16422] INFO weewx.manager: Starting 
>> backfill of daily summaries
>> Apr 24 12:04:56 Ubuntu20-WEEWX weewx[16422] INFO weewx.manager: Empty 
>> database
>> Apr 24 12:04:56 Ubuntu20-WEEWX weewx[16422] INFO weewx.engine: Starting 
>> main packet loop.
>> Apr 24 12:04:59 Ubuntu20-WEEWX weewx[16422] DEBUG user.sdr: lines=[]
>> Apr 24 12:05:03 Ubuntu20-WEEWX weewx[16422] DEBUG user.sdr: 
>> lines=['{"time" : "2021-04-24 17:04:59", "model" : "Acurite-Atlas", "id" : 
>> 17, "channel" : "A", "sequence_num" : 0, "battery_ok" : 1, "message_type" : 
>> 38, "wind_avg_mi_h" : 0.000, "wind_dir_deg" : 200.000, "rain_in" : 0.130, 
>> "strike_count" : 0, "strike_distance" : 31, "exception" : 0, "raw_msg" : 
>> "c011660006a08d009f09"}\n', '{"time" : "2021-04-24 17:04:59", "model" : 
>> "Acurite-Atlas", "id" : 17, "channel" : "A", "sequence_num" : 1, 
>> "battery_ok" : 1, "message_type" : 38, "wind_avg_mi_h" : 0.000, 
>> "wind_dir_deg" : 200.000, "rain_in" : 0.130, "strike_count" : 0, 
>> "strike_distance" : 31, "exception" : 0, "raw_msg" : 
>> "c411660006a08d009f0d"}\n', '{"time" : "2021-04-24 17:04:59", "model" : 
>> "Acurite-Atlas", "id" : 17, "channel" : "A", "sequence_num" : 2, 
>> "battery_ok" : 1, "message_type" : 38, "wind_avg_mi_h" : 0.000, 
>> "wind_dir_deg" : 200.000, "rain_in" : 0.130, "strike_count" : 0, 
>> "strike_distance" : 31, "exception" : 0, "raw_msg" : 
>> "c811660006a08d009f11"}\n']
>>
>> I've gone through the install process several times, to be sure that no 
>> steps were missed, but it isn't working as expected.
>> Is this a known problem with version 4.5.1?
>>
>>

-- 
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/9efeec80-edcc-4810-8617-dd19ba6507c2n%40googlegroups.com.

Reply via email to