[weewx-user] Solid non-Raspbian platform for WeeWx + MariaDB?

2022-08-11 Thread Stephen Rogers
I have been stuggling for days trying to get all the moving pieces of WeeWx 
and MariaDB working on a Pi 4 running Raspbian Buster v10.  I had all this 
working before my Pi3 went south, so this difficulty is surprising.  I used 
Pi's for a few years and never hit the wall like this.  This morning I 
decided to reinstall WeeWx and MariaDB from scratch, following the 
documentation.  Not sure if it was completely successful because there are 
various error messages in the log and the nominal install location for the 
web pages doesn't line up with documentation.

But a number of aspects seem to behave so let's assume that WeeWx is really 
working.  

But the MariaDB deployment is lost in space.  I keep hitting roadblocks, 
and have searched far and wide for articles on installing it.  I use 
MariaDB on Ubuntu for my web app and have no trouble installing or managing 
it.  But so far on Raspbian I have no proof that it can properly.  I have 
also had no luck getting SSH passwordless login working from Raspbian so I 
can use rsync to push data to my cloud host.  Several dead ends there.  No 
problem doing any of this from Windows or Ubuntu.

So my  question is - what is a solid non-Debian micro-cpu platform to 
replace the troublesome Pi and Raspbian OS for running WeeWx with MariaDB 
(or MySQL) and pushing the html to cloud (Ubuntu 20.08)? 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/472b6ab7-28eb-4abf-917f-b1f715a0add3n%40googlegroups.com.


[weewx-user] Re: Solid non-Raspbian platform for WeeWx + MariaDB?

2022-08-11 Thread vince
I think it's well established that the RaspiOS is just fine for all the 
things you are trying to do, and my 'guess' is you are either running into 
firewalling issues or you're not running sudo when needed.Without 
seeing your logs and/or error messages, nobody can help you at all 
basically.

There 'is' ubuntu for the pi if you wanted to go that way.  I just 
installed the 64-bit variant of LTS server on a pi4 yesterday and it worked 
fine in minimal testing, but personally I see zero reason to run other than 
the RaspiOS which works in every way for anything I've ever tried to do on 
it.  It's just another Debian(ish) distro anyway.

I do have to ask, however, why are you trying to use MariaDB rather than 
the default sqlite3 ?   That ups your complexity factor significantly.   
The sqlite3 default just works right away out of the box.  If you can't get 
something simple like rsync to work, I'd suggest sticking with sqlite3 for 
the least complicated setup if at all possible.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/6875a443-45d0-4897-94d2-ab36b64129c3n%40googlegroups.com.


Re: [weewx-user] WDC Skin

2022-08-11 Thread David Bätge
OK, I just wanted to make sure we are talking about the same.

Currently, there are predefined aggregate_intervals for each page (index, 
week, month, year and stats) that should make sense. I thought about making 
it possible (opt-in) to change these values for every page. Actually, on 
the stats page, the interval gets automatically calculated to make the 
diagrams not too heavy.

Sorry, but I don't get what you mean by threshold, should the skin then 
decide what's best? Like on the index page it could be 10 minutes and on 
the monthly page 60 minutes? 

luca.mo...@gmail.com schrieb am Donnerstag, 11. August 2022 um 08:19:06 
UTC+2:

