Re: [weewx-user] Re: add missing records, then report and exit

2024-06-24 Thread tguo...@gmail.com
Im using Pi 3B+, currently an external timer powers up the pi for 5 minutes, sufficient to wait for the NTP server, and start weewx to download the console and upload to wu. But if I miss a couple of days then there's too much data, and 5 minutes isn't enough, something smarter should be done.

Re: [weewx-user] Re: add missing records, then report and exit

2024-06-24 Thread tguo...@gmail.com
Lithium would be the way! Already studying a solution this way. But I need a process to download the console and shutdown the pi. I could also do without the weewx's LOOP, something with weectl. On Sunday 23 June 2024 at 16:33:07 UTC-3 michael.k...@gmx.at wrote: > After optimizing the power con

[weewx-user] Upgrading to v5 from v4 - Insufficient privileges claiming USB

2024-06-24 Thread mike.t...@noworries.plus.com
Hi, I've worked my way through the upgrade steps following https://github.com/weewx/weewx/wiki/v5-upgrade and got to step 4 weewxd --config=/home/weewx/weewx.conf running as pi I get the error weepi weewxd[17081]: CRITICAL weewxd: Unable to load driver: [Errno 13] Access denied (insufficient

[weewx-user] Re: Upgrading to v5 from v4 - Insufficient privileges claiming USB

2024-06-24 Thread 'michael.k...@gmx.at' via weewx-user
Maybe this sections will help you: https://github.com/weewx/weewx/wiki/Understanding-permissions#how-to-fix-device-permissions mike.t...@noworries.plus.com schrieb am Montag, 24. Juni 2024 um 14:27:38 UTC+2: > Hi, > I've worked my way through the upgrade steps following > https://github.com/

Re: [weewx-user] Re: Paid Development Request: Driver for Raddy L7 JSON

2024-06-24 Thread Eddie Bryant
Michael, Is JSON something that needs to be installed before running your script? I noticed that it is imported. Eddie On Sun, Jun 23, 2024, 7:09 PM Michael wrote: > import requests > import json > from datetime import datetime > import time > > def fetch_and_send_data(): > try: >

[weewx-user] Re: Upgrading to v5 from v4 - Insufficient privileges claiming USB

2024-06-24 Thread mike.t...@noworries.plus.com
Thanks Michael I've worked through the doc but not found a resolution. pi the weewx user is in the following groups pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi The arm device is as follows; (weewx-venv) pi@weepi:/home/weewx $ ls -l /dev/ttyAMA0 crw

[weewx-user] no records from davis advantage

2024-06-24 Thread Mark Hahn
I've been using weewx for years with no problem. I had a power failure last night and have not been able to get any records from my davis advantage since. My davis console is able to connect to the remote station and show data on its screen. My linux weewx was able to connect to davis using

[weewx-user] Re: no records from davis advantage

2024-06-24 Thread vince
See the wiki for your log question - https://github.com/weewx/weewx/wiki/view-logs See the wiki for your davis question - https://github.com/weewx/weewx/wiki/Troubleshooting-the-Davis-Vantage-station On Monday, June 24, 2024 at 9:33:22 AM UTC-7 Mark Hahn wrote: > I've been using weewx for year

[weewx-user] Re: no records from davis advantage

2024-06-24 Thread tguo...@gmail.com
is this a weatherlink live or a datalogger to follow logs: tail -f /var/log/syslog On Monday 24 June 2024 at 14:01:11 UTC-3 vince wrote: > See the wiki for your log question - > https://github.com/weewx/weewx/wiki/view-logs > > See the wiki for your davis question - > https://github.com/weewx

[weewx-user] Re: no records from davis advantage

2024-06-24 Thread tguo...@gmail.com
Is this a weatherlink live device or a datalogger? On Monday 24 June 2024 at 13:33:22 UTC-3 Mark Hahn wrote: > I've been using weewx for years with no problem. I had a power failure > last night and have not been able to get any records from my davis > advantage since. My davis console is abl

[weewx-user] Re: Upgrading to v5 from v4 - Insufficient privileges claiming USB

