Re: [weewx-user] Sun & Moon sine plot/graph

2019-12-15 Thread Xant
Not a perfect solution yet, but a good temporary option. Underneath, Sun & Moon 24hrs altitude plot through Grafana Sun and Moon Datasource Plugin: https://grafana.com/grafana/plugins/fetzerch-sunandmoon-datasource Embedded into Belchertown skin front page: X -- You received this message be

Re: [weewx-user] Sun & Moon sine plot/graph

2019-12-02 Thread Xant
Any volunteer to transpose small PHP script to JS? X On Sunday, November 24, 2019 at 4:20:47 PM UTC-5, Pat wrote: > > Interesting idea. Not everyone can run PHP. If you find it in JS then > maybe it's worth an add on for the skin pending any licensing restrictions. > > On Saturday, November 23

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-24 Thread Pat
Interesting idea. Not everyone can run PHP. If you find it in JS then maybe it's worth an add on for the skin pending any licensing restrictions. On Saturday, November 23, 2019 at 4:34:23 PM UTC-5, Xant wrote: > > While still searching for a Sun/Moon plot solution, either to extend db or > other

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-23 Thread Xant
While still searching for a Sun/Moon plot solution, either to extend db or other means, found an interesting little piece of code: SunPlot, by Wilmslow Astro (https://weather.wilmslowastro.com/scripts.php). [image: sun plot] Embeded in Belchertown: [image: sunplot.png] -- You received t

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-22 Thread Xant
Acknowledged Pyephem '$almanac.sun.alt' not suitable to extend db. Sun.py (/usr/share/weewx/weeutil/Sun.py) available within WeeWX package, but could not find documentation or supporting reference. Does someone knows how to use/call the package and input to db? (sure indeed, would need some sor

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-17 Thread Xant
Truly acknowledge all above. Thought ext-database and Almanac/pyephem to be the "natural" path, as all "embedded" in WeeWX... but it seems to generate another discussion. Just searching for a Sun/Moon path, and the Altitude, as suggested, seems the right path. Expectations were to be simple,

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-17 Thread gjr80
I think you need to completely forget the likes of $almanac.sun.alt, it is a tag used in WeeWX reports and has no bearing or use in the approach you have taken. I am not surprised that it's use as a field name in a db would cause problems. It is not uncommon for special characters like $ and . t

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-15 Thread Xant
If not free lunch, thank you Gary for the snack (as I continue learning through the experience) 1) To Database, or Not To Database Sure, your previous mention coding would be the ideal ("sun position plot routine in some php a few years ago to produce a graphic file showing a plot of solar

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-15 Thread gjr80
You have decided to record solar and lunar altitude in your database in custom fields so that you can use the WeeWX plot engine to plot each. To do this there are two distinct tasks you need to complete. First you need to extend your database schema to include the new fields. Second you need to

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-15 Thread Xant
1) Almanac/pyephem "$almanac.sun.alt" indeed confusing, and as you mentioned, think that's what is "breaking" SQLite. Nomenclature, format or syntax doesn't seems appropriate. As not yet much familiar with the Astronomy portion of WeeWX, and following User's Guide, "$almanac.sun.alt" and "$alman

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-15 Thread gjr80
Why use something like $almanc.sun.alt, at best it is confusing and at worst it will break SQLite or MySQL/MariaDB. Why not use something like solar_altitude. For your wee_database error far better to post the exact command entered and the exact response received rather than "it doesn't work".

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-14 Thread Xant
(addendum) Not sure if incorrect format or syntax to Database, but extend database with '$almanac.sun.alt' and '$almanac.moon.alt' generate errors upon "wee_database --rebuild-daily" schema_extended = schemas.wview.schema + [('maxSolarRad', 'REAL'),, ('$almanac.sun.alt', 'REAL'), ('$alman

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-14 Thread Xant
Thomas, Gary et Peter You ALL correct, and Sun/Moon-Altitude is the way to go. Thus for a start, '$almanac.sun.alt' and '$almanac.moon.alt', and will be added to database for plot/graph. Instead of "$almanac.variable.name", how to rename to something more meaningful as 'sun-alt = $almanac.su

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-13 Thread Xant
Getting myself into more I wished for, but Astronomical journey and learning experience going through Thomas extensive work (almanac.py, sun.py, moon.py, etc). -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and st

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-13 Thread p q
Have you looked at using solar altitude (elevation)? On Wed, Nov 13, 2019 at 10:12 AM Xant wrote: > > Considering the approach of archive and plot, how to move towards a Sun > path "sine" plot? > > WeeWX with 'pyephem' provides Sunrise, transit, sunset: $almanac.sun.rise > $almanac.sun.transit $

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-13 Thread Xant
Considering the approach of archive and plot, how to move towards a Sun path "sine" plot? WeeWX with 'pyephem' provides Sunrise, transit, sunset: $almanac.sun.rise $almanac.sun.transit $almanac.sun.set , which is indeed good info and a start... but may not be sufficient for a continuous plot/

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-12 Thread Xant
Thank you Gary, as your feedback always appreciated. Yes! That's the thinking... although I tweak here and there, and I'm not a programmer sort to say but hobbyist, and still searching for an "easy recipe" :P Ideally, its something as the following for Sun/Mon: In a veeery non-scientific wa

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-12 Thread gjr80
Agree that if you are using the WeeWX plot engine you have to archive the data you wish to plot; however, if you use something other than the WeeWX plot engine to render your plots then you can avoid archiving the data. I played around with a sun position plot routine in some php a few years ago

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-10 Thread Xant
Thank you Thomas, as that might be a way. Actually, upon your response, for Sun just occurred to me to make use of Theoretical MaxSolarRad, which is calculated and already in the database for Sunset/Sunrise chart according to location. Will check the above, while still searching for a generic

Re: [weewx-user] Sun & Moon sine plot/graph

2019-11-10 Thread Thomas Keffer
The only way I can think of is to put it in the database. Then it can be treated like any other observation type. On Sun, Nov 10, 2019 at 1:58 PM Xant wrote: > How to plot the Sun & Moon sine elevation (sun/moon rise, sun/moon set) > based on local coordinates? > > -- > You received this message

[weewx-user] Sun & Moon sine plot/graph

2019-11-10 Thread Xant
How to plot the Sun & Moon sine elevation (sun/moon rise, sun/moon set) based on local coordinates? -- 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+uns