Thanks for the tips, I'm going to see if I am able to get it working under python 3 as that seems to be the future. Good to know that it may run as is with WeeWX 4.
On Sunday, January 19, 2020 at 12:04:33 AM UTC-5, gjr80 wrote: > > As John said the code has not been ported to WeeWX v4 and definitely will > not run under WeeWX v4/python 3. That being said, it may work with WeeWX v4 > when run under python 2; looking through the code quickly I don't see > anything that obviously will not work under WeeWX v4/python 2. WeeWX v4 > logging has changed, with the syslog module no longer being used; however, > that will not prevent the extension from running under WeeWX v4/python 2, > you will just find the RainMachine log entries will be formatted a little > differently. > > Its a fairly basic small extension which can be easily and fully ported to > WeeWX v4 python 2/3. If you get stuck sing out and we can port it for you. > > Gary > > On Sunday, 19 January 2020 14:51:42 UTC+10, John Kline wrote: >> >> I had a quick look. It imports Queue (with a capital ‘Q’). That will >> fail in python 3. >> As such, this has not been ported. >> >> As for an answer to the general question, there are tools available to >> convert code (2to3, modernize). It usually requires more work than that, >> but you could run one of them on the code to see what it changes. That >> would give you a good idea of whether it is already python3 ready. >> >> Actually, a better way is just to read up on the subject. When you do, >> it will be pretty easy to spot code that will run in 2 and 3. >> >> On Jan 18, 2020, at 8:39 PM, G Hammer <gary....@gmail.com> wrote: >> >> >> Seems that there should be a way to determine this as the change to >> Python 3 isn't just a WeeWX thing. >> >> As for whether or not to run the beta, it's beta 8 and what I use seems >> to be ok as far as reports go. Is it not what beta are for after all? >> >> Anyway, not what I asked, so let's see what else comes. >> >> On Sat, Jan 18, 2020, 11:14 PM Andrew Milner <andrew....@gmail.com> >> wrote: >> >>> I do not think v4 has officially been released yet - so I would >>> recommend installing the new hardware with 3.9 and do the upgrade when v4 >>> is finally released. That way you do not change the whole shebang - >>> hardware and software - in one giant leap. Regarding 'how do you know' - >>> the answer is that you don't!! The original writer may update wike or >>> download with additional information, or another user may post a comment, >>> but there is no automatic verification process of all extensions written by >>> other people. >>> >>> >>> >>> >>> On Sunday, 19 January 2020 04:46:16 UTC+2, G Hammer wrote: >>>> >>>> I'd like to run v4 when I upgrade hardware this week. >>>> Seems to be doing fine for the devices and skin I use. >>>> With one exception, a RainMachine extension. >>>> There is one that was written by someone at RainMachine, but I think he >>>> has moved on. >>>> I've asked there and raised an issue on the github page for the >>>> extension with no response. >>>> >>>> How, besides installing v4 and the extension, can I determine if it >>>> will run under v4? >>>> >>>> The extension is located at >>>> https://github.com/sprinkler/rainmachine-weewx and referenced at >>>> https://github.com/weewx/weewx/wiki/RainMachine >>>> >>>> With this functionality confirmed, I can make the change, without it >>>> I'll need to stay with v3 >>>> >>>> >>>> -- >>> 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/wlufg8AdT0E/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> weewx...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/e95133ce-4a77-43db-930f-facf0e73e5e8%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/weewx-user/e95133ce-4a77-43db-930f-facf0e73e5e8%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...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/CALBRR-09JohVQPwKLeyHfVBW6DV1KdZOP5QhLzTm3ms01teygA%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/weewx-user/CALBRR-09JohVQPwKLeyHfVBW6DV1KdZOP5QhLzTm3ms01teygA%40mail.gmail.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/115a223a-cb4f-4c1e-8866-42f786a9d945%40googlegroups.com.