Just to proceed step by step:
Your code goes into a file cpu_temp.py.
First line as usually I added:
#!/usr/bin/env python
Then, how do I have to include this file into my Seasons skin file
about.inc?
Sorry, but, as I said, I am totally uncomfortable with python.
Am Donnerstag, 20. Februar 2020 20:27:12 UTC+1 schrieb ed100:
>
> Forgot to say I am using Belchertown/MQTT and the cpu temp is on front
> page updating every 10 sec.
>
> On Thursday, February 20, 2020 at 10:55:00 AM UTC-6, Vetti52 wrote:
>>
>> Sorry for being too dumb for python...
>>
>> I want to show the actual cpu temperature in the "About this weather
>> station" section. On my Raspberry Pi I get the result:
>>
>> $ vcgencmd measure_temp
>> temp=53.0'C
>>
>> However, I do not know, how to enter this into a skin file.
>> I gave a first try to
>>
>> <?PHP
>> echo exec('vcgencmd measure_temp|sed "s/'/ °/"');
>> ?>
>>
>> resulting in
>> VCHI initialization failed
>>
>> I have added www-data to the video group, but this did not help. But, may
>> be, it is much easier to realize. Please help!
>>
>>
>>
--
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/17489cba-54b8-43f1-b090-ef2d271a054e%40googlegroups.com.