> My fault. 30 minutes is the actual value.
>
> I think it would be better to impose a lower and upper threshold (for 
> example max 10 minutes and min 60 minutes)
> Without these thresholds the web page can become too heavy
>
> [image: width=] 
> 
>  Privo 
> di virus.www.avast.com 
> 
>  
> <#m_-7511653341036107372_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> Il giorno gio 11 ago 2022 alle ore 01:46 David Bätge  
> ha scritto:
>
>> And that's another reasonable improvement! That's the so-called 
>> aggregate_interval. 
>> I added another issue (https://github.com/Daveiano/weewx-wdc/issues/55), 
>> which will be available in a future release.
>>
>> But where do you observe a 15 minutes interval? On the index page, it 
>> should be set to 30 minutes. 
>> luca.mo...@gmail.com schrieb am Mittwoch, 10. August 2022 um 15:52:00 
>> UTC+2:
>>
>>> I would like to propose a further improvement.
>>> Currently the graphs have a resolution of 15 minutes.
>>> It would be interesting to be able to customize this resolution for each 
>>> individual chart.
>>>
>>> Best Regards
>>>
>>> Il giorno lunedì 8 agosto 2022 alle 04:57:55 UTC+2 david@gmail.com 
>>> ha scritto:
>>>
 Hi there, I am the creator of this skin. 

 The graphs are getting generated via Javascript, not via the weewx 
 image generator, so setting these options will not have any effect. 

 You are right, currently, the yScale delta is tied to the observation, 
 in that case, temperature, which has a defined delta of 3 in the skin. 
 Another user also requested to change this, so I think it would be good to 
 add this option to the skin. I added a quick issue for that to track the 
 progress: https://github.com/Daveiano/weewx-wdc/issues/49
 Will be available in an upcoming release!
 luca.mo...@gmail.com schrieb am Sonntag, 7. August 2022 um 22:11:43 
 UTC+2:

> I've tried to add
>  
>[[[inTemp]]]
> yscale = None, None, 0.02
>  
> to skin.conf
>
> But it doesn't works.
>
> In wdc skin seems that the "data-obs" variable (that define the type 
> of graph) with value "temp" drive all the parameters of the graph.
>
> Thanks
> Il giorno domenica 7 agosto 2022 alle 20:40:52 UTC+2 
> peterq...@gmail.com ha scritto:
>
>> I don't know that skin - and I took a quick look at it and it looks 
>> like you'd find this defined in the skin.conf file. One thing you should 
>> look at is the customization doc with regards to y axis scaling here: 
>> https://www.weewx.com/docs/customizing.htm#Image_files
>>
>>
>> On Sun, Aug 7, 2022 at 11:18 AM Montefiori Luca  
>> wrote:
>>
>>> I hope this is the right place for this question.
>>>
>>> I'm using WDC Skin versione 2.0.1
>>>  
>>> [image: Inside_Temperature.jpg]
>>> In each "temp" graph there is a 3° "delta" in top and low scale.
>>> I would like to know if there is the possibility to adjust this 
>>> delta to other values (i.e 1 or 0)
>>>
>>> Thanks in advance for your answer.
>>>
>>> -- 
>>> 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.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/54ad85d7-674a-4c89-8e78-f66263e8f106n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>
>>
>> -- 
>> Peter Quinn
>> (415)794-2264 <(415)%20794-2264>
>>
> -- 
>>
> 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/L0IlIQmpa-8/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> weewx-use

Re: [weewx-user] formatting of current.inc

2022-08-11 Thread Neville Davis
My responses keep getting deleted not sure why, possibly attachments

I will again look at the guide must have missed the info.
Yes I did add "powerconsumed" in the "observations_current" in skin.conf 
list.
I had already removed those items I wished not to display and added my new 
observation after rainRate as follows...
" observations_current = outTemp, outHumidity, barometer, windSpeed, rain, 
rainRate, powerconsumed, inTemp, inHumidity"
this is my current.inc file..

Hopefully this is posted

Neville

## current module for weewx skins

## Copyright Tom Keffer, Matthew Wall

## See LICENSE.txt for your rights

#errorCatcher Echo

#encoding UTF-8




  

$gettext("Current Conditions")

♦

  


  

  




#set $observations = $to_list($DisplayOptions.get('observations_current', 
['outTemp', 'barometer']))


#for $x in $observations

  #if $getVar('year.%s.has_data' % $x)

#if $x == 'barometer'

  

$obs.label.barometer

$current.barometer 
($trend.barometer.formatted)

  

#elif $x == 'windSpeed'

  

$obs.label.wind

$current.windSpeed 
$current.windDir.ordinal_compass ($current.windDir)

  

#elif $x == 'rain'

  

$gettext("Rain Today")

$day.rain.sum

##$day($data_binding='wx_power').rain.sum

  

#elif $x == 'powerconsumed'

  

$gettext("Power Consumed today")$day.powerconsumed.sum.format("%.2f")

  

#else

  

$obs.label[$x]

$getVar('current.' + $x)

  

#end if

  #end if

#end for




  

  





On Friday, August 12, 2022 at 12:00:23 PM UTC+10 tke...@gmail.com wrote:

