Try assigning the subscripted value to a variable if you want the computer 
name rather than the platform name to see if that works.



On Sunday, 25 September 2016 14:30:50 UTC+3, zkab wrote:

> OK - I am almost at the finish line.
> When I run Python in interactive mode I get following - which is OK:
>
> >>> import os
> >>> os.uname()
> ('Linux', 'weather-raspi', '4.4.13-v7+', '#894 SMP Mon Jun 13 13:13:27 BST 
> 2016', 'armv7l')
> >>> os.uname()[1]
> 'weather-raspi'
> >>> 
> but when I include $os.uname()[1] in a page it will not work ... it gives 
> ('Linux', 'weather-raspi', '4.4.13-v7+', '#894 SMP Mon Jun 13 13:13:27 BST 
> 2016', 'armv7l')[1]
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to