Re: [weewx-user] Reading weewx.sdb file with Python program

2017-02-06 Thread Janez Kranjski
I won't write nothing ... except TNX :-) On Monday, February 6, 2017 at 3:25:52 PM UTC+1, Tom Keffer wrote: > > Simple typo. > > *con = lite.connect('weewx.sdb')* > > -tk > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from

Re: [weewx-user] Reading weewx.sdb file with Python program

2017-02-06 Thread Thomas Keffer
Simple typo. *con = lite.connect('weewx.sdb')* -tk On Mon, Feb 6, 2017 at 3:10 AM, Janez Kranjski wrote: > Noob question - I copied weewx.sdb file to temp folder on my Linux (so it > is not opened or accessible). > Then I tried simple Python program: > > *#!/usr/bin/python*

[weewx-user] Reading weewx.sdb file with Python program

2017-02-06 Thread Janez Kranjski
Noob question - I copied weewx.sdb file to temp folder on my Linux (so it is not opened or accessible). Then I tried simple Python program: *#!/usr/bin/python* *import sqlite3 as lite* *import sys* *con = lite.connect('weeex.sdb')* *with con:* * cur = con.cursor()* * cur.execute("SELECT *