Re: [weewx-user] v5 pip - interceptor in sniff mode permissions question

2024-03-20 Thread John Smith
I dont know why weewx isnt started as root and once up and running drop
privledges. Itd solve a number of these issues.

On Thu, 21 Mar 2024, 06:46 vince,  wrote:

> I'm fiddling around trying to learn interceptor and how to set it up for
> v5 and have it at least listening without errors as user 'pi' as long as
> I'm listening on an unprivileged port.
>
> But 'sniff' mode requires being able to get into promiscuous mode it seems
> and then I'm hitting permission issues. I use the 'pip' installation for
> weewx but I'd expect the dpkg would have the same issues since weewx now
> runs unprivileged.
>
> I did find some cryptic google hits suggesting that I can give the python
> interpreter permission to do so ala "sudo setcap cap_net_raw+eip
> /usr/bin/python3.11"  which seems to permit weewxd to sniff for packets,
> but that seems like a security risk isn't it ?
>
> Is there a preferred way to get the unprivileged weewxd user the ability
> to sniff for packets if you have to run interceptor in that mode ???
>
> My pip3 list includes:
>
> PackageVersion
> -- ---
> libpcap1.11.0b8
> pypcap 1.3.0
> (others omitted for brevity)
>
> My Interceptor stanza looks like:
> [Interceptor]
> # This section is for the network traffic interceptor driver.
>
> # The driver to use:
> driver = user.interceptor
>
> # Specify the hardware device to capture. Options include:
> #   acurite-bridge - acurite internet bridge, smarthub, or access
> #   observer - fine offset WH2600/HP1000/HP1003, ambient WS2902
> #   lw30x - oregon scientific LW301/LW302
> #   lacrosse-bridge - lacrosse GW1000U/C84612 internet bridge
> #   ecowitt-client - any hardware that uses the ecowitt protocol
> #   wu-client - any hardware that uses the weather underground protocol
> device_type = ecowitt-client
> iface = wlan0
>
> # listen
> #mode = listen
> #port = 8000
>
> # or sniff
>mode = sniff
>pcap_filter = src 192.168.1.201 and dst port 8001
>
> --
> 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/38403d42-3bb5-4003-9786-308c39309ec9n%40googlegroups.com
> 
> .
>

-- 
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/CAGTinV4Kf7cOdwJfskLti91ArCUf%3DbPixynQN9aV9_t6y5qevA%40mail.gmail.com.


Re: [weewx-user] Upgrade to 5.0.2 from 4.10: where are my logs?

2024-03-03 Thread John Smith
Did you try running weewxd manually on the command line?

On Mon, 4 Mar 2024 at 01:27, Invisible Man 
wrote:

> I found partially why: the upgrade procedure didn't pick up my
> /etc/default/weewx, just did a backup and created a new one.
>
> WEEWX_PYTHON=python3
> WEEWX_BINDIR=/usr/share/weewx
> WEEWX_CFG=/etc/weewx/weewx.conf
> WEEWX_BIN=/usr/bin/weewxd
>
> And now it's a horror movie to debug the rest :( I wish I hadn't
> upgraded...
>
> On Sunday, March 3, 2024 at 3:09:27 PM UTC+1 Invisible Man wrote:
>
>> Ok, but I have very few logs using journalctl -u weewx.service, whereas I
>> used to have lots of debug logs.
>>
>> mars 03 14:47:39 vegan systemd[1]: Stopped LSB: weewx weather system.
>> mars 03 14:47:39 vegan systemd[1]: Starting LSB: weewx weather system...
>> mars 03 14:47:39 vegan systemd[1]: Started LSB: weewx weather system.
>>
>> And my weewx database used to be located in /home/weewx/archive/weewx.db.
>> And it looks like it hasn't been updated since. Something is wrong like
>> it's not using the correct configuration at all.
>>
>> /home/weewx/archive $ ls -lh weewx.sdb
>> -rw-r--r-- 1 weewx root 119M mars   3 14:30 weewx.sdb
>>
>> It's 15:00. Last update to weewx.sdb is 14:30. Impossible.
>>
>> On Sunday, March 3, 2024 at 3:05:31 PM UTC+1 John Smith wrote:
>>
>>> Logs were ditched in favour of journald because the weewx v5 no longer
>>> runs as root
>>>
>>> jounralctl -f -u weewx.service
>>>
>>> On Mon, 4 Mar 2024 at 01:01, Invisible Man  wrote:
>>>
>>>> I used to redirect the weewx logs which were normally going to
>>>> /var/log/syslog in /var/tmp/log/weewx.log using /etc/rsyslog.d
>>>>
>>>> :programname,isequal,"weewx" /var/tmp/log/weewx.log
>>>> :programname,isequal,"weewx" ~
>>>>
>>>> I upgraded to 5.0.2, asked to keep my personal old configuration, but
>>>> there are no longer any logs going to /var/tmp/log/weewx.log.
>>>> There is no /var/log/weewx either. And /var/log/syslog doesn't have
>>>> weewx logs.
>>>> I do have logs with journalctl -u weewx.
>>>>
>>>> Where are my logs??
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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+...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/weewx-user/9d507bdb-fb53-4808-a761-10288af5d8d4n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/weewx-user/9d507bdb-fb53-4808-a761-10288af5d8d4n%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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/0ca14dff-9751-43a2-890d-faeb47502bd2n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/0ca14dff-9751-43a2-890d-faeb47502bd2n%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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAGTinV6kQ0r4cDQn_g%2BewMgKD2CnC7qdHipumyVzB241ePq63g%40mail.gmail.com.


Re: [weewx-user] Upgrade to 5.0.2 from 4.10: where are my logs?

2024-03-03 Thread John Smith
Logs were ditched in favour of journald because the weewx v5 no longer runs
as root

jounralctl -f -u weewx.service

On Mon, 4 Mar 2024 at 01:01, Invisible Man 
wrote:

> I used to redirect the weewx logs which were normally going to
> /var/log/syslog in /var/tmp/log/weewx.log using /etc/rsyslog.d
>
> :programname,isequal,"weewx" /var/tmp/log/weewx.log
> :programname,isequal,"weewx" ~
>
> I upgraded to 5.0.2, asked to keep my personal old configuration, but
> there are no longer any logs going to /var/tmp/log/weewx.log.
> There is no /var/log/weewx either. And /var/log/syslog doesn't have weewx
> logs.
> I do have logs with journalctl -u weewx.
>
> Where are my logs??
>
>
>
>
>
> --
> 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/9d507bdb-fb53-4808-a761-10288af5d8d4n%40googlegroups.com
> 
> .
>

-- 
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/CAGTinV7_17uYBwZrzZN3ZiyNfeyZnKgy%3DuaMih8kyp9zZRsK3Q%40mail.gmail.com.


Re: [weewx-user] Reinstalling weewx

2024-03-01 Thread John Smith
Pretty sure you can boot from usb on a rpi3b

https://www.instructables.com/Booting-Raspberry-Pi-3-B-With-a-USB-Drive/

On Sat, 2 Mar 2024 at 03:44, Bill Petheram 
wrote:

> Vantage Pro2 connected with USB.
>
> On Friday, March 1, 2024 at 4:38:21 PM UTC Tom Keffer wrote:
>
>> What kind of hardware?
>>
>> On Fri, Mar 1, 2024 at 8:36 AM Bill Petheram 
>> wrote:
>>
>>> I wasn't being clear.
>>>
>>> There is no way for preventing records being read from the hardware and
>>> so they get lost.
>>>
>>> I did ry not connecting the hardware but then weewx doesn't start
>>> properly.
>>>
>>> Bil
>>>
>>>
>>> On Sunday, February 25, 2024 at 9:51:00 PM UTC Neville Davis wrote:
>>>
 I have a Pi4 with external SSD and I did exactly what Tom has suggested
 without any problems.

 I have done this every time I have had a new hardware config to ensure
 all is well.

 Nev

 On Monday, February 26, 2024 at 1:02:08 AM UTC+10 Tom Keffer wrote:

