If you run the command and add sudo before the command then it will run as 
root.

 sudo wee_device

If you add the user to the dialout group then that user will have 
permission to use the USB without out having to run sudo.



On Monday, 23 November 2020 at 15:04:40 UTC+11 jd....@gmail.com wrote:

> OK thanks guys... I'm a bit of a linux noob so I am not sure how to do 
> symbolic links. Therefore I opted to change the directory where the web 
> pages are living, to:
> HTML_ROOT = /var/www/html - This fixed it... but now I have another 
> issue, undoubtedly related to the Vantage data corruption issue. I now get 
> the correct web server, but the web page shows a date from two days ago and 
> does not update. When I try to run wee_device commands I get a permissions 
> issue on the USB port. PermissionError: [Errno 13] Permission denied: 
> '/dev/ttyUSB0'  How can I get permissions on the USB port? (Remember 
> Linux noob)... I can start a new topic about this if necessary.
>
> On Saturday, November 21, 2020 at 3:53:05 PM UTC-6 Greg from Oz wrote:
>
>> I think you should put the weewx.conf into /etc/apache2/sites-available/
>> The run sudo a2ensite (this will enable the site)
>> Then run: sudo systemctl restart apache2.service
>>
>> I don't know what system you are running apache on but the above should 
>> work with Ubuntu (debian)
>>
>>
>> On Sunday, 22 November 2020 at 06:47:10 UTC+11 vince wrote:
>>
>>> You always want to look at your logs for both syslog and apache for the 
>>> gory details.
>>>
>>> There are a couple alternate ways to get there....
>>>
>>>    - edit weewx.conf to tell it where to write its html to
>>>       - at the top of the [[StandardReport]] section in weewx.conf, 
>>>       edit HTML_ROOT to point to /var/www/html which is where Apache thinks 
>>> the 
>>>       web root is (weewx restart required)
>>>    - or point the apache DOCROOT at weewx's tree
>>>       - rename /var/www/html and create a symlink pointing to 
>>>       /home/weewx/public_html  (no apache or weewx restarts needed)
>>>    - or point the weewx's HTML_ROOT at apache's tree
>>>       - rename /home/weewx/public_html and create a symlink pointing to 
>>>       /var/www/html (weewx restart required)
>>>    
>>> FWIW, I use the second method here but that's just how I chose to do it.
>>>
>>>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/5883fe8c-e56e-427a-adbf-d73d146f9196n%40googlegroups.com.

Reply via email to