Hi Manuel, you and I have the same question! How to create a weewx new
tag! I plan to study that over the next month or so.
Regarding the error below, in storm.py the intention is that you open your
weewx database in line 42: sqlite3.connect("your database filename")
For experimentation, assuming you are using weewx on Linux, copy your
database file, which is probably at /var/lib/weewx, named weewx.sdb, to
/tmp. Then put the /tmp/weewx.sdb filename into the .connect line!
Then you can try out my script.
Rich
On Monday, April 2, 2018 at 1:46:53 PM UTC-7, Manuel wrote:
>
>
>
> El domingo, 25 de febrero de 2018, 18:25:52 (UTC+1), Rich Altmaier
> escribió:
>>
>> I fixed the licensing statement to be GPL3, added the copyright notice,
>> and I changed the storm dry period to 24 hours.
>> Thanks, Rich
>>
>> Hi, I run the file storm.py ad i have a error: Traceback (most recent
>> call last):
>> File "/var/lib/weewx/storm.py", line 53, in <module>
>> "" ", {" now ": storm_now," past ": storm_in_past})
>> sqlite3.OperationalError: no such table: archive
>> ????? Thanks
>>
>> On Saturday, February 24, 2018 at 4:09:26 PM UTC-8, Rich Altmaier wrote:
>>>
>>> I studied the weewx archive database and created this SQL, embedded into
>>> a python script, to find the most recent rain storm and show the running
>>> total rainfall of the storm.
>>> You can see the script is parameterized to define a storm as delimited
>>> by some number of hours of no rain, I selected 8.
>>>
>>> My objective is to hope someone will extract useful portions for the
>>> calculation of a tag to add to a report, enabling showing storm total
>>> rainfall!
>>> If you do this, please do add to this post!!
>>> The script *does not modify* your database, creating only a temporary
>>> table to make the query reasonably quick.
>>>
>>> Thanks, Rich
>>>
>>>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.