Re: [weewx-user] Re: Confused about how to install Weewx-forecast
I have manage to solve it by myself problem was icons, so I changed apache settings and disabled autoindex.conf Dne sreda, 11. april 2018 11.11.17 UTC+2 je oseba Damjan Hajsek napisala: > > Hi > I have the same problem but I am lost at the end, still doesn't get > anything on my index page. > I have attached my index.html.tmpl file. Can someone help me? > > > Dne torek, 06. februar 2018 10.01.38 UTC+1 je oseba Cycle London napisala: >> >> There is one thing that strikes me. On the temperature scale, the degree >> sign and 'C' appears three times. I'm assuming that this represents a >> high, low and actual prediction? It's not - I think - anything to do with >> my installation, as if I check out the 'MIT Sailing Pavillon' live example, >> they have it too.. >> >> http://sailing.mit.edu/weather/forecast.html >> >> is there a way to include high and low? >> >> And is it possible to limit the number of days forward that the forecast >> reaches? >> >> Is there actually a page where the options for the strip are detailed? >> So far, I've only seen the HOWTO on the wiki. >> >> >> -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
Hi I have the same problem but I am lost at the end, still doesn't get anything on my index page. I have attached my index.html.tmpl file. Can someone help me? Dne torek, 06. februar 2018 10.01.38 UTC+1 je oseba Cycle London napisala: > > There is one thing that strikes me. On the temperature scale, the degree > sign and 'C' appears three times. I'm assuming that this represents a > high, low and actual prediction? It's not - I think - anything to do with > my installation, as if I check out the 'MIT Sailing Pavillon' live example, > they have it too.. > > http://sailing.mit.edu/weather/forecast.html > > is there a way to include high and low? > > And is it possible to limit the number of days forward that the forecast > reaches? > > Is there actually a page where the options for the strip are detailed? So > far, I've only seen the HOWTO on the wiki. > > > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. index.html.tmpl Description: Binary data
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
Running almost perfectly now.Couple of niggles: the WU and UKMO forecasts give different temperature and wind speeds. Guessing that this is because the UKMO is 'greater London' whereas (I *think*) the WU data are gleaned from a more 'local' source or sources? I also tried to include text inside the div to have a 'heading' at the top of each graph, but that doesn't appear to have been included. Thanks again. On 5 February 2018 at 18:50, mwallwrote: > > > On Monday, February 5, 2018 at 11:36:16 AM UTC-5, Cycle London wrote: >> >> I can't see anything in the 'debugger' but then I'm not a web dev. >> > > > you need to create a div for the javascript to populate. > > somewhere in the html hierarchy do this: > > > > the strip data will be inserted into that div when > populate_strip("wu_strip", "WU") is invoked > > the syntax for populate_strip is: > > populate_strip(div_id, data_id, display_settings) > > where div_id is the id of the div that will receive the data, data_id is > the identifier of the data set that contains the data, and display_settings > is an option override of any parameters such as orientation, show_tides, > show_snow, etc. > > by convention, the data id is the forecast source identifier. in this > case 'WU' > > to summarize: you must first include the strip .inc file, then you must > create a div with an id of your choosing, then you must invoke the > populate_strip function with the div id and the data id. > > including table display is somewhat easier - there is just the .inc > inclusion, since it is not javascript. this is why there are xxx.html.tmpl > files in the default forecast skin, so that there will be fully functional, > minimal examples from which to copy. > > suggestions about how to improve database query performance, > javascript/html rendering performance, and/or simplification of the > install/customize process would be very much appreciated. > > m > > -- > You received this message because you are subscribed to a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/weewx-user/IC1-oPV_Q9w/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > weewx-user+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
There is one thing that strikes me. On the temperature scale, the degree sign and 'C' appears three times. I'm assuming that this represents a high, low and actual prediction? It's not - I think - anything to do with my installation, as if I check out the 'MIT Sailing Pavillon' live example, they have it too.. http://sailing.mit.edu/weather/forecast.html is there a way to include high and low? And is it possible to limit the number of days forward that the forecast reaches? Is there actually a page where the options for the strip are detailed? So far, I've only seen the HOWTO on the wiki. -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
You know how sometimes you can be looking at something for so long that you fail to register that it's not what you think you're looking at? I put 'wu_script' into the html instead of 'wu_strip' and then couldn't figure out why it wasn't working. It was only when I was preparing to answer your mail that I ran a grep for 'wu_strip' and the only occurrence of it was in the 'populate' script part. It's now working, thank you. :) There are a couple of glitches - the icons were not rendering, but I took the icons subdirectory from the forecast skin and `rsync`ed it to public_html and that seemed to do the job. I know absolutely nothing about sqlite, so can't really help there. I was going to move my installation to MySQL as I'm Oracle Certified DBA (or I was in 2014, so probably a bit rusty now), but the Wiki isn't clear enough and I don't want to break anything. As for ease of installation, it would have been nice if the wiki actually had the instructions for inserting the
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
On Monday, February 5, 2018 at 11:36:16 AM UTC-5, Cycle London wrote: > > I can't see anything in the 'debugger' but then I'm not a web dev. > you need to create a div for the javascript to populate. somewhere in the html hierarchy do this: the strip data will be inserted into that div when populate_strip("wu_strip", "WU") is invoked the syntax for populate_strip is: populate_strip(div_id, data_id, display_settings) where div_id is the id of the div that will receive the data, data_id is the identifier of the data set that contains the data, and display_settings is an option override of any parameters such as orientation, show_tides, show_snow, etc. by convention, the data id is the forecast source identifier. in this case 'WU' to summarize: you must first include the strip .inc file, then you must create a div with an id of your choosing, then you must invoke the populate_strip function with the div id and the data id. including table display is somewhat easier - there is just the .inc inclusion, since it is not javascript. this is why there are xxx.html.tmpl files in the default forecast skin, so that there will be fully functional, minimal examples from which to copy. suggestions about how to improve database query performance, javascript/html rendering performance, and/or simplification of the install/customize process would be very much appreciated. m -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
How about attaching the generated index.html page?? On Monday, 5 February 2018 18:36:16 UTC+2, Cycle London wrote: > I can't see anything in the 'debugger' but then I'm not a web dev. > > On 5 February 2018 at 15:44, mwall> wrote: > >> On Monday, February 5, 2018 at 10:02:45 AM UTC-5, Cycle London wrote: >>> >>> Moved the script to after the body tag. Still nothing. This in the >>> logs .. >>> >> >> there is probably a parse error in the generated web page. >> >> open index.html in a web browser >> >> then go into developer mode in your browser >> >> see what the browser tells you >> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "weewx-user" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/weewx-user/IC1-oPV_Q9w/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> weewx-user+...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
I can't see anything in the 'debugger' but then I'm not a web dev. On 5 February 2018 at 15:44, mwallwrote: > On Monday, February 5, 2018 at 10:02:45 AM UTC-5, Cycle London wrote: >> >> Moved the script to after the body tag. Still nothing. This in the logs >> .. >> > > there is probably a parse error in the generated web page. > > open index.html in a web browser > > then go into developer mode in your browser > > see what the browser tells you > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/weewx-user/IC1-oPV_Q9w/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > weewx-user+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
On Monday, February 5, 2018 at 10:02:45 AM UTC-5, Cycle London wrote: > > Moved the script to after the body tag. Still nothing. This in the logs > .. > there is probably a parse error in the generated web page. open index.html in a web browser then go into developer mode in your browser see what the browser tells you -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
Got it. Although it's of little use if I can't actually see the forecasts on my landing page :-( On 5 February 2018 at 15:13, mwallwrote: > > > On Monday, February 5, 2018 at 9:57:33 AM UTC-5, Cycle London wrote: >> >> Well, if I go to the forecast subdirectory on my browser, I can see >> predictions under virtually all of the examples (see screenshot). It's in >> degrees F which is something else I'd like to change. >> >> > units are easy - use the same mechanism that you use everywhere else in > weewx. do it in the [Units][[Groups]] section of skin.conf, or do it in > the weewx configuration file like this: > > [StdReport] > ... > [[StandardReport]] > skin = Standard > [[[Units]]] > Groups > group_altitude = meter > group_temperature = degree_C > ... > > m > > -- > You received this message because you are subscribed to a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/weewx-user/IC1-oPV_Q9w/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > weewx-user+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
On Monday, February 5, 2018 at 9:57:33 AM UTC-5, Cycle London wrote: > > Well, if I go to the forecast subdirectory on my browser, I can see > predictions under virtually all of the examples (see screenshot). It's in > degrees F which is something else I'd like to change. > > units are easy - use the same mechanism that you use everywhere else in weewx. do it in the [Units][[Groups]] section of skin.conf, or do it in the weewx configuration file like this: [StdReport] ... [[StandardReport]] skin = Standard [[[Units]]] Groups group_altitude = meter group_temperature = degree_C ... m -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
Moved the script to after the body tag. Still nothing. This in the logs .. Feb 5 15:00:14 weather weewx[4242]: manager: Added record 2018-02-05 15:00:00 GMT (1517842800) to database 'weewx.sdb' Feb 5 15:00:14 weather weewx[4242]: manager: Added record 2018-02-05 15:00:00 GMT (1517842800) to daily summary in 'weewx.sdb' Feb 5 15:00:18 weather weewx[4242]: cheetahgenerator: Generated 14 files for report StandardReport in 4.00 seconds Feb 5 15:00:24 weather weewx[4242]: imagegenerator: Generated 36 images for StandardReport in 5.43 seconds Feb 5 15:00:24 weather weewx[4242]: copygenerator: copied 0 files to /home/weewx/public_html Feb 5 15:00:32 weather weewx[4242]: cheetahgenerator: Generated 12 files for report forecast in 8.53 seconds Feb 5 15:00:32 weather weewx[4242]: copygenerator: copied 0 files to /home/weewx/public_html/forecast On 5 February 2018 at 14:58, mwallwrote: > > > On Monday, February 5, 2018 at 9:47:45 AM UTC-5, Cycle London wrote: >> >> Done, but still nothing on the landing page. >> >> #include "../forecast/forecast_strip.inc" >> >> >> populate_strip('wu_strip', 'WU'); >> >> >> > > try putting the ... block after the closing but > before the closing > > > >> Is there some issue with the fact that the include file is in >> /home/weewx/skins/forecast whereas I am referencing it from >> /home/weewx/skins/Standard ? I am certainly using '../forecast...' to >> point to it, but would it be better if that include file were in with the >> Standard skin files? >> > > if you intend to do any significant hacking, the preferred approach would > be to create your *own* skin instead of modifying the Standard skin. that > means: > > 1) create a place for it > > mkdir skins/cycle > > 2) copy everything into it > > rsync -arv skins/Standard/ skins/cycle > > 3) customize it > > modify skin.conf, modify *.tmpl, copy in any *.inc files that you use > > 4) point to it in weewx.conf > > [StdReport] > ... > [[cycle]] > skin = cycle > ... > > that way you end up with a self-contained, standalone skin. weewx is > smart enough to not touch your skins when you install an extension or when > you update weewx itself. but this way you can always see how the original > 'Standard' skin behaves if you botch something up. > > m > > -- > You received this message because you are subscribed to a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/weewx-user/IC1-oPV_Q9w/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > weewx-user+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
On Monday, February 5, 2018 at 9:47:45 AM UTC-5, Cycle London wrote: > > Done, but still nothing on the landing page. > > #include "../forecast/forecast_strip.inc" > > > populate_strip('wu_strip', 'WU'); > > > try putting the ... block after the closing but before the closing > Is there some issue with the fact that the include file is in > /home/weewx/skins/forecast whereas I am referencing it from > /home/weewx/skins/Standard ? I am certainly using '../forecast...' to > point to it, but would it be better if that include file were in with the > Standard skin files? > if you intend to do any significant hacking, the preferred approach would be to create your *own* skin instead of modifying the Standard skin. that means: 1) create a place for it mkdir skins/cycle 2) copy everything into it rsync -arv skins/Standard/ skins/cycle 3) customize it modify skin.conf, modify *.tmpl, copy in any *.inc files that you use 4) point to it in weewx.conf [StdReport] ... [[cycle]] skin = cycle ... that way you end up with a self-contained, standalone skin. weewx is smart enough to not touch your skins when you install an extension or when you update weewx itself. but this way you can always see how the original 'Standard' skin behaves if you botch something up. m -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
Well, if I go to the forecast subdirectory on my browser, I can see predictions under virtually all of the examples (see screenshot). It's in degrees F which is something else I'd like to change. But that's not helping me get the content at the bottom of my index.html.tmpl On 5 February 2018 at 14:43, mwallwrote: > some implementation trivia: > > if you look closely at the display part of the forecast code, you will see > that i have taken two approaches. the table view uses very little > javascript - it uses cheetah to populate all of the table fields. the > strip view is almost pure javascript - it uses cheetah to populate a bunch > of javascript objects, but javascript populates the web page. > > i'm still not sure which approach is better > > m > > -- > You received this message because you are subscribed to a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/weewx-user/IC1-oPV_Q9w/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > weewx-user+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
Done, but still nothing on the landing page. #include "../forecast/forecast_strip.inc" populate_strip('wu_strip', 'WU'); Since Midnight Is there some issue with the fact that the include file is in /home/weewx/skins/forecast whereas I am referencing it from /home/weewx/skins/Standard ? I am certainly using '../forecast...' to point to it, but would it be better if that include file were in with the Standard skin files? On 5 February 2018 at 14:39, mwallwrote: > > > On Monday, February 5, 2018 at 8:41:03 AM UTC-5, Cycle London wrote: >> >> You want all of the HTML/Javascript pasted in? >> > > just wanted to see whether the .inc file was, in fact, being included. it > is, so that means the search list extension is working. > > so you are just missing the one line of javascript that makes it all > happen. > > in the forecast extension's 'forecast' skin, take a look at the file > single-strip.html.tmpl > > toward the bottom of the file you will see this: > > > populate_strip('wu_strip', 'WU'); > > > you need to add that to your index.html.tmpl somehwere *after* the include > of the .inc > > m > > -- > You received this message because you are subscribed to a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/weewx-user/IC1-oPV_Q9w/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > weewx-user+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
some implementation trivia: if you look closely at the display part of the forecast code, you will see that i have taken two approaches. the table view uses very little javascript - it uses cheetah to populate all of the table fields. the strip view is almost pure javascript - it uses cheetah to populate a bunch of javascript objects, but javascript populates the web page. i'm still not sure which approach is better m -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
On Monday, February 5, 2018 at 8:41:03 AM UTC-5, Cycle London wrote: > > You want all of the HTML/Javascript pasted in? > just wanted to see whether the .inc file was, in fact, being included. it is, so that means the search list extension is working. so you are just missing the one line of javascript that makes it all happen. in the forecast extension's 'forecast' skin, take a look at the file single-strip.html.tmpl toward the bottom of the file you will see this: populate_strip('wu_strip', 'WU'); you need to add that to your index.html.tmpl somehwere *after* the include of the .inc m -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
Ah, the source has changed. It now has the following (although still nothing actually visible on the landing page) ..
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
You want all of the HTML/Javascript pasted in? Here is the 'forecast' section in the source...
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
On Monday, February 5, 2018 at 7:59:25 AM UTC-5, Cycle London wrote: > > #include "../forecast/forecast_strip.inc" > > .. and that error _seems_ to disappear, but there is still absolutely > nothing on my 'landing' page that resembles a forecast. > what do you see when you look at the source of the landing page? (not the cheetah template source, but the resulting source that cheetah generated) -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Confused about how to install Weewx-forecast
See the Wiki page: https://github.com/weewx/weewx/wiki/forecasting -tk On Tue, Oct 31, 2017 at 7:53 AM, George Fievetwrote: > So I appreciate this is an old thread but I hate to start a new one... > I'm having one heckuva time finding a download for weewx-forecast. I can > find plenty on how to (or how not to) install it but nothing about where I > can find the package. > > Any leads? > > Thanks. > > > On Tuesday, March 31, 2015 at 4:16:19 PM UTC-5, Russ Adams wrote: >> >> I've been trying to install weewx-forecast on a RPi and can't see to >> figure it out. I down load weewx-forecast-3.0.4.gz (instructions say it >> ends with .tgz) to /home/pi/Downloads. I open up terminal and change to the >> Downloads directory. I then do: >> >> sudo /usr/share/weewx/setup.py --extension --install >> weewx-forecast-3.0.4.gz >> >> and nothing seems to happen. >> >> I also noticed that the forecast guide in the wiki has different >> Weewx.conf changes compared to the changes found in the forecast.py >> comments. Also the forecast package has install.py. should that be run >> instead of setup? >> >> I'm puzzled. Any help would be appreciated. >> > -- > 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+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.