2024-06-24 Thread 'michael.k...@gmx.at' via weewx-user
Did you install an udev rule? mike.t...@noworries.plus.com schrieb am Montag, 24. Juni 2024 um 18:01:17 UTC+2: > Thanks Michael I've worked through the doc but not found a resolution. > > pi the weewx user is in the following groups pi adm dialout cdrom sudo > audio video plugdev games users in

Re: [weewx-user] Re: add missing records, then report and exit

2024-06-24 Thread vince
If you use rsyslogd for logging, here is a /etc/rsyslog.d/weewx config file snippet that logs anything WU related to a separate file # log wunderground to other file if $msg contains 'Wunderground-PWS: Published record' then /var/log/weewx/weewx-wunderground.log On Monday, June 24, 2024 at 5:0

[weewx-user] Re: no records from davis advantage

2024-06-24 Thread Mark Hahn
> Is this a weatherlink live device or a datalogger? I don't know what those are. I'm using weewx connect to a davis vantage. On Monday, June 24, 2024 at 10:37:08 AM UTC-7 tguo...@gmail.com wrote: > Is this a weatherlink live device or a datalogger? > > On Monday 24 June 2024 at 13:33:22 UTC-3

[weewx-user] want to upgrade to 5.0, don't know original install method

2024-06-24 Thread Mark Hahn
I installed weewx long ago (10 yrs?). It is version 4.10.2. I don't have any idea how I installed it. The is nothing related to weewx in my /root directory. The is no weewx directory in /home. Any ideas on how I should upgrade to 5.0? Also, are there breaking changes from 4.10.2 to 5.0?

[weewx-user] Re: want to upgrade to 5.0, don't know original install method

2024-06-24 Thread Mark Hahn
I should say that I want to upgrade to get commands like "weectl device --dump". Are there equivalent commands in 4.10.2?I need those commands to follow instructions in " Troubleshooting the Davis Vantage station" page of wiki. My other post here about my davis troubles is at https://gro

[weewx-user] Re: Upgrading to v5 from v4 - Insufficient privileges claiming USB

2024-06-24 Thread mike.t...@noworries.plus.com
No I didn't Neither /usr/lib/udev/rules.d/60-weewx.rules nor /etc/udev/rules.d/60-weewx.rules exists found this file though /etc/udev/rules.d/99-com.rules FYI this is an upgrade from v4 to 5 using FineOffset weather station _

[weewx-user] Re: Upgrading to v5 from v4 - Insufficient privileges claiming USB

2024-06-24 Thread vince
Mike start with the minimum complexity on this one. Unplug your device then plug it in, and look at output of 'dmesg' and 'lsusb' to verify which device it detects. There are some very ancient threads here for FO station craziness with solutions saying unplug and remove/reinsert batteries fro

[weewx-user] Re: want to upgrade to 5.0, don't know original install method

2024-06-24 Thread vince
Mark you're asking a lot of very basic questions that seem to indicate that you haven't read any of the many recent additions to the documentation. Please see the following: - https://www.weewx.com/docs/5.0/ - https://github.com/weewx/weewx/wiki/WeeWX-Frequently-Asked-Questions - https

[weewx-user] Re: want to upgrade to 5.0, don't know original install method

2024-06-24 Thread 'michael.k...@gmx.at' via weewx-user
I'd recommend you to leave your old installation untouched, install weewx5 the pip way in a venv together with your extensions, a copy of your database and config and see if it works out. When the new installation works as desired, just switch. Mark Hahn schrieb am Montag, 24. Juni 2024 um 20:1

[weewx-user] Re: Upgrading to v5 from v4 - Insufficient privileges claiming USB

2024-06-24 Thread mike.t...@noworries.plus.com
Hi Vince OK unplugged and re-plugged weather station It's a Watson 8681 which has been running v4 for 2-3 years having replaced a Maplin both of which are FineOffset The weather station is plugged directly into one of the usb2 ports, not a usb3 (blue one) The wifi is also plugged into one of the

[weewx-user] Re: Upgrading to v5 from v4 - Insufficient privileges claiming USB

