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/c7515d9c-a796-462c-9943-a365c93e552cn%40googlegroups.com.

Reply via email to