> Move a temporary database into position, then set it aside when you're
> satisfied.
>
> On Sun, Feb 25, 2024 at 3:39 AM Bill Petheram 
> wrote:
>
>> I had to reinstall weewx due to a bad system upgrade on a Raspberry
>> Pi with an external SSD.
>>
>> I wanted to check my installation was OK. I found that weewx started
>> to read data from my station before I was sure everything was setup
>> properly.
>>
>> It would be nice to be able to turnoff data download at startup to
>> check that the installation works OK and files are in the correct
>> positions. Then turn on data loading.
>>
>> This I guess is less of a problem on Rpi 4 as you can boot from USB.
>> I am using Rpi 3B so I have to use symbolic links.
>>
>> --
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/38bba562-b306-4d76-86f6-7ebc31bad1bfn%40googlegroups.com
>> 
>> .
>>
> --
>>> 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+...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/ec2c7968-5801-4b15-a80f-a386b3aac967n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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/b6925f28-8a42-4f33-bbb9-4d6509585b78n%40googlegroups.com
> 
> .
>

-- 
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/CAGTinV6tz%3DF063YLm0TUFLnavrma6%3DBKsSN%2BbHcu3kaVU4KKjA%40mail.gmail.com.


Re: [weewx-user] No HTML generation after upgrade from 5.0.0 to 5.0.1

2024-02-08 Thread John Smith
chown -R weewx: '/var/www/rumoclock.dk/web/weewx/

On Thu, 8 Feb 2024 at 18:56, 'neu...@bnjpro.dk' via weewx-user <
weewx-user@googlegroups.com> wrote:

> I did a normal apt update, apt upgrade. But after having been running
> perfectly with 5.0.0 I now don't get html renewal.
> I have here a snippet of the logfile indicating a few errors, of which I
> think the permission error is the worst, and the one causing the problem.
> But I don't see any file of that name in the claimed directory.
>
> I do not update the conf files, because they work just fine and I don't
> want to use time to reconfigure all over again everytime there is an
> upgrade. And they worked fine with version 5.0.0, so no need to.
>
> Any ideas on what is happening?
>
>
> Log snippet:
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: Caught
> unrecoverable exception in generator
> 'weewx.cheetahgenerator.CheetahGenerator'
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>  [Errno 13] Permission denied: '/var/www/
> rumoclock.dk/web/weewx/index.html.tmp'
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>  Traceback (most recent call last):
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>  File "/usr/share/weewx/weewx/reportengine.py", line 220, in run
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>obj.start()
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>  File "/usr/share/weewx/weewx/reportengine.py", line 409, in start
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>self.run()
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 166, in run
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>ngen = self.generate(gen_dict[section_name], section_name, self.gen_ts)
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 226, in generate
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>ngen += self.generate(section[subsection], subsection, gen_ts)
> Feb  8 08:33:00 frej weewxd[754]: Traceback (most recent call last):
> Feb  8 08:33:00 frej weewxd[754]:   File
> "/usr/share/weewx/weewx/reportengine.py", line 220, in run
> Feb  8 08:33:00 frej weewxd[754]: obj.start()
> Feb  8 08:33:00 frej weewxd[754]:   File
> "/usr/share/weewx/weewx/reportengine.py", line 409, in start
> Feb  8 08:33:00 frej weewxd[754]: self.run()
> Feb  8 08:33:00 frej weewxd[754]:   File
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 166, in run
> Feb  8 08:33:00 frej weewxd[754]: ngen =
> self.generate(gen_dict[section_name], section_name, self.gen_ts)
> Feb  8 08:33:00 frej weewxd[754]:   File
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 226, in generate
> Feb  8 08:33:00 frej weewxd[754]: ngen +=
> self.generate(section[subsection], subsection, gen_ts)
> Feb  8 08:33:00 frej weewxd[754]:   File
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 226, in generate
> Feb  8 08:33:00 frej weewxd[754]: ngen +=
> self.generate(section[subsection], subsection, gen_ts)
> Feb  8 08:33:00 frej weewxd[754]:   File
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 371, in generate
> Feb  8 08:33:00 frej weewxd[754]: with open(tmpname, mode='wb') as fd:
> Feb  8 08:33:00 frej weewxd[754]: PermissionError: [Errno 13] Permission
> denied: '/var/www/rumoclock.dk/web/weewx/index.html.tmp'
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 226, in generate
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>ngen += self.generate(section[subsection], subsection, gen_ts)
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 371, in generate
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>with open(tmpname, mode='wb') as fd:
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>  PermissionError: [Errno 13] Permission denied: '/var/www/
> rumoclock.dk/web/weewx/index.html.tmp'
> Feb  8 08:33:00 frej weewxd[754]: ERROR weewx.reportengine: 
>  Generator terminated
> Feb  8 08:33:00 frej weewxd[754]: DEBUG weewx.manager: Daily summary
> version is 4.0
> Feb  8 08:33:00 frej weewxd[754]: INFO weewx.imagegenerator: Generated 10
> images for report SeasonsReport in 0.67 seconds
> Feb  8 08:33:00 frej weewxd[754]: INFO weewx.reportengine: Copied 0 files
> to /var/www/rumoclock.dk/web/weewx
> Feb  8 08:33:00 frej weewxd[754]: DEBUG weewx.reportengine: Running report
> 'SmartphoneReport'
> Feb  8 08:33:00 frej weewxd[754]: DEBUG weewx.reportengine: Found
> configuration file /etc/weewx/skins/Smartphone/ski

Re: [weewx-user] updated to 5.0.1 still no joy

2024-02-07 Thread John Smith
On Thu, 8 Feb 2024 at 02:12, Tom Keffer  wrote:

> Something to try: edit the weewx service file and change permissions back
> to root. The service file should be located at
> /lib/systemd/system/weewx.service. Comment out the User and Group lines.
> When you're done, it will look something like this:
>
> [Service]
>
> ExecStart=weewxd /etc/weewx/weewx.conf
>
> StandardOutput=null
>
> StandardError=journal+console
>
> RuntimeDirectory=weewx
>
> RuntimeDirectoryMode=775
>
> # User=weewx
>
> # Group=weewx
>
> Then restart weewxd.
>
> Let us know if that makes a difference.
>

Why not start as root then drop privileges, it would solve a lot of the
permission problems people are having

-- 
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/CAGTinV5zBAmBD2DQrJMz9JsM4dui%3D%3Dzt%3DAXitaAB_kE9SDFvJA%40mail.gmail.com.


Re: [weewx-user] Where to put format to round data in Standard skin

2024-02-04 Thread John Smith
On Mon, 5 Feb 2024 at 04:07, bgra...@umw.edu  wrote:

> The format (I think) should be:
> StringFormats
> cpm = %.0f
>

Shouldn't that be %0.1f?

-- 
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/CAGTinV6rOhWk2iMmBNNYpc_hdnkhNA5Uotr8jZaBffg8PiMGdw%40mail.gmail.com.


Re: [weewx-user] weewx.drivers.vantage: Socket error while opening port 22222

2024-01-21 Thread John Smith
On Mon, 22 Jan 2024 at 08:13, Ed Surowiec  wrote:

> I am having trouble getting weewx to connect to my WeatherLink Live
> ethernet box.  I am able to connect to the WeatherLink Live using a browser
> and also using netcat to port 2 from the raspberry pi I have weewx
> installed on.  Here is the error.  Any help would be appreciated.
>
>
>
> Jan 21 13:51:26 rpi-blue weewxd[12964]: INFO weewx.engine: Loading station
> type Vantage (weewx.drivers.vantage)
>
> Jan 21 13:51:26 rpi-blue weewxd[12964]: ERROR weewx.drivers.vantage:
> Socket error while opening port 2 to ethernet host 10.0.1.180.
>
> Jan 21 13:51:26 rpi-blue weewxd[12964]: ERROR weewx.engine: Import of
> driver failed: [Errno 111] Connection refused ()
>

It looks like you are connecting to the wrong IP or it's not reachable on
the LAN

-- 
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/CAGTinV6daa-0aSGtrAi%2BhThvY9oHwXUuVmi1ToUnNoK2S30p6g%40mail.gmail.com.


Re: [weewx-user] Re: Why the rain 'spikes'?

2024-01-19 Thread John Smith
On Thu, 18 Jan 2024 at 13:26, Tom Keffer  wrote:

> You say that the "spikes" occur after power outages. I'm thinking the
> value for "dayRain" also changes.
>

Maybe he should get a UPS and put a big battery on it so it doesn't die
during blackouts.