2024-06-24 Thread vince
"Dream Link WH1080 Weather Station / USB Missile Launcher" is either very funny or I fear your weather :-) This entry made me think a little though - "CIFS: Attempting to mount // 192.168.1.65/pi" - is it possible that your 'pi' user does not have privileges to write to the database if it ultima

[weewx-user] Include $almanac.moonphase in an

2024-06-24 Thread 'Den' via weewx-user
I have named moon phase .jpg images in the folder weather/moon that match the $almanac.moonphase names. I am trying to display the image based on the $ variable. Here is the html in the tmpl file: I have tried all kinds of spaces, quotes, single quotes ... without getting the image to display.

Re: [weewx-user] Include $almanac.moonphase in an

2024-06-24 Thread 'W2DEN' via weewx-user
I found the answer, embed the variable in braces{} It is more of an HTML solution than anything else. Den On 6/24/2024 3:14 PM, 'Den' via weewx-user wrote: I have named moon phase .jpg images in the folder weather/moon that match the $almanac.moonphase names. I am trying to display the image

[weewx-user] Re: Include $almanac.moonphase in an

2024-06-24 Thread vince
Remove the spaces from your filenames. This is unix, not windows. (yes - spaces 'can' be done but why add the compexity of making that work) I suspect your logs are barking all over the place about it if you look. On Monday, June 24, 2024 at 2:25:12 PM UTC-7 Den wrote: > I have named moon phas

[weewx-user] Re: Upgrading to v5 from v4 - Insufficient privileges claiming USB

2024-06-24 Thread mike.t...@noworries.plus.com
I thought you might have cracked it but... I'm using pi as the weewx user. I use NAS to backup weewx. The db skins etc are all on the rpi sd card. I've checked and pi is the owner of the data on the NAS pi user can create files on NAS I thought the virtual environment might prevent pi using the NA

Re: [weewx-user] Include $almanac.moonphase in an

2024-06-24 Thread 'W2DEN' via weewx-user
Of course I'd screw up the answer this works(not real sure why but it does.) results in: Den On 6/24/2024 5:30 PM, 'W2DEN' via weewx-user wrote: I found the answer, embed the variable in braces{} It is more of an HTML solution than anything else. Den On 6/24/2024 3:14 PM, 'D

Re: [weewx-user] Re: no records from davis advantage

2024-06-24 Thread Tom Keffer
Classic case of corrupted memory in the logger. See the section *Corrupt station memory * in the document that Vince linked to On Mon, Jun 24, 2024 at 10:59 AM Mark Hahn wrote: > > Is this a we

[weewx-user] Re: want to upgrade to 5.0, don't know original install method

2024-06-24 Thread Mark Hahn
As suggested I did a separate install using pip. It was very quick. "weectl device --clear-memory" fixed my davis problem. I decided to run the new 5.0. I copied over the conf file. I didn't need to copy the db file. Weewxd works great. But now I want to run it as a daemon. The pip instal

Re: [weewx-user] Re: no records from davis advantage

2024-06-24 Thread Mark Hahn
Thanks to all. I fixed this using weectl to clear the memory. On Monday, June 24, 2024 at 4:31:05 PM UTC-7 Tom Keffer wrote: > Classic case of corrupted memory in the logger. See the section *Corrupt > station memory >

[weewx-user] Re: want to upgrade to 5.0, don't know original install method

2024-06-24 Thread vince
You used pip. Activate the venv first. Always. On Monday, June 24, 2024 at 5:01:38 PM UTC-7 Mark Hahn wrote: > As suggested I did a separate install using pip. It was very quick. > "weectl device --clear-memory" fixed my davis problem. > > I decided to run the new 5.0. I copied over the conf

[weewx-user] Re: want to upgrade to 5.0, don't know original install method

2024-06-24 Thread Mark Hahn
> Activate the venv first I followed the pip instructions carefully so I'm 99% sure I did "source ~/weewx-venv/bin/activate". On Monday, June 24, 2024 at 5:04:16 PM UTC-7 vince wrote: > You used pip. Activate the venv first. Always. > > On Monday, June 24, 2024 at 5:01:38 PM UTC-7 Mark Hahn wr

[weewx-user] Re: want to upgrade to 5.0, don't know original install method