> It would be useful to have more information. Did you add "powerconsumed" 
> to the list "observations_current" in skin.conf? If so, where in the list? 
>
> Instead of including a screenshot of current.inc, how about posting an 
> actual copy of both it, and skin.conf? 
>
> As for your second question, see the section Assigning a unit group 
>  in the 
> Customizing Guide*.*
>
> On Thu, Aug 11, 2022 at 6:50 PM Neville Davis  
> wrote:
>
>>
>> I have data being stored in watt Hrs in the db and have a daily sum 
>> formatted to 2 decimal places in the current.inc file, it displays within 
>> the widget but at the top of the section (see attached). Any ideas on how 
>> to correct this please
>> I also would like to know how to add an observation to the standard 
>> groups, e.g the observation "powerconsumed" add to the group "group_energy"
>> Any help would be appreciated.
>>
>> Neville
>> . [image: Screen Shot 2022-08-12 at 11.33.41 am.png]
>> [image: Screen Shot 2022-08-12 at 11.44.34 am.png]
>>
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/a541c33f-1b1b-4966-ae67-a0273e6632f0n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/fcd88bce-b67a-4d4d-a701-363fe14f958en%40googlegroups.com.


Re: [weewx-user] formatting of current.inc

2022-08-11 Thread Neville Davis
I have added my new observation to the group and my data now displays with 
units correctly that is "16622.49 Wh"...and the daily sum is correct.
It still positions itself at the top of the current.inc widget.

Neville

On Friday, August 12, 2022 at 12:27:21 PM UTC+10 Neville Davis wrote:

> My responses keep getting deleted not sure why, possibly attachments
>
> I will again look at the guide must have missed the info.
> Yes I did add "powerconsumed" in the "observations_current" in skin.conf 
> list.
> I had already removed those items I wished not to display and added my new 
> observation after rainRate as follows...
> " observations_current = outTemp, outHumidity, barometer, windSpeed, rain, 
> rainRate, powerconsumed, inTemp, inHumidity"
> this is my current.inc file..
>
> Hopefully this is posted
>
> Neville
>
> ## current module for weewx skins
>
> ## Copyright Tom Keffer, Matthew Wall
>
> ## See LICENSE.txt for your rights
>
> #errorCatcher Echo
>
> #encoding UTF-8
>
>
> 
>
>   
>
> $gettext("Current Conditions")
>
> 
>   onclick="toggle_widget('current')">♦
>
>   
>
>
>   
>
>   
>
> 
>
>
> #set $observations = $to_list($DisplayOptions.get('observations_current', 
> ['outTemp', 'barometer']))
>
>
> #for $x in $observations
>
>   #if $getVar('year.%s.has_data' % $x)
>
> #if $x == 'barometer'
>
>   
>
> $obs.label.barometer
>
> $current.barometer 
> ($trend.barometer.formatted)
>
>   
>
> #elif $x == 'windSpeed'
>
>   
>
> $obs.label.wind
>
> $current.windSpeed 
> $current.windDir.ordinal_compass ($current.windDir)
>
>   
>
> #elif $x == 'rain'
>
>   
>
> $gettext("Rain Today")
>
> $day.rain.sum
>
> ##$day($data_binding='wx_power').rain.sum
>
>   
>
> #elif $x == 'powerconsumed'
>
>   
>
> $gettext("Power Consumed today")
> $day.powerconsumed.sum.format("%.2f")
>
>   
>
> #else
>
>   
>
> $obs.label[$x]
>
> $getVar('current.' + $x)
>
>   
>
> #end if
>
>   #end if
>
> #end for
>
>
> 
>
>   
>
>   
>
>
> 
>
>
> On Friday, August 12, 2022 at 12:00:23 PM UTC+10 tke...@gmail.com wrote:
>
>> It would be useful to have more information. Did you add "powerconsumed" 
>> to the list "observations_current" in skin.conf? If so, where in the list? 
>>
>> Instead of including a screenshot of current.inc, how about posting an 
>> actual copy of both it, and skin.conf? 
>>
>> As for your second question, see the section Assigning a unit group 
>>  in 
>> the Customizing Guide*.*
>>
>> On Thu, Aug 11, 2022 at 6:50 PM Neville Davis  
>> wrote:
>>
>>>
>>> I have data being stored in watt Hrs in the db and have a daily sum 
>>> formatted to 2 decimal places in the current.inc file, it displays within 
>>> the widget but at the top of the section (see attached). Any ideas on how 
>>> to correct this please
>>> I also would like to know how to add an observation to the standard 
>>> groups, e.g the observation "powerconsumed" add to the group "group_energy"
>>> Any help would be appreciated.
>>>
>>> Neville
>>> . [image: Screen Shot 2022-08-12 at 11.33.41 am.png]
>>> [image: Screen Shot 2022-08-12 at 11.44.34 am.png]
>>>
>>> -- 
>>> 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.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/a541c33f-1b1b-4966-ae67-a0273e6632f0n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/558af92c-5158-4071-b106-01ce22a4c277n%40googlegroups.com.


