Ok, thanks Tim, good advice! :) So basically there is no need to use the file from util/init.d/weewx.debian like the DOCs advice. So there is no downside by not using the instruction from the documentary and just execute the ./bin/weewxd weewx.conf file with the weewx.conf as first parameter from the /etc/rc.local file? Did I get that right?
Regards, Henry. On Sunday, February 24, 2019 at 8:35:44 PM UTC+1, Tim Urberg wrote: > > One pro to doing it this way is you can watch the LOOP data as it is > coming in. A good way to debug if nothing else. > > On Sunday, February 24, 2019 at 1:28:33 PM UTC-6, Tim Urberg wrote: >> >> One you could use screen, which allows a totally separate screen to be >> running in the background. >> >> https://linuxize.com/post/how-to-use-linux-screen/ >> >> Here's what I have in /etc/rc.local (on a Raspberry Pi): >> >> screen -S weather_station -d -m sh -c 'weewxd /etc/weewx/weewx.conf; exec >> bash' >> >> Then when you log in run: "sudo screen -r" which will re-attach to the >> screen session. Once finished type Ctrl+A and then D to detach. >> >> That's one way to do it. >> >> On 2/24/2019 1:20 PM, Henry Denston wrote: >> >> Thank you. >> >> Another question that I would like to ask: >> >> Is there any downside just adding (executing) the sudo ./bin/weewxd >> weewx.conf script to the /etc/rc.locatl file? >> So my WeeWx installation gets started everytime on startup of my system. >> >> In the Docs this instruction is given: >> >> cd /home/weewx >> sudo cp util/init.d/weewx.debian /etc/init.d/weewx >> sudo chmod +x /etc/init.d/weewx >> sudo update-rc.d weewx defaults 98 >> sudo /etc/init.d/weewx start >> >> >> >> But is there any disadvantage using the method I described above? >> >> >> Thank you, Henry. >> >> On Friday, February 22, 2019 at 6:04:07 AM UTC+1, gjr80 wrote: >>> >>> python-pil is used by the WeeWX image generator to create/manipulate the >>> image file (ie create the image file, draw points, lines, labels etc). The >>> logic for obtaining the data to be plotted, working out what goes where and >>> what colours are used etc are all contained in various WeeWX .py files >>> (imagegenerator.py, weeplot/genplot.py etc). >>> >>> Gary >>> >> >> >> >> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >> Virus-free. >> www.avg.com >> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> >> >> <#[email protected][email protected]_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >> >
