Hello Vince.
I have no idea how to solve this? So, better said, how I could then display
the value in the Belchertown skin under about, for example. It would also
be interesting if you could display the RPI kernel version there. You can
read the operating hours of the hard drive with the command in Raspian:
sudo smartctl --attributes /dev/sda | grep Power_On_Hours. But how do I get
this value in weewx? It should not be written into the database, but can be
retrieved every day with a command and then displayed in the Belchertown
skin. Or are there other ideas?
vince schrieb am Sonntag, 24. September 2023 um 19:08:43 UTC+2:
> I was pointing you to an example as a starting point for 'you' to do the
> work to add that feature.
>
> On Sunday, September 24, 2023 at 3:34:00 AM UTC-7 Meteo Oberwallis wrote:
>
>> Hey Vince
>>
>> I have cmon and can not find the Hours from the disk. Better, when this
>> can see z.b under the about Site form Belchertown?
>>
>> vince schrieb am Samstag, 23. September 2023 um 18:55:31 UTC+2:
>>
>>> I would look at extensions like cmon for examples of how to approach
>>> this.
>>>
>>> On Saturday, September 23, 2023 at 4:51:12 AM UTC-7 Meteo Oberwallis
>>> wrote:
>>>
>>>> Hello everyone
>>>> I have a Raspberry 3 B+ and an SSD is attached via USB. The operating
>>>> system (Raspian) and weewx run on it. Now I would like the operating hours
>>>> of the SSD to be displayed in weewx. This works, if you enter the command
>>>> "smartctl --attributes "${disk}" | grep Power_On_Hours" via "smartctl",
>>>> you
>>>> get the operating hours of the hard drive
>>>> (https://linuxconfig.org/retrieve-hard-drive
>>>> -s-age-and-general-health-information-using-linux). Now it would be
>>>> great if you could display this in weewx. Does anyone have an idea on how
>>>> this could be implemented? You should be able to save the value of the
>>>> “operating hours” in weewx?
>>>>
>>>> Kind regards
>>>
>>>
--
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/cdc343d5-8298-47e4-92f3-d301deb7fa17n%40googlegroups.com.