Re: [weewx-user] formatting of current.inc

2022-08-11 Thread Neville Davis
Thank I will look again at the Guide must have missed it.
Attached are the two files.
This is the initial stage of combining data from several systems, once I 
get this right the fun will begin.

Neville

On Friday, August 12, 2022 at 12:00:23 PM UTC+10 tke...@gmail.com wrote:

> It would be useful to have more information. Did you add "powerconsumed" 
> to the list "observations_current" in skin.conf? If so, where in the list? 
>
> Instead of including a screenshot of current.inc, how about posting an 
> actual copy of both it, and skin.conf? 
>
> As for your second question, see the section Assigning a unit group 
>  in the 
> Customizing Guide*.*
>
> On Thu, Aug 11, 2022 at 6:50 PM Neville Davis  
> wrote:
>
>>
>> I have data being stored in watt Hrs in the db and have a daily sum 
>> formatted to 2 decimal places in the current.inc file, it displays within 
>> the widget but at the top of the section (see attached). Any ideas on how 
>> to correct this please
>> I also would like to know how to add an observation to the standard 
>> groups, e.g the observation "powerconsumed" add to the group "group_energy"
>> Any help would be appreciated.
>>
>> Neville
>> . [image: Screen Shot 2022-08-12 at 11.33.41 am.png]
>> [image: Screen Shot 2022-08-12 at 11.44.34 am.png]
>>
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/a541c33f-1b1b-4966-ae67-a0273e6632f0n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a244a38d-6e29-419c-aa41-5d8d2ea76eb9n%40googlegroups.com.


current.inc
Description: Binary data
###
# SEASONS SKIN CONFIGURATION FILE #
# Copyright (c) 2018-2021 Tom Keffer  and Matthew Wall #
# See the file LICENSE.txt for your rights.   #
###

SKIN_NAME = Seasons
SKIN_VERSION = 4.8.0

###

# The following section is for any extra tags that you want to be available in
# the templates

[Extras]

# This radar image would be available as $Extras.radar_img
# radar_img = 
https://radblast.wunderground.com/cgi-bin/radar/WUNIDS_map?station=RTX&brand=wui&num=18&delay=15&type=N0R&frame=0&scale=1.000&noclutter=1&showlabels=1&severe=1
# This URL will be used as the image hyperlink:
# radar_url =   
https://radar.weather.gov/?settings=v1_eyJhZ2VuZGEiOnsiaWQiOm51bGwsImNlbnRlciI6Wy0xMjEuOTE3LDQ1LjY2XSwiem9vbSI6OH0sImJhc2UiOiJzdGFuZGFyZCIsImNvdW50eSI6ZmFsc2UsImN3YSI6ZmFsc2UsInN0YXRlIjpmYWxzZSwibWVudSI6dHJ1ZSwic2hvcnRGdXNlZE9ubHkiOmZhbHNlfQ%3D%3D#/

# Similar to radar, but for satellite image.
#satellite_img = 
http://images.intellicast.com/WxImages/SatelliteLoop/hipacsat_None_anim.gif
#satellite_url = 
http://images.intellicast.com/WxImages/SatelliteLoop/hipacsat_None_anim.gif

# To display a map, enter an API key for google maps
#google_maps_apikey = xxx

# If you have a Google Analytics ID, uncomment and edit the next line, and
# the analytics code will be included in your generated HTML files:
#googleAnalyticsId = UA-12345678-1


###

# The following section contains variables that determine which observations
# and plots will be shown in the template files, and their order.  Like other
# configuration options, these can be overridden in the weewx config file.

[DisplayOptions]

# Show link to RSS feed?
show_rss = True

# Show link to NOAA-style summary reports?
show_reports = True

