[weewx-user] Re: Generate a file xml

2018-08-29 Thread jahfly1000
ok thank you

I am obliged to have an xml file for use in my home automation system. 
I succeeded by creating a .conf file in apache, like what I could do for weewx

-- 
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.


[weewx-user] Re: Generate a file xml

2018-08-27 Thread jahfly1000
I have a last question.
my symbolique link is not view in http//:local IP/current.xml
I gave the necessery authorization 
sudo chown -R www-data:www-data /home/weewx/public_html/current.xml and my 
symbolic link
sudo chmod -R 777 /home/weewx/public_html/current.xml and my symbolic link

but nothing and current.xml returns to root every time it generates a new 
value



-- 
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.


[weewx-user] Re: Generate a file xml

2018-08-20 Thread jahfly1000
ln -s /home/weewx/public_html/current.xml /var/www/html/current.xml
:) :) :) :) :)

-- 
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.


[weewx-user] Re: Generate a file xml

2018-08-20 Thread jahfly1000


sorry but I have one last question. 
How can I make the "current" file appear in the "var / www / html" folder. 
A bit like a symbolic link that updates as soon as the file changes.

-- 
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.


[weewx-user] Re: Generate a file xml

2018-08-20 Thread jahfly1000
yes it'good. it was the word "formetted". "formatted" is more just. thank 
you for all it's very nice. 
I have not got into the habit of reading the log when i have a problem


-- 
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.


[weewx-user] Re: Generate a file xml

2018-08-20 Thread vince



*Aug 20 18:25:22 raspberrypi 
weewx[1439]: cheetahgenerator:  Ignoring template 
/home/weewx/skins/simple/current.xml.tmplAug 20 18:25:22 raspberrypi 
weewx[1439]: cheetahgenerator:  Reason: cannot 
find 'formetted' while searching for'current.windSpeed.formetted'*


You said "formetted" when you meant "formatted" (simple typo in your 
template)

-- 
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: Generate a file xml

2018-08-20 Thread Thomas Keffer
Simple typographical error. In file simple/current.xml.tmpl you want "
$current.windSpeed.formatted" not "*$current.windSpeed.formetted*"

-tk

On Mon, Aug 20, 2018 at 9:42 AM jahfly1000  wrote:

>
>> --
> 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.


[weewx-user] Re: Generate a file xml

2018-08-20 Thread jahfly1000

>
>
>

-- 
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.
# configuration file for the simple skin
# $Id: skin.conf 1123 2014-11-17 19:37:23Z mwall $
# The simple-for-weewx skin was created by Matthew Wall.
#
# This skin can be copied, modified, and distributed as long as this notice
# is included in any derivative work.
#
# This skin uses the dejavu sans mono font:
#   apt-get install ttf-dejavu-core
#   apt-get install ttf-dejavu-extra

[Extras]
version = 0.4

# light background
#BG_COLOR = '#ff'
#FG_COLOR = '#00'
#LINK_COLOR = '#207070'
#HOVER_COLOR = '#30a0a0'
#HOVER_BG_COLOR = '#ff'
#VISITED_COLOR = '#207070'
#LARGE_COLOR = '#207070'
#HEATINDEX_COLOR = '#aa'
#WINDCHILL_COLOR = '#aa'

# dark background
BG_COLOR = '#00'
FG_COLOR = '#ff'
LINK_COLOR = '#50a0a0'
HOVER_COLOR = '#50c0c0'
HOVER_BG_COLOR = '#b8d8d8'
VISITED_COLOR = '#50a0a0'
LARGE_COLOR = '#50a0a0'
HEATINDEX_COLOR = '#dd'
WINDCHILL_COLOR = '#dd'

[Units]
[[Groups]]
group_altitude = meter# Options are 'foot' or 
'meter'
group_degree_day   = degree_C_day # Options are 'degree_F_day' 
or 'degree_C_day'
group_direction= degree_compass
group_moisture = centibar
group_percent  = percent
group_pressure = hPa  # Options are 'inHg', 'mmHg', 
'mbar', or 'hPa'
group_radiation= watt_per_meter_squared
group_rain = mm   # Options are 'inch', 'cm', 
or 'mm'
group_rainrate = mm_per_hour  # Options are 
'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
group_speed= km_per_hour  # Options are 
'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
group_speed2   = km_per_hour2 # Options are 
'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
group_temperature  = degree_C # Options are 'degree_F' or 
'degree_C'
group_uv   = uv_index
group_volt = volt 

 # The following are used internally and should not be changed:
