Hello.

Thank you. i have this Problem:
pi@Wetterstation:~ $ sudo wee_reports
Using configuration file /etc/weewx/weewx.conf
Generating for all time
Traceback (most recent call last):
  File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
    obj.start()
  File "/usr/share/weewx/weewx/reportengine.py", line 378, in start
    self.run()
  File "/usr/share/weewx/weewx/imagegenerator.py", line 42, in run
    self.gen_images(self.gen_ts)
  File "/usr/share/weewx/weewx/imagegenerator.py", line 107, in gen_images
    plot = self.gen_plot(plotgen_ts,
  File "/usr/share/weewx/weewx/imagegenerator.py", line 270, in gen_plot
    new_data_vec_t = self.converter.convert(data_vec_t)
  File "/usr/share/weewx/weewx/units.py", line 872, in convert
    new_unit_type = self.group_unit_dict.get(val_t[2], USUnits[val_t[2]])
  File "/usr/lib/python3.9/collections/__init__.py", line 941, in 
__getitem__
    return self.__missing__(key)            # support subclasses that 
define __missing__
  File "/usr/lib/python3.9/collections/__init__.py", line 933, in 
__missing__
    raise KeyError(key)
KeyError: 'group_cpu_temp'

Can you Help me?

Thx

vince schrieb am Montag, 21. März 2022 um 18:01:31 UTC+1:

> Given this is really ancient dead code, I'd suggest you look into using 
> https://github.com/weewx/weewx/wiki/cmon which is in the weewx core repos.
>
> On Monday, March 21, 2022 at 6:57:19 AM UTC-7 Meteo Oberwallis wrote:
>
>> Hello. 
>> I know it's been a while since this thread, but it's still interesting to 
>> me. Hence my question. Does this still work with the current weewx 
>> version? I would like to expand this, but I keep getting an error 
>> message. What I also don't quite understand is what "decide which fields 
>> you want to record, and add them to the schemas.py file, following the 
>> instructions in the "customizing weewx" documentation, section 5.1, "Adding 
>> a new observation type" means. Can someone please explain to me what 
>> exactly I should do to make it work? 
>> Thanks and Greetings
>> [email protected] schrieb am Dienstag, 7. Mai 2013 um 19:13:25 UTC+2:
>>
>>> I am running weewx on a Raspberry Pi, and geek that I am, I wanted to 
>>> collect some performance data. I read the doc and decided to add an 
>>> extension to do this. Others may find this useful so I'm posting it here.
>>>
>>> I am currently collecting the following (field name, contents):
>>>  "cpuUsagePercent" - OS Usage Percent - sum of all states except idle
>>>  "cpuWaitPercent" - OS Wait Percent - time spent in wait
>>>  "cpuLoadFactor" - OS Load Factor
>>>  "cpuTemperature" - R-Pi Processor temperature
>>>  "logErrors" - Log file errors
>>>  "logOPErrors" - Log file Operational errors
>>>  "logFTPErrors" - Log file FTP errors
>>>  "logRFErrors" - Log file Restful errors
>>>
>>> With the exception of processor temperature (specific to the Raspberry 
>>> Pi) the code should work on any hardware.
>>>
>>> The OS usage data comes from /proc/stat - see 
>>> http://www.linuxhowtos.org/System/procstat.htm for an explanation.
>>>
>>> To install this extension:
>>> 1) shutdown weewx
>>> 2) decide which fields you want to record, and add them to the 
>>> schemas.py file, following the instructions in the "customizing weewx" 
>>> documentation, section 5.1, "Adding a new observation type"
>>> 3) copy "cpustats.py" and "procstat.py" to your weewx bin/user folder 
>>> and modify as needed
>>> 4) edit your "weewx.conf" file and add "user.cpustats.CpuStats" to the 
>>> front of the list of services - unless you've added other services, 
>>> "service_list" should look like this
>>>         service_list = user.cpustats.CpuStats, 
>>> weewx.wxengine.StdConvert, weewx.wxengine.StdCalibrate, 
>>> weewx.wxengine.StdQC, weewx.wxengine.StdArchive, 
>>> weewx.wxengine.StdTimeSynch, 
>>> weewx.wxengine.StdPrint, weewx.wxengine.StdRESTful, weewx.wxengine.StdReport
>>> 5) restart weewx
>>>
>>> Once you've got it running and the data is being collected, the next 
>>> step is to add graphs in your skin.conf file. I can post examples of how to 
>>> do this if people want.
>>>
>>> You can see actual live data at http://www.meier-phelps.com/weather and 
>>> http://www.meier-phelps.com/OhloneFarm .
>>>
>>> I have found this to be very helpful in monitoring and tuning these 2 
>>> systems. In particular the IO Wait percent is a good indicator of SD card 
>>> health on the R-Pi.
>>>
>>> William
>>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/061bb7fa-f4cb-4109-96fa-19b4ce0c5841n%40googlegroups.com.

Reply via email to