# This list determines which types will appear in the "current conditions"
# section, as well as in which order.
##observations_current = outTemp, heatindex, windchill, dewpoint, 
outHumidity, barometer, windSpeed, rain, rainRate, UV, radiation, 
lightning_strike_count, inTemp, inHumidity, extraTemp1, extraHumid1, 
extraTemp2, extraHumid2, pm1_0, pm2_5, pm10_0
observations_current = outTemp, outHumidity, barometer, windSpeed, rain, 
rainRate, powerconsumed, inTemp, inHumidity
# This list determines which typ

Re: [weewx-user] formatting of current.inc

2022-08-11 Thread Neville Davis
Thanks

I thought I had posted a reply but can't see it so trying again
I will look at the guide again I obviously missed it.

the files hopefully are attached 

Neville


On Friday, August 12, 2022 at 12:00:23 PM UTC+10 tke...@gmail.com wrote:

> It would be useful to have more information. Did you add "powerconsumed" 
> to the list "observations_current" in skin.conf? If so, where in the list? 
>
> Instead of including a screenshot of current.inc, how about posting an 
> actual copy of both it, and skin.conf? 
>
> As for your second question, see the section Assigning a unit group 
>  in the 
> Customizing Guide*.*
>
> On Thu, Aug 11, 2022 at 6:50 PM Neville Davis  
> wrote:
>
>>
>> I have data being stored in watt Hrs in the db and have a daily sum 
>> formatted to 2 decimal places in the current.inc file, it displays within 
>> the widget but at the top of the section (see attached). Any ideas on how 
>> to correct this please
>> I also would like to know how to add an observation to the standard 
>> groups, e.g the observation "powerconsumed" add to the group "group_energy"
>> Any help would be appreciated.
>>
>> Neville
>> . [image: Screen Shot 2022-08-12 at 11.33.41 am.png]
>> [image: Screen Shot 2022-08-12 at 11.44.34 am.png]
>>
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/a541c33f-1b1b-4966-ae67-a0273e6632f0n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8f1a5d85-e05d-480f-9a32-2182ec7dfb7an%40googlegroups.com.


current.inc
Description: Binary data
###
# SEASONS SKIN CONFIGURATION FILE #
# Copyright (c) 2018-2021 Tom Keffer  and Matthew Wall #
# See the file LICENSE.txt for your rights.   #
###

SKIN_NAME = Seasons
SKIN_VERSION = 4.8.0

###

# The following section is for any extra tags that you want to be available in
# the templates

[Extras]

# This radar image would be available as $Extras.radar_img
# radar_img = 
https://radblast.wunderground.com/cgi-bin/radar/WUNIDS_map?station=RTX&brand=wui&num=18&delay=15&type=N0R&frame=0&scale=1.000&noclutter=1&showlabels=1&severe=1
# This URL will be used as the image hyperlink:
# radar_url =   
https://radar.weather.gov/?settings=v1_eyJhZ2VuZGEiOnsiaWQiOm51bGwsImNlbnRlciI6Wy0xMjEuOTE3LDQ1LjY2XSwiem9vbSI6OH0sImJhc2UiOiJzdGFuZGFyZCIsImNvdW50eSI6ZmFsc2UsImN3YSI6ZmFsc2UsInN0YXRlIjpmYWxzZSwibWVudSI6dHJ1ZSwic2hvcnRGdXNlZE9ubHkiOmZhbHNlfQ%3D%3D#/

# Similar to radar, but for satellite image.
#satellite_img = 
http://images.intellicast.com/WxImages/SatelliteLoop/hipacsat_None_anim.gif
#satellite_url = 
http://images.intellicast.com/WxImages/SatelliteLoop/hipacsat_None_anim.gif

# To display a map, enter an API key for google maps
#google_maps_apikey = xxx

# If you have a Google Analytics ID, uncomment and edit the next line, and
# the analytics code will be included in your generated HTML files:
#googleAnalyticsId = UA-12345678-1


###

# The following section contains variables that determine which observations
# and plots will be shown in the template files, and their order.  Like other
# configuration options, these can be overridden in the weewx config file.

[DisplayOptions]

# Show link to RSS feed?
show_rss = True

# Show link to NOAA-style summary reports?
show_reports = True