group_count= count
group_interval = minute
group_time = unix_epoch
group_elapsed  = second
   
[[StringFormats]]
# This section sets the string formatting for each type of unit.

centibar   = %.0f
cm = %.2f
cm_per_hour= %.2f
degree_C   = %.1f
degree_F   = %.1f
degree_compass = %.0f
foot   = %.0f
hPa= %.1f
hour   = %.1f
inHg   = %.3f
inch   = %.2f
inch_per_hour  = %.2f
km_per_hour= %.0f
km_per_hour2   = %.1f
knot   = %.0f
knot2  = %.1f
mbar   = %.1f
meter  = %.0f
meter_per_second   = %.1f
meter_per_second2  = %.1f
mile_per_hour  = %.0f
mile_per_hour2 = %.1f
mm = %.1f
mmHg   = %.1f
mm_per_hour= %.1f
percent= %.0f
second = %.0f
uv_index   = %.1f
volt   = %.1f
watt_per_meter_squared = %.0f
NONE   = "   N/A"

[[Labels]]
# This section sets a label to be used for each type of unit.

centibar  = " cb"
cm= " cm"
cm_per_hour   = " cm/hr"
degree_C  =   °C
degree_F  =   °F
degree_compass=   °
foot  = " feet"
hPa   = " hPa"
inHg  = " inHg"
inch  = " in"
km_per_hour   = " km/h"
km_per_hour2  = " km/h"
knot  = " knots"
knot2 = " knots"
mbar  = " mbar"
meter = " meters"
meter_per_second  = " m/s"
meter_per_second2 = " m/s"
mile_per_hour = " mph"
mile_per_hour2= " mph"
mm= " mm"
mmHg  = " mmHg"
mm_per_hour   = " mm/hr"
percent   =   %
volt  = " V"
watt_per_meter_squared = " W/m²"
day   = " day"," days"
hour  = " hour",   " hours"
minute= " minute", " minutes"
second= " second", " seconds"
NONE  = ""

[[TimeFormats]]
  

[weewx-user] Re: Generate a file xml

2018-08-20 Thread jahfly1000