-- 
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/CAGTinV7We1N7vOWPK7YZuERZwvdyNZv7_-CHMaWVo3kMEWS%3DJw%40mail.gmail.com.


Re: [weewx-user] Re: Weewx and Meteobridge - website update

2024-01-19 Thread John Smith
Depends on the skin you are using, and installation method, you could do a
search for index.html.tmpl and add it to the head section

On Thu, 18 Jan 2024 at 11:56, Jim Wilkerson  wrote:

> When you say to add the meta refresh to the "top of the template", which
> configuration file are you referring to please?
>
> Thanks..
>
> On Tuesday, January 9, 2024 at 9:22:27 AM UTC-5 gary@gmail.com wrote:
>
>> What skin are you using?
>>
>> On Sunday, January 7, 2024 at 1:36:16 PM UTC-5 bhouseski wrote:
>>
>>> Recently I was able to get Weewx running on a Raspberry Pi 4B, pulling
>>> data from a Vantage Pro2 connected to a D-Link DIR-505 loaded with
>>> Meteobridge (vantage is connected to the Meteobridge via USB).  All is well
>>> except I cannot get the website to autoload new data (I have to keep
>>> hitting refresh on my web browser).  I have played around with the archive
>>> interval, but have had no success.
>>>
>>> any idea's how to make this work?
>>>
>> --
> 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/b73d8ddc-0118-4b68-bf60-802838802898n%40googlegroups.com
> 
> .
>

-- 
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/CAGTinV6POf2uJMfw_Yd%2BdDPAbf-NsvM08LT-zgvkvCOodnFU1A%40mail.gmail.com.


Re: [weewx-user] Importing data from awair sensor

2024-01-12 Thread John Smith
On Fri, 12 Jan 2024 at 22:41, sting ray  wrote:

> Any advice how to import and display data from awair element sensors?
> These are intended for indoor aqi monitoring but appear to function in
> covered outdoor locations like a back porch.
>

If no one else replies with a better answer you could look at
https://github.com/glennmckechnie/weewx-uradmon which takes json values on
a uradmon and injects it into a DB and then has a skin to display graphs.

-- 
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/CAGTinV6LHoL6fqkVLk%3D9nz4Jsu%2Bf8yu8FeR-cuYfrfJeoreCog%40mail.gmail.com.


Re: [weewx-user] Weewx and Meteobridge - website update

2024-01-07 Thread John Smith
You need to add a meta refresh to the top of the template




On Mon, 8 Jan 2024 at 05:36, bhouseski  wrote:

> Recently I was able to get Weewx running on a Raspberry Pi 4B, pulling
> data from a Vantage Pro2 connected to a D-Link DIR-505 loaded with
> Meteobridge (vantage is connected to the Meteobridge via USB).  All is well
> except I cannot get the website to autoload new data (I have to keep
> hitting refresh on my web browser).  I have played around with the archive
> interval, but have had no success.
>
> any idea's how to make this work?
>
> --
> 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/599d5fa4-74f4-4cdb-93ac-9882021c2c91n%40googlegroups.com
> 
> .
>

-- 
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/CAGTinV5GdjYw8ikEfZLw%2BUXyK-Xw6w_sgzpNESQdqBgkTG8OKg%40mail.gmail.com.


Re: [weewx-user] Graph Section for previous year

2024-01-02 Thread John Smith
On Wed, 3 Jan 2024 at 07:42, Kevin Crivelli 
wrote:

> Not like "last 12 months" but "last year". I'd like to have a graph
> section for that. I'm sure it's very easy but I can't put my finger on it
>

I tried to do this for images, but my patch was rejected.

As for html that can be done:

$last_year.outTemp.max etc

-- 
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/CAGTinV6uPS2RLZEvy%3DfbtwBATmWAeP_0jT%2Bkgei90P0r7%3DUeeQ%40mail.gmail.com.


Re: [weewx-user] Specific Report Generation Periods

2023-08-27 Thread John Smith
$since($hour=9,$today=False).rain.sum.formatted

On Sun, 27 Aug 2023 at 03:45, carter.hu...@gmail.com <
carter.humphrey...@gmail.com> wrote:

> Yup, that is what I'm looking for. Can $since($hour=7) be used since the
> previous day though?
>
> On Friday, August 25, 2023 at 4:31:41 PM UTC-7 Tom Keffer wrote:
>
>> Is this what you're thinking? https://github.com/weewx/weewx/issues/91
>>
>> On Fri, Aug 25, 2023 at 9:58 AM carter.hu...@gmail.com <
>> carter.hu...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I'm wondering if there is a way to have a report have a specific end
>>> time. For example, I'd like to create a 24 hour data summary ending at 7 am
>>> LT each day, rather than each day from midnight to midnight.
>>>
>>> I figured using a span and setting a specific report generation time
>>> would work, but that wouldn't back-fill any missing reports.
>>>
>>> Any ideas?
>>>
>>> --
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/a5be1096-8846-46d5-8694-378c3f2dbd79n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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/bd0d1761-8c7a-433d-b4cb-ab6f9a97bdb4n%40googlegroups.com
> 
> .
>

-- 
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/CAGTinV6-zoAKzGj1DZAfLYvhMvD0%2Baw9cuKaR5PTmJCk4KrQ%3Dg%40mail.gmail.com.


Re: [weewx-user] weewx.4.6.0 : since.py : KeyError: 'trend'

2023-01-03 Thread John Smith
Thanks for the reminder, I updated the inigo extension to fix it's copy of
since.py

On Tue, 3 Jan 2023 at 08:38, Derek Harding 
wrote:

> I can't find a copy of since.py anywhere on my installations (I have two
> weather stations in different locations). Both of them only have
> inigo-since.py.
> I'm running raspberry pi's with version 4.7.0 and 4.9.1
> Can someone suggest into which directory I should place Glen's version of
> since.py?
>
> On Thursday, 6 October 2022 at 02:58:33 UTC+13 Greg from Oz wrote:
>
>> Thanks Glenn your copy of since.py works with version 4.8.0.
>> https://weather.ubeaut.work/
>>
>> On Sunday, 2 October 2022 at 21:54:49 UTC+11 Glenn McKechnie wrote:
>>
>>> Looks like I'm still using this once - with WeeWX 4.6.0
>>> See attached
>>>
>>> On 02/10/2022, Greg from Oz  wrote:
>>> > Hi,
>>> >
>>> > Is there a copy of the since.py that works with the later versions of
>>> > weewx?
>>> > I cannot find a working copy of it anywhere.
>>> > I tried adding the bits that Tom suggested but obviously I didn't do
>>> it
>>> > correctly and it didn't work.
>>> >
>>> > Thanks
>>> >
>>> > On Monday, 7 February 2022 at 09:45:55 UTC+11 Glenn McKechnie wrote:
>>> >
>>> >> Thanks Tom, for the explanation and the quick fix. It's applied and
>>> >> working.
>>> >>
>>> >> I'll mull over your explanation, bits of it make sense - I'll need
>>> >> more time for the rest ;-)
>>> >>
>>> >> Thanks again.
>>> >>
>>> >> On 07/02/2022, Tom Keffer  wrote:
>>> >> > The problem here is a little technical, so bear with me.
>>> >> >
>>> >> > The way things work normally is that the default configuration for
>>> the
>>> >> > Cheetah generator includes a TimeBinder in the search list. Because
>>> a
>>> >> > TimeBinder includes an attribute 'trend', the tag $trend works.
>>> >> >
>>> >> > The problem is that the extension since.py also includes a
>>> TimeBinder,
>>> >> but
>>> >> > one that has not been properly initialized. It needs a keyword
>>> argument
>>> >> > "trend".
>>> >> >
>>> >> > Why did it work before, but not now? Because the order of
>>> evaluation of
>>> >> >
>>> >> the
>>> >> > search list changed. Before, it searched built-in objects first,
>>> then
>>> >> user
>>> >> > extensions. V4.6 does it the other way around: it searches user
>>> >> extensions
>>> >> > first, then the built-ins. This is to allow overriding the behavior
>>> of
>>> >> the
>>> >> > built-in search list, which the since.py extension inadvertently
>>> did.
>>> >> > So,
>>> >> > when evaluating the tag $trend, the custom, not properly
>>> initialized,
>>> >> > version of TimeBinder is hit first, and the built-in version is
>>> never
>>> >> seen.
>>> >> > This re-ordering should have been mentioned in the Upgrade Guide.
>>> >> >
>>> >> > There are two ways to fix:
>>> >> >
>>> >> > 1. Properly initialize the instance of TimeBinder in since.py.
>>> >> > 2. Change the logic of since.py. Frankly, I don't know why it
>>> returns a
>>> >> > TimeBinder at all. It's way more complicated than it needs to be,
>>> and
>>> >> > has
>>> >> > the side effect that it's basically overriding all of the tags,
>>> >> > including
>>> >> > such mundane tags as $day, $week, etc. It gets away with this
>>> because
>>> >> > its
>>> >> > semantics are identical for these other tags.
>>> >> >
>>> >> > If you want a quick fix, do option #1. Here's the delta
>>> >> >
>>> >> >
>>> >> > --- since.py 2022-02-06 04:59:19.0 -0800
>>> >> > ***
>>> >> > *** 160,169 
>>> >> >
>>> >> > formatter=self.formatter,
>>> >> >
>>> >> > converter=self.converter)
>>> >> >
>>> >> > tspan_binder = NewBinder(db_lookup,
>>> >> > ! timespan.stop,
>>> >> > ! self.generator.formatter,
>>> >> > ! self.generator.converter)
>>> >> >
>>> >> > t2 = time.time()
>>> >> > logdbg2("Since SLE executed in %0.3f seconds" % (t2-t1))
>>> >> > --- 160,176 
>>> >> >
>>> >> > formatter=self.formatter,
>>> >> >
>>> >> > converter=self.converter)
>>> >> >
>>> >> > + try:
>>> >> > + trend_dict = self.generator.skin_dict['Units']['Trend']
>>> >> > + except KeyError:
>>> >> > + trend_dict = {'time_delta': 10800,
>>> >> > + 'time_grace': 300}
>>> >> > +
>>> >> > tspan_binder = NewBinder(db_lookup,
>>> >> > ! timespan.stop,
>>> >> > ! self.generator.formatter,
>>> >> > ! self.generator.converter,
>>> >> > ! trend=trend_dict)
>>> >> >
>>> >> > t2 = time.time()
>>> >> > logdbg2("Since SLE executed in %0.3f seconds" % (t2-t1))
>>> >> >
>>> >> > But, really, since.py should be fixed so that it doesn't override
>>> >> > default
>>> >> > behavior.
>>> >> >
>>> >> > -tk
>>> >> >
>>> >> >
>>> >> >
>>> >> > On Sat, Feb 5, 2022 at 10:21 PM Glenn McKechnie <
>>> glenn.m...@gmail.com>
>>> >> > wrote:
>>> >> >
>>> >> >> Just a heads up to anyone out there that uses since.py (used to
>>> shift
>>> >> >> the rain window)
>>> >> >> and has upgraded to weewx.4.6.0
>>> >> >>
>>> >> >> I went through the process (I needed the new lang option) and for
>>> the
>>> >> >> life of me couldn't work out why i

Re: [weewx-user] safety of wind instruments on metal pole on roof?

2022-01-17 Thread John Smith
On Tue, 18 Jan 2022 at 17:11, Les Niles  wrote:

> What about using a fiberglass pole instead?  The wires to the instruments
> could still potentially attract lightning, but probably wouldn’t carry
> enough current to start a fire — might blow out the weather station
> electronics, but not burn down the house.  Max-gain Systems
>  sells fiberglass rods and tubes in various lengths
> and diameters.
>

I had a near hit that blew the windspeed/direction port on a davis ISS, so
direct hits aren't the only worry.

-- 
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/CAGTinV6osu7bU6-y12WDLJUsuXEsy-mydddDngtmgAvvwD7WMg%40mail.gmail.com.


Re: [weewx-user] refresh screen

2021-01-18 Thread John Smith
I get the same error occasionally, which is annoying as it stops the page
from loading/refreshing, but it's a temp error which can be ignored.

On Tue, 19 Jan 2021 at 04:28, sali...@gmail.com  wrote:

> hi,
> I have sometime this error message when there is the screen refresh
>
> my Firefox browser is up todate !!
>
> do you know this issue ?
>
> thanks
>
> patrick
>
>
> --
> 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/89cef812-7b55-41da-869a-37a404b58ab8n%40googlegroups.com
> 
> .
>

-- 
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/CAGTinV6OjadM-QeOTd2DbBskucPAbEe48N%2BCXfk5YdoiHzE5Jg%40mail.gmail.com.


[weewx-user] Re: Weewx belchertown graph

2020-05-29 Thread John Smith


On Wednesday, 13 May 2020 00:29:45 UTC+10, Raph A wrote:
>
> Hi
>
> I search to do a graph with 2 serie line :
>
> - temperature = this year
> - temperature = last year
>
>

If you are willing to get your hands dirty I came up with code to do this:

https://github.com/evilbunny2008/weewx/blob/61173c762fd30b33251ec304cbc3864c08c96eee/bin/weewx/imagegenerator.py

You just stick that in /usr/share/weewx/user/ assuming you installed from a 
deb file

In my case I'm using a modified Standard skin I 
put user.imagegenerator.ImageGenerator to replace the weewx standard 
ImageGenerator

>From there you just do the following,

[[LastYear_images]]
x_label_format = %d/%m
bottom_label_format = %x %X
time_length = 31536000
aggregate_type = avg
aggregate_interval = 86400
show_daynight = false
previous_year = -1

[[[lastyearbarometer]]]
barometer

[[[lastyeartempdew]]]
outTemp
dewpoint

[[[lastyearhumidity]]]
outHumidity

# Daily high/lows:
[[[lastyearhilow]]]
hi
data_type = outTemp
aggregate_type = max
label = High
low
data_type = outTemp
aggregate_type = min
label = Low Temperature

[[[lastyearwind]]]
windSpeed
windGust
aggregate_type = max

[[[lastyeartempchill]]]
windchill
heatindex

[[[lastyearrain]]]
yscale = None, None, 0.02
plot_type = bar
rain
aggregate_type = sum
aggregate_interval = 604800
label = Rain (weekly total)

[[[lastyearwinddir]]]
yscale = 0.0, 360.0, 45.0
windDir

[[[lastyearradiation]]]
aggregate_type = max
radiation

[[[lastyearuv]]]
yscale = 0, 16, 1
aggregate_type = max
UV

-- 
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/db657de9-169f-48ae-8010-451c61685eb5%40googlegroups.com.


[weewx-user] Re: wee_extension inigo-data.txt is not generated

2020-05-27 Thread John Smith


On Wednesday, 27 May 2020 03:13:04 UTC+10, Ronald Berghammer wrote:
>
> Thanks a lot, no Stress it is not urgent


I just posted new versions of the inigo plugin:

https://github.com/evilbunny2008/weeWXWeatherApp/releases/tag/0.8.26 

-- 
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/524b94f0-5f0c-4bc6-8676-76633f806319%40googlegroups.com.


[weewx-user] Re: wee_extension inigo-data.txt is not generated

2020-05-26 Thread John Smith


On Tuesday, 26 May 2020 17:59:58 UTC+10, Ronald Berghammer wrote:
>
> I have a Outdoor and Indoor Sensor (temp/humidity) and a rain sensor.
> Windsensor i don't have!


I've been making changes to the skin to work round this, but I don't have 
time today to finish fixing 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/0ee9fb53-8e84-4ba9-bc43-35545528b075%40googlegroups.com.


[weewx-user] Re: wee_extension inigo-data.txt is not generated

2020-05-26 Thread John Smith
Can you tell me what weather station you are using?

My guess is your station isn't spitting out as many variables as other 
stations.