# This list determines which types will appear in the "current conditions"
# section, as well as in which order.
##observations_current = outTemp, heatindex, windchill, dewpoint, 
outHumidity, barometer, windSpeed, rain, rainRate, UV, radiation, 
lightning_strike_count, inTemp, inHumidity, extraTemp1, extraHumid1, 
extraTemp2, extraHumid2, pm1_0, pm2_5, pm10_0
observations_current = outTemp, outHumidity, barometer, windSpeed, rain, 
rainRate, powerconsumed, inTemp, inHumidity
# This list determines which types will appear in the "statistics" an

Re: [weewx-user] formatting of current.inc

2022-08-11 Thread gjr80
Not sure if it's the cause or not, but you might want to add the missing 
'>' to the closing  at the end of this line:

$gettext("Power Consumed today") My responses keep getting deleted not sure why, possibly attachments
>
> I will again look at the guide must have missed the info.
> Yes I did add "powerconsumed" in the "observations_current" in skin.conf 
> list.
> I had already removed those items I wished not to display and added my new 
> observation after rainRate as follows...
> " observations_current = outTemp, outHumidity, barometer, windSpeed, rain, 
> rainRate, powerconsumed, inTemp, inHumidity"
> this is my current.inc file..
>
> Hopefully this is posted
>
> Neville
>
> ## current module for weewx skins
>
> ## Copyright Tom Keffer, Matthew Wall
>
> ## See LICENSE.txt for your rights
>
> #errorCatcher Echo
>
> #encoding UTF-8
>
>
> 
>
>   
>
> $gettext("Current Conditions")
>
> 
>   onclick="toggle_widget('current')">♦
>
>   
>
>
>   
>
>   
>
> 
>
>
> #set $observations = $to_list($DisplayOptions.get('observations_current', 
> ['outTemp', 'barometer']))
>
>
> #for $x in $observations
>
>   #if $getVar('year.%s.has_data' % $x)
>
> #if $x == 'barometer'
>
>   
>
> $obs.label.barometer
>
> $current.barometer 
> ($trend.barometer.formatted)
>
>   
>
> #elif $x == 'windSpeed'
>
>   
>
> $obs.label.wind
>
> $current.windSpeed 
> $current.windDir.ordinal_compass ($current.windDir)
>
>   
>
> #elif $x == 'rain'
>
>   
>
> $gettext("Rain Today")
>
> $day.rain.sum
>
> ##$day($data_binding='wx_power').rain.sum
>
>   
>
> #elif $x == 'powerconsumed'
>
>   
>
> $gettext("Power Consumed today")
> $day.powerconsumed.sum.format("%.2f")
>
>   
>
> #else
>
>   
>
> $obs.label[$x]
>
> $getVar('current.' + $x)
>
>   
>
> #end if
>
>   #end if
>
> #end for
>
>
> 
>
>   
>
>   
>
>
> 
>
>
> On Friday, August 12, 2022 at 12:00:23 PM UTC+10 tke...@gmail.com wrote:
>
>> It would be useful to have more information. Did you add "powerconsumed" 
>> to the list "observations_current" in skin.conf? If so, where in the list? 
>>
>> Instead of including a screenshot of current.inc, how about posting an 
>> actual copy of both it, and skin.conf? 
>>
>> As for your second question, see the section Assigning a unit group 
>>  in 
>> the Customizing Guide*.*
>>
>> On Thu, Aug 11, 2022 at 6:50 PM Neville Davis  
>> wrote:
>>
>>>
>>> I have data being stored in watt Hrs in the db and have a daily sum 
>>> formatted to 2 decimal places in the current.inc file, it displays within 
>>> the widget but at the top of the section (see attached). Any ideas on how 
>>> to correct this please
>>> I also would like to know how to add an observation to the standard 
>>> groups, e.g the observation "powerconsumed" add to the group "group_energy"
>>> Any help would be appreciated.
>>>
>>> Neville
>>> . [image: Screen Shot 2022-08-12 at 11.33.41 am.png]
>>> [image: Screen Shot 2022-08-12 at 11.44.34 am.png]
>>>
>>> -- 
>>> 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.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/a541c33f-1b1b-4966-ae67-a0273e6632f0n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/0def2033-e1fa-460e-b338-e4b029bd74e1n%40googlegroups.com.


Re: [weewx-user] formatting of current.inc

