[weewx-user] Re: week number not following ISO 8601

2019-07-10 Thread Andrew Milner
googling came up with the following function to convert simple week number to iso week number: >From the simple week number to the ISO week number. In [ISO8601], the week number is defined by: - weeks start on a monday - week 1 of a given year is the one that includes the first Thursday

[weewx-user] Re: week month year buttons unresponsive in 3.8.2

2018-09-11 Thread samtheduck
I thank you, kind sir. I cannot explain the omission, other than I have a number of irons in the fire and I pressed the wrong key. And, yes, the site is alysonwonderland.org. I find intolerable the "agreements" concerning "intellectual property" (a non-entity, if ever there was one, inasmuch

[weewx-user] Re: Week no

2016-09-25 Thread Andrew Milner
Try assigning the subscripted value to a variable if you want the computer name rather than the platform name to see if that works. On Sunday, 25 September 2016 14:30:50 UTC+3, zkab wrote: > OK - I am almost at the finish line. > When I run Python in interactive mode I get following - which

[weewx-user] Re: Week no

2016-09-23 Thread Andrew Milner
You have, I think, misunderstood Tom - you do not need to create a service or anything so complex!! All you need to do is put his import statement INTO THE TEMPLATE for the page YOU WANT TO DISPLAY the version in, and then use the tag for the data to be displayed. I just tried it, and it

[weewx-user] Re: Week no

2016-09-23 Thread zkab
I tried to test the operating system interfaces but I did not get it right. Since I included lowBattery.py in my system then I specified 'import platform' in the beginning of lowBattery.py like this: #Example of how to implement a low battery alarm in weewx. import time import smtplib from

Re: [weewx-user] Re: Week no

2016-09-20 Thread Thomas Keffer
The Cheetah template engine can interpret any Python code. So, you could do something like in your template (NOT TESTED): #import platform The kernel is: $platform.platform() -tk On Tue, Sep 20, 2016 at 9:32 AM, zkab wrote: > Thanks -

[weewx-user] Re: Week no

2016-09-20 Thread zkab
Thanks - it worked just perfect. An other similar question - is there a way to get the version of Debian in weewx, like I get from command 'uname -r' in Linux -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and

[weewx-user] Re: Week no

2016-09-20 Thread Andrew Milner
Format dateTime as %U or %W depending on whether Sunday or Monday is the first day of the week. eg current.dateTime.format("%U") see https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior for full formatting options On Tuesday, 20 September 2016 11:53:46 UTC+3, zkab