On Tuesday, 26 May 2020 04:20:25 UTC+10, Ronald Berghammer wrote:
>
> Hello!
>
> I have a problem with the inigo wee_extension, the inigo-data.txt is not 
> generated.
>
> Here are my logfile:
>
> May 25 20:16:24 raspberrypi weewx[12508] DEBUG weewx.reportengine: Running 
> report 'Inigo'
> May 25 20:16:24 raspberrypi weewx[12508] DEBUG weewx.reportengine: Found 
> configuration file /etc/weewx/skins/Inigo/skin.conf for report 'Inigo'
> May 25 20:16:24 raspberrypi weewx[12508] DEBUG weewx.cheetahgenerator: 
> Using search list ['weewx.cheetahgenerator.Almanac', 
> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 
> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
> 'weewx.cheetahgenerator.Extras', u'user.alltime.ExtendedStatistics', 
> u'user.inigo-since.Since']
> May 25 20:16:24 raspberrypi weewx[12508] DEBUG weewx.manager: Daily 
> summary version is 2.0
> May 25 20:16:24 raspberrypi weewx[12508] ERROR weewx.cheetahgenerator: 
> Generate failed with exception ''
> May 25 20:16:24 raspberrypi weewx[12508] ERROR weewx.cheetahgenerator: 
>  Ignoring template /etc/weewx/skins/Inigo/inigo-data.txt.tmpl
> May 25 20:16:24 raspberrypi weewx[12508] ERROR weewx.cheetahgenerator: 
>  Reason: a float is required
> May 25 20:16:24 raspberrypi weewx[12508] ERROR weewx.cheetahgenerator: 
>   Traceback (most recent call last):
> May 25 20:16:24 raspberrypi weewx[12508] ERROR weewx.cheetahgenerator: 
> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in 
> generate
> May 25 20:16:24 raspberrypi weewx[12508] ERROR weewx.cheetahgenerator: 
>   unicode_string = compiled_template.respond()
> May 25 20:16:24 raspberrypi weewx[12508] ERROR weewx.cheetahgenerator: 
> File "_etc_weewx_skins_Inigo_inigo_data_txt_tmpl.py", line 791, in 
> respond
> May 25 20:16:24 raspberrypi weewx[12508] ERROR weewx.cheetahgenerator: 
>   TypeError: a float is required
> May 25 20:16:24 raspberrypi weewx[12508] INFO weewx.cheetahgenerator: 
> Generated 0 files for report Inigo in 0.23 seconds
>
> Can anybody help me?
>
> Thanks a lot :o)
>

-- 
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/bdc00776-11e9-4887-a109-3e6c77910f14%40googlegroups.com.


Re: [weewx-user] Re: [weewx-development] Feature Request : Add calculate method standard OMM on daily database

2020-05-05 Thread John Smith


On Wednesday, 6 May 2020 15:01:20 UTC+10, Graham Eddy wrote:
>
> “seek, and ye shall find” :-)
>
> anything out there for 9am-9am the *previous* day? (or even since 9am 
> yesterday so i can subtract since 9am today)
>
>
$since($hour=9,$today=False).rain.sum.formatted 

-- 
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/06df511b-8481-4b81-b215-72d255f45804%40googlegroups.com.


[weewx-user] Re: [weewx-development] Feature Request : Add calculate method standard OMM on daily database

2020-05-05 Thread John Smith


On Wednesday, 6 May 2020 10:20:04 UTC+10, Graham Eddy wrote:
>
> i don’t know what the OMM standard is either, but australian BOM (govt 
> weather bureau) uses 9am-9am as its rainfall reporting period. i have been 
> meaning to get around to writing an extension to support this duration this 
> since i first read the weex customisation documentation…
>

Gary already has:

https://github.com/weewx/weewx/issues/91 

-- 
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/b9bc4c3a-57f8-4c5c-a6d3-8fa6c551e77d%40googlegroups.com.


[weewx-user] Re: Connection problem with WMR89

2020-01-21 Thread John Smith
I used to have problems with different usb/serial ports jumping about on 
boot up. I solved this by using the symlinks in /dev/serial/by-id/

-- 
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/c9ce2b9f-f326-4673-ad1a-7793902c7789%40googlegroups.com.


[weewx-user] Re: graph of yearly rain total for past 10+ years

2019-12-08 Thread John Smith


On Monday, 9 December 2019 14:33:17 UTC+11, gjr80 wrote:
>
> Hi,
>
> Short answer is no you cannot do that with the existing WeeWX plot engine. 
> Longer answer; when plotting aggregates using the WeeWX plot engine each 
> line you plot must use the same aggregate interval throughout. So you can 
> plot an aggregate over an hour, a day or a week as these periods are all 
> precisely and singularly defined. However, you cannot aggregate over a 
> month or a year as whilst these intervals are precisely defined they vary 
> from month to month (28, 29, 30 or 31 days) and year to year (365 or 366 
> days). The best you could do would be to create a plot with an aggregate 
> period of 365 days (or 366 days), but of course this will only be an 
> approximation and I suspect you may have some issues having your 365/366 
> day interval align even remotely close to the actual calendar year.
>
> You could of course write a custom image generator to do this but that 
> would involve substantial effort.
>

Wouldn't using high charts be able to do some/all of this? 

-- 
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/e5885a0e-465e-4213-88a0-2dec0f1ca45d%40googlegroups.com.


Re: [weewx-user] History begins yesterday?!?

2019-10-05 Thread John Smith


On Saturday, 5 October 2019 20:13:16 UTC+10, Pila wrote:
>
> I understand this is done simple way: enter current month as a filter to 
> database. But, it is wrong. Current easy is correct only if an user and 
> history for a particular month. 
>
> Completely different issue is: show last 30 days. Both must be available. 
> Same for week and last 7 days, same for a day and last 27 hours. And year 
> or last 365 days.
>

That would be easier than what I wanted, you only need to do it from now - 
86400 * 30 

-- 
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/4421e66a-82fb-4be0-9019-c5f4518d87d1%40googlegroups.com.


Re: [weewx-user] History begins yesterday?!?

2019-10-05 Thread John Smith


On Saturday, 5 October 2019 18:54:34 UTC+10, Andrew Milner wrote:
>
> if people wanted 24 hours or 30 days they will have written a search list 
> extension to provide the information
>
> most people are probably like me - and work in days (which start at 
> midnight), months (which start on the first of themonth) and years (which 
> start on 1st January)
>

I too was after this and I submitted a PR but I'm yet to be told of a 
simple way to do it without patching manually patching things.

 https://github.com/weewx/weewx/pull/324

-- 
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/375ae160-1a4f-4e6e-8f90-e5d5234c31e3%40googlegroups.com.


[weewx-user] Re: Historic Image Generator Time Periods

2019-08-15 Thread John Smith


On Thursday, 15 August 2019 22:48:41 UTC+10, Copain wrote:
>
> Does weewx offer functionality to generate graphs e.g. for yesterday, last 
> year or a specific historic month / year
> OR is it depending on the skin which would have to offer such feature?
>

No, I submitted a patch but it was rejected because it didn't generate for 
all days, months, years.
 

> Basically, I am looking for an 'optional_ago' tag for graphs.
>
> Is there any experience / solution with historic graphs additional to the 
> 4 standard ones in bootstrap skin?
>

https://github.com/weewx/weewx/pull/324 

-- 
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/1a21d5d8-3afd-43e7-b62d-1361dccfd2f2%40googlegroups.com.


[weewx-user] Re: Android weather app for weeWx users

2019-02-07 Thread John Smith


On Thursday, 7 February 2019 19:03:23 UTC+11, weerman wrote:
>
> Hi, just noticed since upgrading weewx to version 3.9.1 my weather data 
> and statistics are shown in imperial numbers, even though i have set weewx 
> to metric.  
>
> weewx itself is not affected by this.
>

I haven't upgraded yet. Did you try reinstalling the skin?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Weatherapp for Android

2019-01-26 Thread John Smith


On Sunday, 27 January 2019 00:38:30 UTC+11, Johannes Ebner wrote:
>
> Yes, the extension downloaded properly (on a raspbian stretch installation)
>
> 13367 Dec  9 04:56 inigo-metric.tar.gz
>

Did you try installing as root or with sudo? 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Weatherapp for Android

2019-01-26 Thread John Smith


