Re: [weewx-user] Re: Pyehpem and International Space Station

2020-02-11 Thread Kevin Davis
Ugh, duh. Thanks. On Tue, Feb 11, 2020 at 12:48 PM Glenn McKechnie wrote: > pass is a reserved word. It's a statement with a meaning of its own so > the python interpretor does not understand its use as a variable name. > > Rename it to something else - iss_pass ? > > On 12/02/2020, Kevin

Re: [weewx-user] Re: Pyehpem and International Space Station

2020-02-11 Thread Glenn McKechnie
pass is a reserved word. It's a statement with a meaning of its own so the python interpretor does not understand its use as a variable name. Rename it to something else - iss_pass ? On 12/02/2020, Kevin Davis wrote: > What am I missing here? > > String in my iss_all.json file: > #set global

[weewx-user] Re: Pyehpem and International Space Station

2020-02-11 Thread Walter Smith
Cheetah doesn't like $pass as a variable name. It must confuse Cheetah, there's a #pass directive. Try a different variable name there. -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails

Re: [weewx-user] Re: Pyehpem and International Space Station

2020-02-11 Thread Kevin Davis
What am I missing here? String in my iss_all.json file: #set global $iss_all = [["Tue Feb 11 10:54 am","SW/10","NE/9","69","6min 45sec"],["Tue Feb 11 12:31 pm","W/10","NE/9","33","6min 16sec"],["Tue Feb 11 02:09 pm","WNW/10","ENE/9","28","6min 3sec"],["Tue Feb 11 03:46

Re: [weewx-user] Re: Pyehpem and International Space Station

2020-02-10 Thread Kevin Davis
Very cool. Thanks for the input. Certainly helps me to see a working example! On Mon, Feb 10, 2020 at 9:40 AM Walter Smith wrote: > Doing something very similar. Cron job at midnight, Python script to > format a list of stuff from Skyfield I want to display in my template. > Prefix the list

[weewx-user] Re: Pyehpem and International Space Station

2020-02-10 Thread Walter Smith
Doing something very similar. Cron job at midnight, Python script to format a list of stuff from Skyfield I want to display in my template. Prefix the list with a "#set global" line: with open('skyprint2A.txt','w') as f3: f3.write('#set global $skytext2 = ') json.dump(l_out_lines_txt,

Re: [weewx-user] Re: Pyehpem and International Space Station

2020-02-09 Thread Kevin Davis
That certainly seems the easiest way, I just have a FOMO on doing it the "right" way. LOL. Thanks for the input and that's probably what I'll stick with for now then. Just pretty it up and call it a day. On Sun, Feb 9, 2020 at 8:51 AM vince wrote: > On Sunday, February 9, 2020 at 8:42:58 AM

Re: [weewx-user] Re: Pyehpem and International Space Station

2020-02-09 Thread p q
I don't see anything improper about doing it the way you're doing it. It's not following the general architecture for Weewx, but if it works for you and you're learning, I think you should keep at it. To make it look better, take a look at the tables that are already in this skin - either using

Re: [weewx-user] Re: Pyehpem and International Space Station

2020-02-09 Thread vince
On Sunday, February 9, 2020 at 8:42:58 AM UTC-8, Kevin Davis wrote: > > I'm not using Pyephem for calculating these, I'm using Skyfield and I have > written iss.py to build the data set. > > Sorry if I'm asking a remedial question. I'm still wrapping my head > around Python and OO programming.

Re: [weewx-user] Re: Pyehpem and International Space Station

2020-02-09 Thread Kevin Davis
I'm not using Pyephem for calculating these, I'm using Skyfield and I have written iss.py to build the data set. Sorry if I'm asking a remedial question. I'm still wrapping my head around Python and OO programming. On Sun, Feb 9, 2020 at 8:35 AM Thomas Keffer wrote: > See the section *Adding

Re: [weewx-user] Re: Pyehpem and International Space Station

2020-02-09 Thread Thomas Keffer
See the section *Adding new bodies to the almanac * in the Customizing Guide for instructions. On Sun, Feb 9, 2020 at 8:30 AM Kevin Davis wrote: > Ok, I'm getting a little closer, but I'm struggling on how to

[weewx-user] Re: Pyehpem and International Space Station

2020-02-09 Thread Kevin Davis
Ok, I'm getting a little closer, but I'm struggling on how to incorporate this directly into the weewx reporting system. I have written a Python program which builds(currently ugly) a data set of ISS passes. I am buildiing a file called iss.inc, outisde of weewx through a daily cron job, and

Re: [weewx-user] Re: Pyehpem and International Space Station

2020-02-03 Thread Kevin Davis
I would love to do some moon-bounce! Looks like so much fun and lots to learn. I have a pi-star here on the bench to build but haven't gotten around to it yet, but I do stay pretty active on All-Star. Usually connected to the East Coast Reflector. While I've been a programmer for 25+

Re: [weewx-user] Re: Pyehpem and International Space Station

2020-02-03 Thread Susan Mackay
> > Had my 40m WSPR transmitter running last night and made it to just south > of you, into Tasmania to VK7JJ; 13127 km away from me using 200 mw! > Very impressive! I've not got into WSPR myself - I'm more of a D-Star girl. Next you should try a moon bounce. I've been playing with the

Re: [weewx-user] Re: Pyehpem and International Space Station

2020-02-03 Thread Kevin Davis
And additionally Susan, apropos of nothing, but I noticed you're a ham, as am I; KE7K here. Had my 40m WSPR transmitter running last night and made it to just south of you, into Tasmania to VK7JJ; 13127 km away from me using 200 mw! 7 3 On Mon, Feb 3, 2020 at 7:14 AM Kevin Davis wrote: >

Re: [weewx-user] Re: Pyehpem and International Space Station

2020-02-03 Thread Kevin Davis
Thanks a lot Susan! That's exactly what I was looking for. On Sun, Feb 2, 2020 at 6:32 PM Susan Mackay wrote: > Also consider using SkyField instead of PyEphem as it is newer and > supported. > Look at https://rhodesmill.org/skyfield/earth-satellites.html and the > example under the title

[weewx-user] Re: Pyehpem and International Space Station

2020-02-02 Thread Susan Mackay
Also consider using SkyField instead of PyEphem as it is newer and supported. Look at https://rhodesmill.org/skyfield/earth-satellites.html and the example under the title 'Finding when a satellite rises and sets' Susan On Sunday, February 2, 2020 at 11:21:29 AM UTC+11, Kevin Davis wrote: > >