Where does your service sit in the service order in relation to StdWXCalculate in weewx.conf under [Engine] [[Services]]? One possible reason is that if your station does not provide field ET (not many (any?) provide a numeric value in every archive record) and the StdWXCalculate service then calculate ET if it can. If your service that references ET is executed before StdWXCalculate then field ET will not (yet) exist in the archive record. In this case the solution is put your service after StdWXCalculate.
Gary
Regards the order I apologise, I mislead you, you do indeed need to change the order but not by changing the order of the service lines (it will have no effect by itself) but rather moving your service to another service line such that it is processed after StdWXCalculate but before the record is saved to archive by StdArchive, something like this should work (untested):
[Engine]
[[Services]]
# This section specifies the services that should be run. They are
# grouped by type, and the order of services within each group
# determines the order in which the services will be run.
prep_services = weewx.engine.StdTimeSynch
data_services = ,
process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate, user.electricity.AddElectricity
archive_services = weewx.engine.StdArchive
restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS
report_services = weewx.engine.StdPrint, weewx.engine.StdReport
Equally you could add it to the archive_services line before StdArchive, but that is a little misleading in terms of what your service does.
--
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/a91ef05e-b076-47e4-ba5a-6d460eaeeb44%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.