On Saturday, 26 January 2019 20:47:37 UTC+11, Johannes Ebner wrote:
>
> Hi,
>
> Installation fails:
>
> wee_extension --install inigo-metric.tar.gz
>>
>> Request to install 'inigo-metric.tar.gz'
>>
>> Extracting from tar archive inigo-metric.tar.gz
>>
>> Traceback (most recent call last):
>>
>>   File "/usr/bin/wee_extension", line 83, in 
>>
>> main()
>>
>>   File "/usr/bin/wee_extension", line 75, in main
>>
>> ext.install_extension(options.install)
>>
>>   File "/usr/share/weewx/weecfg/extension.py", line 115, in 
>>> install_extension
>>
>> self.install_from_dir(extension_dir)
>>
>>   File "/usr/share/weewx/weecfg/extension.py", line 173, in 
>>> install_from_dir
>>
>> shutil.copy(source_path, destination_path)
>>
>>   File "/usr/lib/python2.7/shutil.py", line 119, in copy
>>
>> copyfile(src, dst)
>>
>>   File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
>>
>> with open(dst, 'wb') as fdst:
>>
>> IOError: [Errno 2] No such file or directory: 
>>> '/etc/weewx/skins/Inigo/inigo-data.txt.tmpl'
>>
>>
I just reinstalled it on mine and didn't get any errors, did the extension 
download properly?

2019-01-26 21:07:32 (152 KB/s) - ‘inigo-metric.tar.gz’ saved [13367/13367]

# wee_extension --install inigo-metric.tar.gz
Request to install 'inigo-metric.tar.gz'
Extracting from tar archive inigo-metric.tar.gz
Saving installer file to /usr/share/weewx/user/installer/Inigo
Saved configuration dictionary. Backup copy at 
/etc/weewx/weewx.conf.20190126210943
Finished installing extension 'inigo-metric.tar.gz'

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Weatherapp for Android

2019-01-26 Thread John Smith


On Saturday, 26 January 2019 18:41:39 UTC+11, Johannes Ebner wrote:
>
> Any ideas? 
>

I wrote an app and weewx skin that pulls weather information directly out 
of weeWX so no middle men needed.

https://play.google.com/store/apps/details?id=com.odiousapps.weewxweather

https://github.com/evilbunny2008/weeWXWeatherApp/wiki

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Getting the RPi 3 with Davis Vantage up and running

2019-01-14 Thread John Smith
$alltime.rain.sum

On Monday, 14 January 2019 20:44:28 UTC+11, monmul wrote:
>
> I presume that $rainyear.rain.sum will become $rainalltime.rain.sum?
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Displaying Each Year's Graphs

2019-01-01 Thread John Smith


On Tuesday, 1 January 2019 23:27:17 UTC+11, Cycle London wrote:
>
> Hi,
> As it's now happy new year time, I can finally see a full year's data. 
>  But if I go to 'current' and then click on 'Year', I get the data for 2019 
> - i.e. today.  
>
> If I click on the drop-down menu 'select year' and choose 2018, I get an 
> ASCII graph.  This is fine, but is there any way to get the graphs for 
> 2018, presented in the same way that they were up to midnight last night 
> (or 'this morning', if you prefer)? 
>

I submitted code to do graphs for last year, month, day but it was rejected

https://github.com/weewx/weewx/pull/324 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Android weather app for weeWx users

2018-11-07 Thread John Smith
I've just published a new version of the app (0.5.13) which now exposes the 
underlying exception strings.

The previous way was to show general descriptions and these weren't, in 
hindsight, as useful in solving problems with config settings.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Android weather app for weeWx users

2018-11-05 Thread John Smith
On Tuesday, 6 November 2018 09:57:13 UTC+11, weerman wrote:
>
> Using the latest version 0.512 here. 
>> Edit: Missed the url: https://weatherfrog80.bplaced.net/weewx/ 
>> 
>>  
>>
>
I'm using the same version and used the url:

https://weatherfrog80.bplaced.net/weewx/inigo-settings.txt

and there was no problem

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: MQTT with Belchertown skin - errors, No module named mqtt

2018-08-25 Thread John Smith


On Sunday, 26 August 2018 11:18:40 UTC+10, Colin Larsen wrote:
>
> Aug 26 13:10:14 raspberrypi weewx[3191]:   ImportError: No module 
> named mqtt
>
>
>  

> The mqtt.py file is in /usr/share/weewx/  as per below (I'll change the 
> permissions for read-only shortly)
>
>
>
You need to put it in /usr/share/weewx/user/ 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Steel Guages and driver update question

2018-05-23 Thread John Smith
On Thursday, 24 May 2018 09:20:00 UTC+10, gjr80 wrote:
>
> Yes, will be interesting to see. I have already started work on sourcing 
> the forecast text from elsewhere. Would ideally like to support our own 
> Bureau of Meteorology (not much use for those outside of Australia though) 
> but unfortunately BoM has very restrictive copyright terms. Plenty of other 
> free sources available though.
>

weatherzone has bom data and a free 4 day forecast, dunno where they source 
other data but they also have at least some worldwide information.

>  
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: How can I tell what is causing this error in my logs

2018-05-08 Thread John Smith


On Wednesday, 9 May 2018 11:52:58 UTC+10, Thomas Keffer wrote:
>
> As you're writing code for WeeWX, whether it's a search list extension, a 
> new service, or a driver, it's useful to get in the habit of checking 
> whether a value could be None. It's how WeeWX signals that a datum is 
> missing or bad. 
>

Am I on the right track with this snippet? I wasn't able to find any 
examples and I'm new to python/cheetah

#if ($current.outTemp.degree_F.raw is not None and 
$current.dewpoint.degree_F.raw is not None and $station.altitude.foot.raw 
is not None)
#set $cloudHeight = round((($current.outTemp.degree_F.raw - 
$current.dewpoint.degree_F.raw) * 1000 / 4.4 + $station.altitude.foot.raw) 
* .3048, 0)
$cloudHeight|#slurp
#else
|#slurp
#end if
 

>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: How can I tell what is causing this error in my logs

2018-05-08 Thread John Smith


On Wednesday, 9 May 2018 11:00:51 UTC+10, Thomas Keffer wrote:
>
> In theory you can use the Cheetah compiler 
> 
>  
> to precompile your template to a file. Then you can see the line numbers. 
> But, I've found it frustrating to use and tend to follow Gary's suggestions.
>
> One useful technique is to use the Cheetah #breakpoint 
> 
>  
> command. It's quicker and easier than deleting sections of your code.
>

The big problem is it's intermittent for Greg, and I can't reproduce the 
problem.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: How can I tell what is causing this error in my logs

2018-05-08 Thread John Smith


On Tuesday, 8 May 2018 23:02:25 UTC+10, gjr80 wrote:
>
> Unfortunately the Cheetah templating engine takes the template and does 
> its own stuff to it and generates a temporary .py file. The line numbers in 
> cheetahgenerator errors that refer to a template file don't relate directly 
> to the line numbers in your template but rather the temporary .py file and 
> we don't have access to that file.


Is there no way to keep or copy that temporary template?

 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Android weather app for weeWx users

2018-05-07 Thread John Smith
Just to give everyone an update, I've been adding getting some really great 
feedback about the app and requests to implement new features.

However one of the changes requires adding an additional field of 
$day.windGust.max.formatted 
to be added to the data.txt.tmpl file. I've uploaded templates with the 
changes so anyone using the app just needs to download install it.

wget 
https://github.com/evilbunny2008/weeWxWeatherApp/releases/download/0.3.4/data-0.3.4-imperial.tar.gz
wee_extension --install data-0.3.4-imperial.tar.gz

OR

wget 
https://github.com/evilbunny2008/weeWxWeatherApp/releases/download/0.3.4/data-0.3.4-metric.tar.gz
wee_extension --install data-0.3.4-metric.tar.gz

Changelog

0.3.4 - Shifted about to the main settings drawer and added a zoom option 
to the stats page
0.3.2 - This release adds more caching so it doesn't try updating when 
manual updating is selected.
0.3.1 - Fixed bugs when authentication isn't used.
0.3.0 - Added a drawer layout for settings, added the ability to specify a 
username/password in the URL for settings.txt and data.txt
0.2.25 - Added an option to show forecast on first page
0.2.22 - Added code to wipe settings, fixed up forecast code to be a little 
better
0.2.21 - Added code for weatherzone forecasts
0.2.20 - Fixed crash when update in the background was unticked.
0.2.19 - Removed the refresh button and added SwipeRefreshLayout to most 
screens so manual updates work similar to other apps 
0.2.18 -- Added manual refresh button to the settings page for those that 
only want to update manually.
0.2.17 -- Bug fixes to prevent app from crashing if the data.txt file has 
unexpected characters.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Android weather app for weeWx users