It's my log
Aug 20 18:25:06 raspberrypi weewx[1439]: wmr200: MainThread: D   Queuing 
live packet rx:21208 live_queue_len:1
Aug 20 18:25:06 raspberrypi rsyslogd-2007: action 'action 17' suspended, 
next retry is Mon Aug 20 18:26:36 2018 [try http://www.rsyslog.com/e/2007 ]
Aug 20 18:25:07 raspberrypi weewx[1439]: wmr200: MainThread: D genLoop() 
Yielding live queued packet id:22658
Aug 20 18:25:15 raspberrypi weewx[1439]: wmr200: MainThread: D   Queuing 
live packet rx:21209 live_queue_len:1
Aug 20 18:25:16 raspberrypi weewx[1439]: wmr200: MainThread: D genLoop() 
Yielding live queued packet id:22659
Aug 20 18:25:16 raspberrypi weewx[1439]: manager: Added record 2018-08-20 18
:25:00 CEST (1534782300) to database 'weewx'
Aug 20 18:25:16 raspberrypi weewx[1439]: manager: Added record 2018-08-20 18
:25:00 CEST (1534782300) to daily summary in 'weewx'
Aug 20 18:25:16 raspberrypi weewx[1439]: reportengine: Running reports for 
latest time in the database.
Aug 20 18:25:16 raspberrypi weewx[1439]: wmr200: MainThread: D genLoop() 
phase getting live packets
Aug 20 18:25:16 raspberrypi weewx[1439]: reportengine: Running report 
StandardReport
Aug 20 18:25:16 raspberrypi weewx[1439]: reportengine: Found configuration 
file /home/weewx/skins/simple/skin.conf for report StandardReport
Aug 20 18:25:16 raspberrypi weewx[1439]: cheetahgenerator: using search 
list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 
'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Aug 20 18:25:16 raspberrypi weewx[1439]: manager: Daily summary version is 
2.0
Aug 20 18:25:17 raspberrypi weewx[1439]: wmr200: MainThread: D   
Acknowledged control packet rx:1447
Aug 20 18:25:19 raspberrypi weewx[1439]: cheetahgenerator: Generate failed 
with exception ''
Aug 20 18:25:19 raspberrypi weewx[1439]: cheetahgenerator:  Ignoring 
template /home/weewx/skins/simple/current.xml.tmpl
Aug 20 18:25:19 raspberrypi weewx[1439]: cheetahgenerator:  Reason: 
cannot find 'formetted' while searching for 'current.windSpeed.formetted'
Aug 20 18:25:19 raspberrypi weewx[1439]:   Traceback (most recent call 
last):
Aug 20 18:25:19 raspberrypi weewx[1439]: File 
"/home/weewx/bin/weewx/cheetahgenerator.py", line 329, in generate
Aug 20 18:25:19 raspberrypi weewx[1439]:   print >> _file, 
compiled_template
Aug 20 18:25:19 raspberrypi weewx[1439]: File 
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
__str__
Aug 20 18:25:19 raspberrypi weewx[1439]:   rc = getattr(self, 
mainMethName)()
Aug 20 18:25:19 raspberrypi weewx[1439]: File 
"_home_weewx_skins_simple_current_xml_tmpl.py", line 116, in respond
Aug 20 18:25:19 raspberrypi weewx[1439]:   NotFound: cannot find 
'formetted' while searching for 'current.windSpeed.formetted'
Aug 20 18:25:19 raspberrypi weewx[1439]: wmr200: MainThread: D   Queuing 
live packet rx:21210 live_queue_len:1
Aug 20 18:25:19 raspberrypi weewx[1439]: cheetahgenerator: Generated 8 
files for report StandardReport in 3.32 seconds
Aug 20 18:25:19 raspberrypi weewx[1439]: manager: Daily summary version is 
2.0
Aug 20 18:25:20 raspberrypi weewx[1439]: wmr200: MainThread: D genLoop() 
Yielding live queued packet id:22661
Aug 20 18:25:20 raspberrypi weewx[1439]: imagegenerator: Generated 16 
images for StandardReport in 1.19 seconds
Aug 20 18:25:20 raspberrypi weewx[1439]: copygenerator: copied 0 files to /
home/weewx/public_html
Aug 20 18:25:20 raspberrypi weewx[1439]: reportengine: Running report simple
Aug 20 18:25:20 raspberrypi weewx[1439]: reportengine: Found configuration 
file /home/weewx/skins/simple/skin.conf for report simple
Aug 20 18:25:20 raspberrypi weewx[1439]: cheetahgenerator: using search 
list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 
'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Aug 20 18:25:21 raspberrypi weewx[1439]: manager: Daily summary version is 
2.0
Aug 20 18:25:22 raspberrypi weewx[1439]: wmr200: MainThread: D   
adjust_rain rain_total:26.16 Rain.rain_total_last:26.16 rain_interval:0.00
Aug 20 18:25:22 raspberrypi weewx[1439]: wmr200: MainThread: D   Queuing 
live packet rx:21211 live_queue_len:1
Aug 20 18:25:22 raspberrypi weewx[1439]: cheetahgenerator: Generate failed 
with exception ''
Aug 20 18:25:22 raspberrypi weewx[1439]: cheetahgenerator:  Ignoring 
template /home/weewx/skins/simple/current.xml.tmpl
Aug 20 18:25:22 raspberrypi weewx[1439]: cheetahgenerator:  Reason: 
cannot find 'formetted' while searching for 'current.windSpeed.formetted'
Aug 20 18:25:22 raspberrypi weewx[1439]:   Traceback (most recent call 
last):
Aug 20 18:25:22 raspberrypi weewx[1439]: File 
"/home/weewx/bin/weewx/cheetahgenerator.py", line 329, in generate
Aug 20 18:25:22 raspberrypi weewx[1439]:   print >> _file, 

[weewx-user] Re: Generate a file xml

2018-08-19 Thread Antonis Katsonis
sudo tail -f /var/log/syslog

and post the results.

Also attach the skin.conf file.

-- 
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.


[weewx-user] Re: Generate a file xml

2018-08-19 Thread jahfly1000
I changed the generic name, could it come from 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 from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Generate a file xml

2018-08-19 Thread jahfly1000
Hello, sorry for the delay but I have not had much time to test. thanks to you 
for your help.Now, I put the file in the folder: /home/weewx/skins/Standard/ 
and configure the file skins.conf 
[[[xml]]]
Template= current.xml.tmpl
but I still have nothing that is generated in public_html. I can see graphics 
and web pages generated but not my current file. Where can it come from?

-- 
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.


[weewx-user] Re: Generate a file xml

2018-08-19 Thread jahfly1000
Hello, sorry for the delay but I have not had much time to test. thanks to you 
for your help.Now, I put the file in the folder: /home/weewx/skin/Standart/ 
and configure the file skin.conf 
[[[xml]]]
Template= current.xml.tmpl
but I still have nothing that is generated in public_html. I can see graphics 
and web pages generated but not my current file. Where can it come from?

-- 
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.


[weewx-user] Re: Generate a file xml

2018-08-13 Thread Antonis Katsonis
Replace your file with the attachment file.

sudo cp -i /home/USERNAME/Downloads/current.xml.tmpl /home/
weewx/skins/Standard/

-- 
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.


[weewx-user] Re: Generate a file xml

2018-08-13 Thread Antonis Katsonis
Download the attachment file.

-- 
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.


current.xml.tmpl
Description: Binary data


[weewx-user] Re: Generate a file xml

2018-08-13 Thread Antonis Katsonis


$current.dateTime
$current.outTemp.formatted
$current.barometer.formatted
$current.outHumidity.formatted
$current.dewpoint.formatted
$current.windchill.formatted
$current.windDir.formatted
$current.windSpeed.formetted
$current.rainRate.formatted
$current.rain.formatted


-- 
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.


[weewx-user] Re: Generate a file xml

2018-08-13 Thread Antonis Katsonis


$current.dateTime
$current.outTemp.formatted
$current.barometer.formatted
$current.outHumidity.formatted
$current.dewpoint.formatted
$current.windchill.formatted
$current.windDir.formatted
$current.windSpeed.formetted
$current.rainRate.formatted
$current.rain.formatted


-- 
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: Generate a file xml

2018-08-13 Thread jahfly1000
i have a problem

It does not work.
I put in my file:



 $current.dateTime
 $current.outTemp,formatted
 $current.barometer.formatted
 $current.humidity.formatted
 $current.dewpoint.formatted
 $current.windchill.formatted
 
  $current.direction.formatted
  $current.speed.formetted
 
  $current.rainrate.formatted
  $current.rain.formatted
 



I put the extra lines in skin.conf

[CheetahGenerator]
...   

[[ToDate]]

...
[[[my_xml]]]
template = current.xml.tmpl


but i don't have result in public_html.
Andy- i use jeedom automation plateform and after to have a xml file, i 
create a script in jeedom to recover info.

-- 
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: Generate a file xml

2018-08-12 Thread Andy
Which home automation platform are you using?  I have Home Assistant and a 
kludge to move data back and forth.  

-- 
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: Generate a file xml

2018-08-12 Thread Antonis Katsonis
It depends on the installation method you have made.

DEB package -> /var/www/html/weewx/

Python tool setup.py -> /home/weewx/public_html/

-- 
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: Generate a file xml

2018-08-12 Thread Thomas Keffer
The result will be put in wherever HTML_ROOT points. Please read the
Customizing Manual. In particular, see the section on the Cheetah Generator
. It answers your
question.

-tk

On Sun, Aug 12, 2018 at 10:45 AM jahfly1000  wrote:

> yes thank you and where i find the result?
> sorry to be beginner
>
> --
> 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.


Re: [weewx-user] Re: Generate a file xml

2018-08-12 Thread jahfly1000
yes thank you and where i find the result?
sorry to be beginner

-- 
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: Generate a file xml

2018-08-12 Thread Antonis Katsonis
https://github.com/weewx/weewx/tree/master/skins/Standard

-- 
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: Generate a file xml

2018-08-12 Thread Antonis Katsonis


Create it in the same folder where the skin.conf is in.

weewx/skins/Standard/

-- 
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: Generate a file xml

2018-08-12 Thread jahfly1000
excuse me but where should i create a file

-- 
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: Generate a file xml

2018-08-12 Thread jahfly1000


thank you very much I see it in the week and you know

-- 
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: Generate a file xml

2018-08-12 Thread Antonis Katsonis
Also missing the XML prolog.
It must come first in the document.

 


$current.dateTime

... (etc)



-- 
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: Generate a file xml

2018-08-12 Thread Thomas Keffer
It depends on how often you wish to generate the XML file. If you are
content to generate once per archive record, then use the WeeWX templating
system. This is super easy. Create a file current.xml.tmpl that looks
something like this:


 
$current.dateTime

 
$current.outTemp,formatted

 
$current.barometer.formatted

 
$current.humidity.formatted

 
$current.dewpoint.formatted

  ... (etc)



See the Customizing Guide for details on the "tags
."

Then in the file skin.conf, add it to the list of files to be processed:

[CheetahGenerator]
...

[[ToDate]]

...
[[[my_xml]]]
template = current.xml.tmpl


When WeeWX process the archive record and does report generation, it will
produce a file with the name current.xml.

However, if you wish to generate this file once per LOOP packet, then it
gets more difficult. You would need to write something like the csv
extension, except that it generates XML.

-tk


On Sun, Aug 12, 2018 at 8:14 AM jahfly1000  wrote:

> Hello,
> No, I'm sorry, I'm not waiting for me to do everything.
> I did some research and I found this discussion:
> https://groups.google.com/forum/#!topic/weewx-user/wWO4wmrD-yE
> So I concluded that with svc I could do xml. but I am open to any other
> trick to get there. just explain me how to generate a new weewx report in
> xml.
> And if i use StdPrint, is that i can generate a xml report?
> thank 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.
>

-- 
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.


[weewx-user] Re: Generate a file xml

2018-08-09 Thread gjr80
Hi,

If I understand you correctly you want WeeWX to produce an xml format file 
(as per the example given) for use with your home automation system. You 
have attempted to use the WeeWX csv service 
 to generate such a file by 
configuring the csv service to produce a file name ending with .xml rather 
than .csv. If this is the case I suspect you will be doomed to failure 
without significant rewriting of the csv extension to meet you needs. The 
main problem is that the csv service simply creates a string of values 
separated by commas on a single line; it has not idea how to structure an 
xml file with xml tags. You could certainly use the csv service as a bare 
bones from which to create an xml service to suit your needs, but it will 
take a significant effort and python skills and you seem to indicate you do 
not have the skills.

I would go back a step and ask what is you real requirement? The csv 
service emits a file every loop packet or archive record. If you can live 
with an updated file being generated once per archive interval as opposed 
to each loop packet, then why not just create a new WeeWX report in a new 
or existing skin to produce the xml file? The xml example you give could be 
easily put together as a WeeWX report with just a few bits of text and some 
WeeWX tags. It will be much easier to do, will involve essentially no 
python skills and you can easily do it yourself - waiting for someone else 
to write an xml service to meet your specific needs might see you waiting a 
long time.

Gary

On Friday, 10 August 2018 05:52:54 UTC+10, jahfly1000 wrote:
>
> Hello,
> I'm trying to generate an xml file with the extension csv but is not in 
> the format that I want. I would like it to be in this form:
> Saisissez le code ic
> 
>  2016-11-15 10:48:27
>  18.9
>  1001
>  87
>  11.4
>  18.9
>  
>   288
>   0.4
>  
>  
>   125
>   0.6
>  
>  
>   0.26
>   0.00
>  
> 
> i...
>
>
> because I want to use it to be able to integrate it into my home 
> automation system.
> I also do not find the options to put it in overwrite and not have the date
>
> I just managed to install the extension and change the creation path of 
> the file in weewx.conf by putting .xml instead of .csv.
>
> sorry for my little skills
> thanks in advance
>

-- 
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.