2022-08-11 Thread Neville Davis
Gary 

Thanks for that, I did look and look, it was the problem.

Neville

On Friday, August 12, 2022 at 3:08:32 PM UTC+10 gjr80 wrote:

> Not sure if it's the cause or not, but you might want to add the missing 
> '>' to the closing  at the end of this line:
>
> $gettext("Power Consumed today")
> Gary
>
> On Friday, 12 August 2022 at 12:27:21 UTC+10 nevilled...@gmail.com wrote:
>
>> My responses keep getting deleted not sure why, possibly attachments
>>
>> I will again look at the guide must have missed the info.
>> Yes I did add "powerconsumed" in the "observations_current" in skin.conf 
>> list.
>> I had already removed those items I wished not to display and added my 
>> new observation after rainRate as follows...
>> " observations_current = outTemp, outHumidity, barometer, windSpeed, 
>> rain, rainRate, powerconsumed, inTemp, inHumidity"
>> this is my current.inc file..
>>
>> Hopefully this is posted
>>
>> Neville
>>
>> ## current module for weewx skins
>>
>> ## Copyright Tom Keffer, Matthew Wall
>>
>> ## See LICENSE.txt for your rights
>>
>> #errorCatcher Echo
>>
>> #encoding UTF-8
>>
>>
>> 
>>
>>   
>>
>> $gettext("Current Conditions")
>>
>> >
>>   onclick="toggle_widget('current')">♦
>>
>>   
>>
>>
>>   
>>
>>   
>>
>> 
>>
>>
>> #set $observations = $to_list($DisplayOptions.get('observations_current', 
>> ['outTemp', 'barometer']))
>>
>>
>> #for $x in $observations
>>
>>   #if $getVar('year.%s.has_data' % $x)
>>
>> #if $x == 'barometer'
>>
>>   
>>
>> $obs.label.barometer
>>
>> $current.barometer 
>> ($trend.barometer.formatted)
>>
>>   
>>
>> #elif $x == 'windSpeed'
>>
>>   
>>
>> $obs.label.wind
>>
>> $current.windSpeed 
>> $current.windDir.ordinal_compass ($current.windDir)
>>
>>   
>>
>> #elif $x == 'rain'
>>
>>   
>>
>> $gettext("Rain Today")
>>
>> $day.rain.sum
>>
>> ##$day($data_binding='wx_power').rain.sum
>>
>>   
>>
>> #elif $x == 'powerconsumed'
>>
>>   
>>
>> $gettext("Power Consumed today")>
>> $day.powerconsumed.sum.format("%.2f")
>>
>>   
>>
>> #else
>>
>>   
>>
>> $obs.label[$x]
>>
>> $getVar('current.' + $x)
>>
>>   
>>
>> #end if
>>
>>   #end if
>>
>> #end for
>>
>>
>> 
>>
>>   
>>
>>   
>>
>>
>> 
>>
>>
>> On Friday, August 12, 2022 at 12:00:23 PM UTC+10 tke...@gmail.com wrote:
>>
>>> It would be useful to have more information. Did you add "powerconsumed" 
>>> to the list "observations_current" in skin.conf? If so, where in the list? 
>>>
>>> Instead of including a screenshot of current.inc, how about posting an 
>>> actual copy of both it, and skin.conf? 
>>>
>>> As for your second question, see the section Assigning a unit group 
>>>  in 
>>> the Customizing Guide*.*
>>>
>>> On Thu, Aug 11, 2022 at 6:50 PM Neville Davis  
>>> wrote:
>>>

 I have data being stored in watt Hrs in the db and have a daily sum 
 formatted to 2 decimal places in the current.inc file, it displays within 
 the widget but at the top of the section (see attached). Any ideas on how 
 to correct this please
 I also would like to know how to add an observation to the standard 
 groups, e.g the observation "powerconsumed" add to the group "group_energy"
 Any help would be appreciated.

 Neville
 . [image: Screen Shot 2022-08-12 at 11.33.41 am.png]
 [image: Screen Shot 2022-08-12 at 11.44.34 am.png]

 -- 
 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.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/a541c33f-1b1b-4966-ae67-a0273e6632f0n%40googlegroups.com
  
 
 .

>>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/334e5b3f-12a5-4ca1-a558-96373c9df914n%40googlegroups.com.