2024-06-24 Thread Mark Hahn
I did ... # Create the virtual environment python3 -m venv ~/weewx-venv # Activate the WeeWX virtual environment source ~/weewx-venv/bin/activate # Install WeeWX into the virtual environment python3 -m pip install weewx On Monday, June 24, 2024 at 5:23:27 PM UTC-7 Mark Hahn wrote: > > Activate

[weewx-user] Re: want to upgrade to 5.0, don't know original install method

2024-06-24 Thread vince
Mark you're going to have to be much less concise please. What are 'all' the commands you executed ? What does the output look like end to end ? What exactly are you doing ? - are you installing v5 pip on a clean no-weewx system ? - or are you upgrading a v4 setup to v5 pip ? - or ar

[weewx-user] Re: want to upgrade to 5.0, don't know original install method

2024-06-24 Thread Mark Hahn
> What are 'all' the commands you executed ? Are you serious? I've been working on this for hours. > You should not need to 'change the location inside that script' if you are following the instructions correctly. I followed the pip install to the letter. See the commands I listed post be

Re: [weewx-user] Upgrading to v5 from v4 - Insufficient privileges claiming USB

2024-06-24 Thread Graham Eddy
from memory, ‘magic error’ numbers pop up mostly with corrupt executables (or wrong processor) and filesys mounts (unsupported format) ⊣GE⊢ > On 25 Jun 2024, at 2:01 AM, mike.t...@noworries.plus.com > wrote: > > when running with sudo I see an error "unrecognised magic number 5528" in the > l

Re: [weewx-user] Upgrading to v5 from v4 - Insufficient privileges claiming USB

2024-06-24 Thread Graham Eddy
*sigh* .. ‘magic number’ errors .. ⊣GE⊢ > On 25 Jun 2024, at 1:22 PM, Graham Eddy wrote: > > from memory, ‘magic error’ numbers pop up mostly with corrupt executables (or > wrong processor) and filesys mounts (unsupported format) > ⊣GE⊢ > >> On 25 Jun 2024, at 2:01 AM, mike.t...@noworries.plus

Re: [weewx-user] Re: Paid Development Request: Driver for Raddy L7 JSON

2024-06-24 Thread Eddie Bryant
I see that JSON is a library included with Python. I installed the CumulusMx image on my Pi4. I was going through the first time setup and was wondering what is the best station to use to be able to send data to APRS and CWOP. I thought about Ecowitt but it wanted information I didn't have. On Mon

Re: [weewx-user] Include $almanac.moonphase in an

2024-06-24 Thread Graham Eddy
it removes ambiguity - distinguish ${almanac}.moonphase.jpg from ${almanac.moonphase}.jpg from ${almanac.moonphase.jpg} ⊣GE⊢ > On 25 Jun 2024, at 7:35 AM, 'W2DEN' via weewx-user > wrote: > > this works(not real sure why but it does.) > > > -- You received this message because you are

[weewx-user] Re: want to upgrade to 5.0, don't know original install method

2024-06-24 Thread 'michael.k...@gmx.at' via weewx-user
"Activate the venv first. Always." Means: "Activate the specifific venv everytime, you want to run a command for the specific installation in the venv." Mark Hahn schrieb am Dienstag, 25. Juni 2024 um 03:48:26 UTC+2: > > What are 'all' the commands you executed ? > Are you serious? I've been

[weewx-user] Re: want to upgrade to 5.0, don't know original install method

2024-06-24 Thread 'michael.k...@gmx.at' via weewx-user
"Activate the venv first. Always." Means: "Activate the specifific venv everytime, you want to run a command for the specific installation in the venv, and the venv isn't active." Mark Hahn schrieb am Dienstag, 25. Juni 2024 um 03:48:26 UTC+2: > > What are 'all' the commands you executed ? >

[weewx-user] Re: want to upgrade to 5.0, don't know original install method

2024-06-24 Thread vince
Mark - you're copping an attitude so I'm going to stop trying to help. Go wild. FWIW - if you run the command at my repo at https://github.com/vinceskahan/weewx-pipinstall it will do a start-to-finish installation of v5 pip weewx in simulator mode, with nginx, rsyslog, and logrotate installed