Any chance you could use the NWS or WU current forecast for the tickertape/scroller in place of the Zambretti?
Has there been more progress on your new custom Service bound to the NEW_LOOP_PACKET event? It would be great to have even a partially-functioning beta-version as a stop-gap solution.
Zambretti forecast data doesn't seem important, because those forecasts are so poor compared to forecasts readily available from multiple other sources as to reflect poorly on the likely reliability of everything being displayed. Why not eliminate the Zambretti forecast and let users who want a forecast above the gauges include webpage code that will display a professional forecast obtained via the Forecast extension or other means?
Has there been more progress on your new custom Service bound to the NEW_LOOP_PACKET event? It would be great to have even a partially-functioning beta-version as a stop-gap solution.
someone should write an rsync and an ftp service that can be bound to NEW_LOOP_PACKET. it could use the same code used by the ftp/rsync reports, just wrapped in a StdService instead of report generator.
someone should write an rsync and an ftp service that can be bound to NEW_LOOP_PACKET. it could use the same code used by the ftp/rsync reports, just wrapped in a StdService instead of report generator.The problem with this approach is that then you need some sort of lock for the FTP service, so it knows when the reporting thread is done.Hence the decision to put the FTP and reporting in the same thread, run by the same generator.
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Monday, February 13, 2017 at 11:49:48 AM UTC-5, tempus wrote:Has there been more progress on your new custom Service bound to the NEW_LOOP_PACKET event? It would be great to have even a partially-functioning beta-version as a stop-gap solution.
bob,
you could install the crt extension (cumulus realtime), and set its binding to loop. then install steel series and configure it to use the cumulus realtime file for its input.
https://github.com/weewx/weewx/wiki/crt
this would work if weewx and the web/php server are on the same host....
Thanks for letting me know about that.
I have a Vantage Pro2 Plus interfaced to weewx 3.6.2 via a USB data-logger. SteelSeries Weather Gauges 2.5.18 was already installed with the following 'gauges.js' settings:
weatherProgram : 6,
realTimeUrlWeewx : 'gauge-data.txt',
The gauges updated normally at five-minute intervals with that configuration.
After seeing your post I installed 'weewx-crt-0.18.tgz' and modified 'weewx.conf' to create a realtime.txt file in the /ss/ directory of a test website, like this:
[CumulusRealTime]
filename = /var/www/www.domain.com/ss/realtime.txt
unit_system = US
binding = loop
When I restarted weewx a 'realtime.txt' file that appeared to contain valid data was being written to the /ss/ directory at about three second intervals, as expected. That file can be remotely loaded in web browser, so the Apache web server obviously has read-access.
I then modified '/etc/weewx/skins/ss/scripts/gauges.js' by setting:
weatherProgram : 0,
realTimeUrlCumulus : 'realtime.txt',
and deleted gauges.js at the website, so it would be replaced by the modified version after weewx was restarted.
A few minutes after restart I first verified that the modified 'gauges.js' file had been copied to the website and then loaded the gauges webpage in a web browser. The gauges displayed, but had no data. Temperatures were -20 degrees, Pressure was 990, and everything else was zero. '/ss/realtime.txt' still existed and was still updating at about three-second intervals, but data in that file wasn't making it to the gauges.
The Apache access.log has '/ss/realtime.txt' successful access records at about three-second intervals whenever the gauges webpage is loaded in a web browser, so the file is being successfully accessed by webpage JavaScript code, but data in the file has no effect on any of the gauges.
Is the Cumulus-style 'realtime.txt' file produced by weewx-crt-0.18 known to be compatible with SteelSeries Weather Gauges 2.5.18?
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
One of the challenges when driving the SteelSeries gauges is that there is a lot of information being conveyed by the gauges other than just the simple gauge value. In the case of the red faced gauge it was simply a case of a mis-constructed query that was returning incorrect pressL and pressH values. These contribute to part of the shading of the pressure gauge.
I had not noticed the linear shading of the wind direction gauge, I would expect to see something like that under the simulator but not in real life. I implemented a revised method of producing the windrose data, and whilst the windrose gauge is not being displayed, the windrose data may have an effect on the wind direction gauge. This one I will need to look at more closely.
Gary
--
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/f4qQyOJ1C-M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
If you want to try the realtime gauge-gate.txt you can find it here:
https://github.com/gjr80/weewx-realtime_gauge-data
Extension package is under the releases tab, install instructions are in the readme.
Gary
Not so convinced about the wind cause, still looking at that one.
Gary
Yes, thought it would, my gauges exhibit the same behaviour. The SteelSeries gauges do a lot of funky stuff to calculate gauge scales etc, I need to sit down and work through the data.
Of course, we could just disable F :)
Gary
> --
> 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+...@googlegroups.com.
Yes, thought it would, my gauges exhibit the same behaviour. The SteelSeries gauges do a lot of funky stuff to calculate gauge scales etc, I need to sit down and work through the data.
Of course, we could just disable F :)
Gary
Has there been more progress on your new custom Service bound to the NEW_LOOP_PACKET event? It would be great to have even a partially-functioning beta-version as a stop-gap solution.
Zambretti forecast data doesn't seem important, because those forecasts are so poor compared to forecasts readily available from multiple other sources as to reflect poorly on the likely reliability of everything being displayed. Why not eliminate the Zambretti forecast and let users who want a forecast above the gauges include webpage code that will display a professional forecast obtained via the Forecast extension or other means?
Bob
On Monday, January 9, 2017 at 4:27:44 PM UTC-8, gjr80 wrote:Any chance you could use the NWS or WU current forecast for the tickertape/scroller in place of the Zambretti?
At the moment all I can do is pull the Zambretti forecast from the forecast database (provided the forecast extension is installed), unfortunately the WU and NWS forecast text is not saved in the forecast database. I have had the WU forecast text being pulled in through weewx-WD but that is something for the next version of weewx-WD and that is going to be weeks away (at least).
I might have a chat with Matthew and see what he may be prepared to do, though I know he has a lot on at present.
Gary
I am sorry, I did not see this post with the flurry of activity on the 14th.
I appreciate the limitations of the Zambretti forecast, but I prefer it to 'forecast not available'. I am not sure exactly what you mean by 'include webpage code that will display a professional forecast obtained via the Forecast extension or other means', when I said I would have a chat with Matthew I should have said that was in regards to getting the forecast extension to make available forecast text other than the Zambretti text. I am loathed to try to include other (internet based) lookups in rtgd, it already runs in its own thread generating output potentially every 2.5 seconds. Pullling data from the internet or caching internet content is added time (through timeouts etc)/complexity that I don't think is warranted if we can get suitable info out of the forecast extension.
Gary
I have just invested in a Davis Vantage Pro2, which replaced my WS2300 and have installed Weewx 3.6.2 on Debian ver8 replacing my previous weewx ver 2.7 for the WS2300.I would like to get the Steel Series gauges performing real time updates at the Davis loop interval of 2.5 seconds.I have them installed OK, but it uses my current archive interval of 5 minutes - not quite real time!I tried mesowx, but can't get the data to display - the page appears, but no graphs. Data is getting saved into my MySQL 'raw' database at regular 2.5 second loop intervals. I'll continue trying to figure this one out.So, my thoughts turned to using the raw database for Steel Series and to use raw data instead of archive data.I'm primarily interested in wind speed/direction, so if I could only get that to update @ 2.5 seconds, I'd be happy with the others at 5 minutes.Anyone got any ideas on how to use this raw data instead of archive?Maybe there's a better/simpler way to achieve this 2.5 second update?Regards,Nigel.
1. I need a cookbook approach as I read thru the thread and can't quite get my head around it. Do I just have to replace some of the Steel Gauge files, or is it more complex?
2. If I am successful will the new set of gauges have the wind rose?
Will the update be writing to my .sdb file (or any others) at the increased rate?
and like Nigel would only want the windspeed/direction to have such a quick update
steve
I have been looking for references to HTTP POST, but have not yet found anything. I am currently using FTP to upload to my website. Is it as simple as just changing the FTP section in weewx.conf to say FTP POST? (probably not! :))
Gary..I think I answered my own question. I didn't search deep enough yesterday, but I found the info on some separate posts dealing with making a Wunderground type windspeed/direction gauge.
Gary..." If you want to try to get the HTTP POST up and running let me know and I will knock up some instructions.."
That would be appreciated. While I understand some of the concepts and can do minor modifications, I am in no way proficient in programming, but I am great at following instructions.
The post I referred to did not mention posting data to Wunderground, but I think he figured out how the WU rapidfire windspeed/direction indicator worked and then put the same on his website.
Steve
Gary, I have been plodding along but no joy. What is happening is after I make the changes to weewx.conf, post_gauge-data.php, etc., Weewx wont even start, so I don't have a syslog file for you to look at.
# This is the stanza for Real Time Guage Data
[RealtimeGaugeData]
[RealtimeGaugeData]
Jun 22 15:24:17 jessie114 weewx[2288]: engine: Initializing weewx version 3.7.1
Jun 22 15:24:17 jessie114 weewx[2288]: engine: Using Python 2.7.9 (default, Jun 29 2016, 13:08:31) #012[GCC 4.9.2]
Jun 22 15:24:17 jessie114 weewx[2288]: engine: Platform Linux-3.16.0-4-amd64-x86_64-with-debian-8.8
Jun 22 15:24:17 jessie114 weewx[2288]: engine: Locale is 'en_AU.UTF-8'
Jun 22 15:24:17 jessie114 weewx[2288]: engine: pid file is /var/run/weewx.pid
Jun 22 15:24:17 jessie114 weewx[2279]: Starting weewx weather system: weewx.
Jun 22 15:24:17 jessie114 weewx[2292]: engine: Error while parsing configuration file /home/weewx/weewx.conf
Jun 22 15:24:17 jessie114 weewx[2292]: **** Reason: 'Duplicate section name at line 407.'If you have the time, maybe you could look over some files and see if you can find what I am doing wrong.
This is my web server structure:
root directory
|
-photokinetics.org
|
-Weather
|
- all my weather data in which I created a folder called gauges (which is empty)
On my Weewx machine (RaspberryPi) I used setup.py to do the initial install of weewx.
First attachment is my post_gauge-data.php file.
Next is my weewx.conf file renamed weewx.conf.modded.txt
rtg.py is in /home/weewx/bin/user
My web server has a folder called .php which contains folders labeled 7.0, 5.6, 5.5, 5.4 and 5.3 Does this mean that my server has php installed and configured?
Parse error: syntax error, unexpected '/' in /home/n2qlq/photokinetics.org/Weather/post_gauge-data.php on line 28$json_file = "data/gauge-data.txt";$json_file = "gauges/gauge-data.txt";realTimeURL_weewx : 'gauge-data.txt', //*** WeeWX Users: Change to your location of the gauge data file ***
realTimeURL_weewx : '../gauges/gauge-data.txt', //*** WeeWX Users: Change to your location of the gauge data file ***
config.showRoseGauge = false; // FIXME: add wind histogram to weewx SLEconfig.showRoseGauge = true; // FIXME: add wind histogram to weewx SLEThe issue is that the SteelSeries Gauges cannot find your gauge-data.txt file. When I point my browser at http://photokinetics.org/Weather/ss/scripts/gauges.js I see the following:
realTimeUrlWeewx : 'photokinetics.org/Weather/gauges/gauge-data.txt', //*** WeeWX Users: Change to your location of the gauge data file ***
which is different to what you posted. I think you want
realTimeUrlWeewx : '../gauges/gauge-data.txt', //*** WeeWX Users: Change to your location of the gauge data file ***
Interestingly enough your change to display the windrose took, but the one above did not. Try making the change again.
Gary
weatherProgram : 0, //Set 0=Cumulus, 1=Weather Display, 2=VWS, 3=WeatherCat, 4=Meteobridge, 5=WView, 6=WeeWX
not sure how this ever worked as it needs to be 6 for it to work with weeWX. You will need to change it to (note no quotes)
weatherProgram : 6, //Set 0=Cumulus, 1=Weather Display, 2=VWS, 3=WeatherCat, 4=Meteobridge, 5=WView, 6=WeeWX
Gary
I do notice one thing: I use WindChill and HeatIndex on my main page. Using the formulas, it either or both are not defined, Current Conditions show "undefined" and nothing is plotted on the graphs. The gauge shows 32 degrees when the formulas are not met. Is there a way to link what the gauge shows to the weewx calculation formula results? Perhaps have "Undefined" displayed in the gauge window, with the indicator equal to the outside temperature?
Maybe I should write up a "Real Time Gauges for Dummies" for the Wiki, because my unfamiliarity with programming means I had to first learn the basics like the best way(s) to edit different types of files to obtain my goal (along with trying to have a little understanding of the programming itself).
imgPathURL : '../ss/', // *** Change this to the relative path for your 'Trend' graph images[CheetahGenerator]
encoding = html_entities
[[ToDate]]
[[[index]]]
template = index.html.tmpl
#[[[data]]]
# template = gauge-data.txt.tmpl
weatherProgram : 6, //Set 0=Cumulus, 1=Weather Display, 2=VWS, 3=WeatherCat, 4=Meteobridge, 5=WView, 6=WeeWXimgPathURL : '../ss/', //*** Change this to the relative path for your 'Trend' graph imagesrealtimeInterval : 2, //*** Download data interval, set to your realtime data update interval in secondsrealTimeURL_weewx : '../gauges/gauge-data.txt', //*** WeeWX Users: Change to your location of the gauge data file ***config.showRoseGauge = true; // FIXME: add wind histogram to weewx SLE[StdReport]
# Where the skins reside, relative to WEEWX_ROOT
SKIN_ROOT = skins
# Where the generated reports should go, relative to WEEWX_ROOT
HTML_ROOT = public_html
# The database binding indicates which data should be used in reports.
data_binding = wx_binding
# Each of the following subsections defines a report that will be run.
[[StandardReport]]
# See the customizing guide to change the units, plot types and line
# colors, modify the fonts, display additional sensor data, and other
# customizations. Many of those changes can be made here by overriding
# parameters, or by modifying templates within the skin itself.
# The StandardReport uses the 'Standard' skin, which contains the
# images, templates and plots for the report.
skin = Standard
[[SteelSeries]]
skin = ss
HTML_ROOT = public_html/ss
[[FTP]]
# FTP'ing the results to a webserver is treated as just another report,
# albeit one with an unusual report generator!
skin = Ftp
# If you wish to use FTP, uncomment and fill out the next four lines.
#user = replace with the ftp username
#password = replace with the ftp password
#server = replace with the ftp server name, e.g, www.threefools.org
#path = replace with the ftp destination directory (e.g., /weather)
# Set to True for a secure FTP (SFTP) connection. Not all servers
# support this.
secure_ftp = False
# To upload files from something other than what HTML_ROOT is set
# to above, specify a different HTML_ROOT here.
#HTML_ROOT = public_html
# Most FTP servers use port 21
port = 21
# Set to 1 to use passive mode, zero for active mode
passive = 0
max_tries = 3
user = XXXXXX
password = XXXXXX
server = www.photokinetics.org
path = photokinetics.org/Weather
[[RSYNC]]
Many thanks, Steve