2018-04-27 Thread John Smith
On Friday, 27 April 2018 21:43:49 UTC+10, John Smith wrote:
>
> I have put it back to manual but how do you manually refresh?
>>
>
> You long press on what you want to update, I'll add this to the wiki
>

I just added a manual refresh button on the settings page, although long 
pressing the screen will be quickest as it only does small updates instead 
of refreshing everything

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Android weather app for weeWx users

2018-04-27 Thread John Smith


On Friday, 27 April 2018 19:41:34 UTC+10, Greg from Oz wrote:
>
> Looks good.
> I entered in my URL and set the updates to manual and it told me my URL 
> was wrong.
> I changed the updates to every 5 minutes and then it worked!
>

I'm not able to reproduce this, do you know specifically which URL it 
reported as bad?
 

> I have put it back to manual but how do you manually refresh?
>

You long press on what you want to update, I'll add this to the wiki

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Android weather app for weeWx users

2018-04-17 Thread John Smith


On Tuesday, 17 April 2018 22:20:12 UTC+10, John Burricelli wrote:
>
> This is working great for me.  Thank you for creating this.
>
> https://www.warrenskywarn.org/settings.txt
>

Thanks for posting your settings URL, I ended up spotting a minor bug and 
tweaked the max/min times to be 24 hour time so that the lines on the stats 
page don't wrap 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Android weather app for weeWx users

2018-04-10 Thread John Smith
On Wednesday, 11 April 2018 11:27:31 UTC+10, Bill M wrote:
>
> Nope won't install now?
>

I had the install hang too, I ended up rebooting and it reported that it 
was installed correctly, no idea what's wrong there.

As for you settings.txt you have a ] at the end of the webcam url

webcam=http://www.sanfordweather.com/camera/camera3.jpg]

 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Android weather app for weeWx users

2018-04-10 Thread John Smith
On Wednesday, 11 April 2018 08:01:05 UTC+10, John Smith wrote:
>
> It took me a while to figure it out, but there seems to be some characters 
> before data=
>
> 0xFE 0xFF 
>

After waking up properly, it seems they are utf-8 chars and for what ever 
reason the method I used to download and parse them isn't working, I'll try 
to work out a proper fix, but for the time being I just pushed out an 
update that strips non-ascii chars which then works with your settings 
file. 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Android weather app for weeWx users

2018-04-10 Thread John Smith


On Wednesday, 11 April 2018 07:18:02 UTC+10, Bill M wrote:
>
> I have been fighting with this most of the day, I've followed the 
> instructions and added the bits to weewx, it is generating the data.txt 
> file just fine but when I enter the URL into the app itself it doesn't seem 
> to be able to connect???
>
> When I copy what I entered into my browser the data appears just fine!
>
> URL entered into the app is: 
> http://www.sanfordweather.com/weewx/settings.txt
> and the data file is  http://www.sanfordweather.com/weewx/data.txt
>

It took me a while to figure it out, but there seems to be some characters 
before data=

0xFE 0xFF 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Android weather app for weeWx users

2018-04-10 Thread John Smith
Just to give some background I made an android app similar to Pocket PWS. I 
liked the app, but it was closed source so I couldn't do anything to add 
new features.

With Tom's blessing I named the app weeWx Weather App and I have published 
it to google play 
https://play.google.com/store/apps/details?id=com.odiousapps.weewxweather

To use the app there needs to be some small changes made to weeWx, to 
automate some of the steps needed I created a pair of weeWx extensions, one 
for metric and one for imperial units.

I've outlined the installation steps on 
github: 
https://github.com/evilbunny2008/weeWxWeatherApp/wiki#concise-instructions

All comments and requests about the app should go to 
github https://github.com/evilbunny2008/weeWxWeatherApp/issues

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Android phone users weather app.

2018-02-20 Thread John Smith


On Wednesday, 21 February 2018 15:32:29 UTC+11, Dave Webb wrote:
>
> Greg,
>
> I'm giving it a go but having an issue.
>
> Feb 20 23:30:17 odroid weewx[9132]: cheetahgenerator:  Ignoring 
> template /home/weewx/skins/Standard/realtime.xml.tmpl
> Feb 20 23:30:17 odroid weewx[9132]: cheetahgenerator:  Reason: No 
> module named dateutil.parser
>
>
pip install python-dateutil

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: How to provide user/password to my IP camera?

2018-01-16 Thread John Smith


On Wednesday, January 17, 2018 at 7:20:47 AM UTC+11, Tryphon Cosinus wrote:
>
> Hello,
>
> This is my Video section in skin.conf
>
> [[video]]
>   hyperlink = http://mydomain.com:777/cgi-bin/video.jpg
>   still = http://mydomain.com:777/cgi-bin/video.jpg 
> 
>   user = demo
>
> I tried with no password (I need at least a username to access the IP 
> camera) but I always get an authentification request.
>

Have you tried adding the username and password to the URLs?

eg
http://username:passw...@mydomain.com:777/cgi-bin/video.jpg

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Generating files less often

2017-12-01 Thread John Smith
I wanted to create a yesterday report similar to the today report, which 
worked ok, but it kept generating images even though I had stale_age for 
the report. I fixed this by adopting the stale_age code from 
cheetahgenerator.py and putting in a slightly modifies imagegenerator.py

I've no idea how to do pull requests so here is a diff

--- imagegenerator.py.old 2017-11-23 00:36:48.0 +1100
+++ imagegenerator.py 2017-12-02 16:21:22.767704720 +1100
@@ -83,7 +83,19 @@
 # Check whether this plot needs to be done at all:
 if skipThisPlot(plotgen_ts, ai, img_file) :
 continue
-
+
+# skip files that are fresh, but only if staleness is 
defined
+stale = to_int(plot_options.get('stale_age'))
+if stale is not None:
+t_now = time.time()
+try:
+last_mod = os.path.getmtime(img_file)
+if t_now - last_mod < stale:
+syslog.syslog(syslog.LOG_DEBUG, 
"imagegenerator: Skip '%s': last_mod=%s age=%s stale=%s" % (img_file, 
last_mod, t_now - last_mod, stale))
+continue
+except os.error:
+pass
+

This is my first attempt at python coding so please be kind :)

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Generating files less often

2017-11-29 Thread John Smith


On Thursday, November 30, 2017 at 2:21:21 PM UTC+11, Andrew Milner wrote:
>
> The yearly plots are only generated once a day anyway, and I think the 
> monthly plots are every 3 hours.  They are generated from the summary data 
> so should not really be taking a couple of minutes each archive interval.  
> What skin are you using, on what kind of computer?  I suspect something 
> else you are running is causing the high processor loads.  My Pi, running 
> the bootstrap skin, generates the reports in 90 seconds at midnight and 
> about 31 seconds at other times.
>

It was most likely due to the ten year graphs I generate.

I'm using a rock64, bit quicker than a rpi, with 4G of ram and usb3 for the 
hdd, I've been tweaking mariadb to cache more queries and such, using 
stale_age it completes in about 4-5seconds before it was take 150-160s

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Generating files less often

2017-11-29 Thread John Smith


On Thursday, November 30, 2017 at 12:00:54 PM UTC+11, gjr80 wrote:
>
> Hi,
>
> There are two options that may do what you want. The stale_age option 
> let's you specify an 'age' after which a report is considered stale and it 
> is regenerated. The stale_age option is covered here 
>  in the 
> Customization Guide. You can achieve much more precise control over when a 
> report file is generated by using the report_timing option. The 
> report_timing option provides cron like control over report generation. 
> It is mentioned here  
> in the User's Guide and it's use is explained in detail here 
>  in the 
> Customization Guide.
>

Thanks for that,  stale_age seems the easiest way to go.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Generating files less often

2017-11-29 Thread John Smith


On Thursday, November 30, 2017 at 12:01:31 PM UTC+11, Tom Keffer wrote:
>
> See the section *Customizing the report generation time 
> * in the 
> Customizing Guide.
>
> But, why do you want to do this?
>

Because with everything running on my server, mysql was hitting and staying 
at 100% for a couple of minutes every 5 minutes time.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Generating files less often

