Beta of V4.5.0 available

240 views
Skip to first unread message

Tom Keffer

unread,
Mar 24, 2021, 5:10:20 PM3/24/21
to weewx-user, weewx-development
Several interesting new features. Most notably, you can add, remove, or rename columns in the main database with the utility wee_database. No need to use --reconfigure with all the database shuffling involved! For example, to remove the type soilMoist2:

wee_database --drop-columns=soilMoist2

If you use this feature, remember that this is a beta release. Be sure to do a backup first!!

There is also support for using series in the templates, including generating JSON. For example, a JSON series of the maximum temperature for each day of the month would be:

$month.outTemp.series(aggregate_type='max', aggregate_interval='day').json

This generates something like:

[[1614585600, 1614672000, 58.2], [1614672000, 1614758400, 55.8], [1614758400, 1614844800, 59.6], ... ]

This is a series of 3-way tuples, where each tuple consists of the start time of the day, stop time of the day, and (in this case) maximum temperature for the day.

See the Wiki article Tags for series for more details. Please note: this is still experimental, and subject to change!

Lots of miscellaneous bug fixes. 

Find it in the usual place for development releases. 

Feedback is very welcome!!

-tk

mbat...@gmail.com

unread,
Mar 28, 2021, 4:51:38 PM3/28/21
to weewx-development
All is well in my environment...  Running for 68+ hours.

Devuan 3 (beowulf)
Linux 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux
Python 3.7.3 (set via "alternatives")
weewx 4.5.0b2 (setup.py install, using MariaDB)
weatherflow-udp (1.13 2021-02-22 by Jan-Jaap van der Geer)

I haven't exercised any of the "new features" or functionality.
Am looking forward to v4.5 final release.

Thanks!

On Wednesday, March 24, 2021 at 4:10:20 PM UTC-5 Tom Keffer wrote:
 <snippage>

Praveen Chandrasekaran

unread,
Mar 29, 2021, 7:21:51 AM3/29/21
to weewx-development
Hoping to see Seasons skin with Highcharts support out of the box with new json support. Something that I would love - in fact seeing how I can do it myself..

Karen K

unread,
Mar 30, 2021, 3:32:04 AM3/30/21
to weewx-development
The original graphs engine with that day-night-background-coloring is nice, too.

Praveen Chandrasekaran

unread,
Apr 3, 2021, 10:43:44 AM4/3/21
to weewx-development
Was seeing if I can embark on project to convert Seasons charts to json based interactive highcharts. But way out of my depth.
Message has been deleted

Tom Keffer

unread,
Apr 4, 2021, 11:07:36 AM4/4/21
to Pasi Sainio, weewx-development
I've been able to "sort of" confirm this. I say "sort of," because it works if I run wee_config directly, but not if it is run indirectly through setup.py. 

I'll figure it out.

-tk

On Sun, Apr 4, 2021 at 12:46 AM Pasi Sainio <pasi....@gmail.com> wrote:

Handling utf-8 letter is broken in the installer. If I set Description to Kyrölä, new install fails with:
Traceback (most recent call last):
 File "/home/weewx/bin/wee_config", line 123, in <module>
   main()
 File "/home/weewx/bin/wee_config", line 117, in main
   config_mgr.run(args, options)
 File "/home/weewx/bin/weecfg/config.py", line 126, in run
   backup_path = weecfg.save(config_dict, output_path, not options.no_backup)
 File "/home/weewx/bin/weecfg/__init__.py", line 215, in save
   config_dict.write(fd)
 File "/usr/lib/python3/dist-packages/configobj.py", line 2119, in write
   'ascii')
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 953-954: surrogates not allowed

However, if I make initial config with 4.4.0, seems to work fine, even reconfigure with 4.5.x goes without errors.
--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/b333a1f6-8f9c-4ebc-8ebe-bb1d6d73a8e2n%40googlegroups.com.

Tom Keffer

unread,
Apr 4, 2021, 3:22:32 PM4/4/21
to Pasi Sainio, weewx-development
Pasi,

Could you try again, making one small change? In setup.py, change this

    proc = subprocess.Popen(args,
                            env={'PYTHONPATH': install_lib},
                            stdin=sys.stdin,
                            stdout=sys.stdout,
                            stderr=sys.stderr)
to this

    os.environ['PYTHONPATH'] = install_lib
    proc = subprocess.Popen(args,
                            # env={'PYTHONPATH': install_lib},
                            stdin=sys.stdin,
                            stdout=sys.stdout,
                            stderr=sys.stderr)

In summary, you are adding one line, and commenting out one line.

Then give it another try.

If you are not comfortable doing this, we'll figure out another solution.

-tk

On Sun, Apr 4, 2021 at 12:46 AM Pasi Sainio <pasi....@gmail.com> wrote:

Handling utf-8 letter is broken in the installer. If I set Description to Kyrölä, new install fails with:
Traceback (most recent call last):
 File "/home/weewx/bin/wee_config", line 123, in <module>
   main()
 File "/home/weewx/bin/wee_config", line 117, in main
   config_mgr.run(args, options)
 File "/home/weewx/bin/weecfg/config.py", line 126, in run
   backup_path = weecfg.save(config_dict, output_path, not options.no_backup)
 File "/home/weewx/bin/weecfg/__init__.py", line 215, in save
   config_dict.write(fd)
 File "/usr/lib/python3/dist-packages/configobj.py", line 2119, in write
   'ascii')
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 953-954: surrogates not allowed

However, if I make initial config with 4.4.0, seems to work fine, even reconfigure with 4.5.x goes without errors.


lauantai 3. huhtikuuta 2021 klo 17.43.44 UTC+3 pravee...@gmail.com kirjoitti:

Pasi Sainio

unread,
Apr 7, 2021, 2:19:46 PM4/7/21
to weewx-development
I went for pure ascii name for my setup, I'll try this with another install on the weekend.  Not sure anymore if it worked with 4.4.0 either.

Tom Keffer

unread,
Apr 7, 2021, 2:45:56 PM4/7/21
to Pasi Sainio, weewx-development
It probably did not work on V4.4.0, but it's only a problem when doing a new installation. Using wee_config directly (as opposed to through setup.py) works as it should.

You can get the modified version of setup.py here.

Pasi Sainio

unread,
Apr 10, 2021, 3:15:08 AM4/10/21
to weewx-development
Hi,

yeah, I can confirm, clean ubuntu 18.04.5 install on a x86_64 virtual machine fails with 4.5.1  install, but works fine with this modified version!  Thanks!
Reply all
Reply to author
Forward
0 new messages