2017-11-29 Thread John Smith
I've looked through the documentation and nothing jumped out to me, I'm 
wondering if it's possible to generate the monthly and yearly templates 
daily instead of every archive record received.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: problem with time when using $span

2017-01-08 Thread John Smith


On Sunday, January 8, 2017 at 11:10:09 PM UTC+11, Andrew Milner wrote:
>
> I just tried amending my stats page to give me max values over last 7 
> days, 30 days and year(365 days) using 
> $span($day_delta=7).outTemp.max, 
> $span($day_delta=30).outTemp.max and 
> $span($day_delta=365).outTemp.max
> and the corresponding time of the occurrance e.g
> $span($day_delta=7).outTemp.maxtime
>
> If I use
> $week.outTemp.max and $week.outTemp.maxtime I get the max value and the 
> date and time that the max occurred but if I change this to
> $span($day_delta=7).outTemp.max and $span($day.delta=7).outTemp.maxtime I 
> get only the time information - not the date.
>
> Is it possible to have maxtime as date and time for $span rather than just 
> time, as for $day, $week, $month and $year??
>
>
>
Not sure if this is any help to you but I did a 10 year page (522 weeks) 
and used the following:

$span($week_delta=522).outTemp.max at 
$span($week_delta=522).outTemp.maxtime.format("%d/%m/%y %H:%M") 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Image caching

2016-12-09 Thread John Smith


On Saturday, December 10, 2016 at 3:23:25 PM UTC+11, Chris Mattingly wrote:
>
> The real solution here should be to use unique filenames,
>

Why not just put the current timestamp as a parameter...

filename.png?time=

This is usually enough to stop caching in all browsers, without needing to 
track unique filenames. 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Weewx not running properly No update to Santa Clause page

2016-10-06 Thread John Smith


On Friday, October 7, 2016 at 4:41:08 PM UTC+11, Don l wrote:
>
> hi I looked at your program. If you just whipped up that one on a whim 
> just for an answer for me I am impressed. I am just begining to learn 
> python so I know almost nothing yet. I do not have any written data for the 
> rain days up to now.
>

I cooked it up a couple of weeks ago for my site. 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Weewx not running properly No update to Santa Clause page

2016-10-04 Thread John Smith


On Wednesday, October 5, 2016 at 4:19:23 PM UTC+11, Andrew Milner wrote:
>
> Regarding the rainfall to date - if you have the data for January - 
> current already stored somewhere (eg wunderground or in another 
> application) you may be able to use wee_import to grab the historic data.  
> If the rainfall for the year is just a number which you know in your head 
> then I would suggest that you just forget it - or maybe even set weewx to 
> start a rain year in October (by using the start rainyear setting in the 
> weewx .conf file)
>

I wrote a simple php script to work out raindays, rain to date and rain 
days/total for last year.

http://pastebin.com/mGLBAyG1

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: ten year graphs

2016-09-05 Thread John Smith


On Tuesday, September 6, 2016 at 12:44:06 PM UTC+10, John Smith wrote:
>
> Do I need to change any config files?
>

Never mind, I removed the  utilities.pyc file and now it works fine, thanks 
for the help.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: ten year graphs

2016-09-05 Thread John Smith


On Tuesday, September 6, 2016 at 12:06:53 PM UTC+10, Tom Keffer wrote:
>
> John, a commit done on 7 April 
> 
>  
> allows multi-year plots. It will appear in V3.6. 
>
> If you can't wait, substitute your version of weeplot/utilities.py with this 
> one 
> 
> .
>

Do I need to change any config files?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: ten year graphs

2016-09-05 Thread John Smith


On Tuesday, September 6, 2016 at 10:31:00 AM UTC+10, mwall wrote:
>
> On Monday, September 5, 2016 at 5:21:06 AM UTC-4, John Smith wrote:
>>
>> Any help would be greatly appreciated...
>>
>
> make the plot wider using image_width
>
> note that you can change the width/height of individual plots by 
> specifying image_width/image_height in the stanza for the plot you want to 
> specialize.  that way your other plots will have the width/height specified 
> directly in the [ImageGenerator] stanza.
>

I found this site:

http://www.yarrawarrah-ws.info/fiveyear.html

While the graphs look bigger, it doesn't overlap along the y-axis

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: ten year graphs

2016-09-05 Thread John Smith


On Monday, September 5, 2016 at 8:29:43 PM UTC+10, Andrew Milner wrote:
>
> tried 60 or 90???  With weewx's inbuilt graphing engine I think the only 
> way to reduce the axis information is to reduce the number of axis 
> aggregation points
>

Setting it to 90 days made the data disappear...



 

> or change the labels from Jan Feb Mar to J F M may help
>

I'm trying to display a single years beneath the graph, I think anything 
else would be too cluttered...

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: ten year graphs

2016-09-05 Thread John Smith


On Monday, September 5, 2016 at 8:13:11 PM UTC+10, Andrew Milner wrote:
>
> have you tried changing the aggregate interval ??
>

Yup, I set it to 30 days

aggregate_interval = 2592000 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] ten year graphs

2016-09-05 Thread John Smith
I'm relatively new to weewx and have successfully imported data from a 
previous weather station, and so I have 9 years or so of data and I'd like 
to have ten year graphs.

I managed to get graphs by copying yearly sections in the skin.conf file 
and bumping time_length to 31536, but the problem is the axis values 
overlap each other and there are far too many axis bars.




Any help would be greatly appreciated...

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx will not start

2016-08-07 Thread John Smith


On Sunday, August 7, 2016 at 6:53:27 PM UTC+10, Joep L. Blom wrote:
>
> I am working with weewx since over 2 years and like it very much. 
> However, I now have a problem that stumps me. 
> I had removed my logger to another room temporary to see if reception of 
> wireless signals was better. 
> When I returned it to its original location and connected it to my 
> system weewx won't start or do anything. 
>


Did you try to stop it then start it, I had the same problem with the 
/etc/init.d/weewx method, it won't start if it dies for what ever reason. 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: After Updating to Latest Version of Ubuntu I get Segmentation fault (core dumped)

2016-08-04 Thread John Smith
To latest version 16.04 I did a " do-release-upgrade " I am running a 
server, not graphical linux.


And Ubuntu is up to date ...

root@dzone:/# do-release-upgrade
Checking for a new Ubuntu release
No new release found


if I do apt-get install owfs it reports latest version,

root@dzone:/# apt-get install owfs
Reading package lists... Done
Building dependency tree
Reading state information... Done
owfs is already the newest version (3.1p1-2ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

apt-get install weewx does not make sense however 

root@dzone:/# apt-get install weewx
Reading package lists... Done
Building dependency tree
Reading state information... Done
weewx is already the newest version (2.6.4-1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

Because I was previously running 3.5.0  as per the web pages that 
were uploaded before the unbuntu upgrade ...


What I imagine I will do is re-install v3.5.0 weewx and use the backed 
up copy of my weewx.conf  and suck it and see  not sure why 
linux chose to downgrade weewx or sees an older version ... however I 
did have a very full boot partition, and was a bit cramped for room, 
which is why I chose to tidy up the os in the first place. Perhaps 
somewhere along the way it lost its way ... which I seriously doubt, as 
all appears to be very stable at the moment ... owhttp reports the 
attached 1 wire devices ... so it appears to be a python thing ... or a 
lack of permission to use the usb resource  although I have tried 
that with udev .. rules.


A bit of a mystery. Getting a bit peeved at the 1 wire setup anyway  
looking very hard at a pi 3 or a dual arduino setup in the future  
after all it is a hobby :-)



John S




On 05/08/16 12:50, mwall wrote:



On Thursday, August 4, 2016 at 8:11:59 PM UTC-4, John D Smith wrote:

And this is showing in the syslog 

Aug  5 11:31:35 dzone OWFS[322]: DEFAULT: owlib.c:(208) Cannot
open USB bus master
Aug  5 11:31:35 dzone kernel: [53284.385467] python[322]: segfault
at 0 ip b7036039 sp bfa131f0 error 6 in
libusb-1.0.so.0.1.0[b7032000+19000]



what did you update from, and what did you update to?

did you compile the one-wire libraries, or install pre-built binaries 
from some package?


you might have to recompile the ow libraries

m

--
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/NUue5XTXzGI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
weewx-user+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
For more options, visit https://groups.google.com/d/optout.