Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

VMS is like a nightmare about RXS-11M.


computers / comp.sys.raspberry-pi / Missing Degree Symbol On Sense Hat

SubjectAuthor
* Missing Degree Symbol On Sense HatDr Stephen Strange
`* Re: Missing Degree Symbol On Sense HatDr Stephen Strange
 `* Re: Missing Degree Symbol On Sense HatAnssi Saari
  `* Re: Missing Degree Symbol On Sense HatAndy Burns
   `- Re: Missing Degree Symbol On Sense HatThe Natural Philosopher

1
Missing Degree Symbol On Sense Hat

<pXydnYCpp7-yku74nZ2dnZfqn_udnZ2d@brightview.co.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=8204&group=comp.sys.raspberry-pi#8204

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 08 Dec 2023 12:42:23 +0000
Newsgroups: comp.sys.raspberry-pi
X-Mozilla-News-Host: news://usenet.plus.net:119
From: no.spam@me.com (Dr Stephen Strange)
Subject: Missing Degree Symbol On Sense Hat
Date: Fri, 8 Dec 2023 12:42:23 +0000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 14.1; rv:91.0)
Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.17.1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <pXydnYCpp7-yku74nZ2dnZfqn_udnZ2d@brightview.co.uk>
Lines: 27
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-QYr2cMxytIiZwzHnlwd34ugWu0hjDQtFDpxR3FkI/DloGBbFG/piRq0UofrKxEO63Wnbqt/s98qmNtV!PN7CuB6AijcIqQY8iaggwfRIt6JFK32gtuegR3+/IJVWR4giy7a/xcW5i/4oGfqlmo8bYQHXIhjl!C98uc7C+3JNppQjJSVnfpOpDiw==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Dr Stephen Strange - Fri, 8 Dec 2023 12:42 UTC

I am just starting to get to grips with a Sense Hat I have recently
bought. (My coding skills are very limited)

I am trying to get it to display local weather using an rss feed.

This is my script

import feedparser
from sense_hat import SenseHat

sense = SenseHat()

d =
feedparser.parse("https://weather-broker-cdn.api.bbci.co.uk/en/observation/rss/2643266")

print (d.feed.title)

for post in d.entries:
print (post.title)
sense.show_message(post.title)

It works fine but instead of a degree symbol a ? mark is displayed.
It seems the dgree symbol is missing from the sense hat.

It there anyway to filter the output and either strip the degree symbol
or subtitute it with the word 'degrees'

Re: Missing Degree Symbol On Sense Hat

<4cidnV2-GKxBiu74nZ2dnZfqnPqdnZ2d@brightview.co.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=8207&group=comp.sys.raspberry-pi#8207

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.99.22.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 08 Dec 2023 13:19:24 +0000
Subject: Re: Missing Degree Symbol On Sense Hat
Newsgroups: comp.sys.raspberry-pi
References: <pXydnYCpp7-yku74nZ2dnZfqn_udnZ2d@brightview.co.uk>
From: no.spam@me.com (Dr Stephen Strange)
Date: Fri, 8 Dec 2023 13:19:24 +0000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 14.1; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.17.1
MIME-Version: 1.0
In-Reply-To: <pXydnYCpp7-yku74nZ2dnZfqn_udnZ2d@brightview.co.uk>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <4cidnV2-GKxBiu74nZ2dnZfqnPqdnZ2d@brightview.co.uk>
Lines: 35
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-pVGyewNhe5/wTYhtanrMsSIc6UecXszt6hd7PI2HwaznqJFB0fIHufoR7VEun2YiRyqyoThvteewirf!3ks+Wl4KE98ZO84Auv56X6PqI59tQXHuk8tiS0uxV4bg6bhSl5vy4WLp9nmXeXMNqh8NSCB8/wJO!cVwbPOrnQ1E1c413pi5SYaEIhw==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Dr Stephen Strange - Fri, 8 Dec 2023 13:19 UTC

Dr Stephen Strange wrote:
> I am just starting to get to grips with a Sense Hat I have recently
> bought. (My coding skills are very limited)
>
> I am trying to get it to display local weather using an rss feed.
>
> This is my script
>
> import feedparser
> from sense_hat import SenseHat
>
> sense = SenseHat()
>
> d =
> feedparser.parse("https://weather-broker-cdn.api.bbci.co.uk/en/observation/rss/2643266")
>
>
> print (d.feed.title)
>
> for post in d.entries:
>     print (post.title)
>     sense.show_message(post.title)
>
>
> It works fine but instead of a degree symbol a ? mark is displayed.
> It seems the dgree symbol is missing from the sense hat.
>
> It there anyway to filter the output and either strip the degree symbol
> or subtitute it with the word 'degrees'
In answer to my own question

sense.show_message(post.title.replace("°","'"))

Works

Re: Missing Degree Symbol On Sense Hat

<sm0a5qfbjr6.fsf@lakka.kapsi.fi>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=8363&group=comp.sys.raspberry-pi#8363

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anssi.saari@usenet.mail.kapsi.fi (Anssi Saari)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Missing Degree Symbol On Sense Hat
Date: Tue, 12 Dec 2023 16:03:41 +0200
Organization: An impatient and LOUD arachnid
Lines: 29
Message-ID: <sm0a5qfbjr6.fsf@lakka.kapsi.fi>
References: <pXydnYCpp7-yku74nZ2dnZfqn_udnZ2d@brightview.co.uk>
<4cidnV2-GKxBiu74nZ2dnZfqnPqdnZ2d@brightview.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="daceb28950148ff2da8ff337609a6e22";
logging-data="3875571"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7JAEYg+IjhxCp6LZsmhdA"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:zpubgyy9yxe3Ciu1yU6dlK+s/HM=
sha1:9WNa9uC5r8prxqrMD4bYZuBV5yY=
 by: Anssi Saari - Tue, 12 Dec 2023 14:03 UTC

Dr Stephen Strange <no.spam@me.com> writes:

> Dr Stephen Strange wrote:
>> I am just starting to get to grips with a Sense Hat I have recently
>> bought. (My coding skills are very limited)
>> I am trying to get it to display local weather using an rss feed.
>> This is my script
>> import feedparser
>> from sense_hat import SenseHat
>> sense = SenseHat()
>> d =
>> feedparser.parse("https://weather-broker-cdn.api.bbci.co.uk/en/observation/rss/2643266")
>> print (d.feed.title)
>> for post in d.entries:
>>     print (post.title)
>>     sense.show_message(post.title)
>>
>> It works fine but instead of a degree symbol a ? mark is displayed.
>> It seems the dgree symbol is missing from the sense hat.
>> It there anyway to filter the output and either strip the degree
>> symbol or subtitute it with the word 'degrees'
> In answer to my own question
>
> sense.show_message(post.title.replace("°","'"))
>
> Works

If it works for you, great. Otherwise you might want to set your locale
so that the degree symbol can actully be printed.

Re: Missing Degree Symbol On Sense Hat

<ktrk6mF77flU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=8370&group=comp.sys.raspberry-pi#8370

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!nntp.comgw.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@andyburns.uk (Andy Burns)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Missing Degree Symbol On Sense Hat
Date: Tue, 12 Dec 2023 17:39:29 +0000
Lines: 12
Message-ID: <ktrk6mF77flU1@mid.individual.net>
References: <pXydnYCpp7-yku74nZ2dnZfqn_udnZ2d@brightview.co.uk>
<4cidnV2-GKxBiu74nZ2dnZfqnPqdnZ2d@brightview.co.uk>
<sm0a5qfbjr6.fsf@lakka.kapsi.fi>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net QBRBvSAoTdfp+xsT0dej3gspR8D06QkZ2E3YPSEgxzIQ+FFtjh
Cancel-Lock: sha1:DSLITA0nyqGren4BKlgFh7B3nU4= sha256:SZEdIVN+uYQvWDwbAlfz4blz/jOwKmtQxgQ6l7niAQc=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <sm0a5qfbjr6.fsf@lakka.kapsi.fi>
 by: Andy Burns - Tue, 12 Dec 2023 17:39 UTC

Anssi Saari wrote:

> Dr Stephen Strange writes:
>
>> sense.show_message(post.title.replace("°","'"))
>> Works
>
> If it works for you, great. Otherwise you might want to set your locale
> so that the degree symbol can actully be printed.

I think the "hat" might have limited character set/bitmap fonts (it's
display is just an 8x8 grid of LEDs

Re: Missing Degree Symbol On Sense Hat

<ula8pd$3oifn$5@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=8373&group=comp.sys.raspberry-pi#8373

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Missing Degree Symbol On Sense Hat
Date: Tue, 12 Dec 2023 18:29:01 +0000
Organization: A little, after lunch
Lines: 27
Message-ID: <ula8pd$3oifn$5@dont-email.me>
References: <pXydnYCpp7-yku74nZ2dnZfqn_udnZ2d@brightview.co.uk>
<4cidnV2-GKxBiu74nZ2dnZfqnPqdnZ2d@brightview.co.uk>
<sm0a5qfbjr6.fsf@lakka.kapsi.fi> <ktrk6mF77flU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 12 Dec 2023 18:29:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cb737222cc763d1b91c7f97ab50ada1c";
logging-data="3951095"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++hHwY2O1Bzb0On+u+82oGTs5JkxDyGZg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:jXfboN7Ys8BdC6F230fKSq3/MVc=
In-Reply-To: <ktrk6mF77flU1@mid.individual.net>
Content-Language: en-GB
 by: The Natural Philosop - Tue, 12 Dec 2023 18:29 UTC

On 12/12/2023 17:39, Andy Burns wrote:
> Anssi Saari wrote:
>
>> Dr Stephen Strange writes:
>>
>>> sense.show_message(post.title.replace("°","'"))
>>> Works
>>
>> If it works for you, great. Otherwise you might want to set your locale
>> so that the degree symbol can actully be printed.
>
> I think the "hat" might have limited character set/bitmap fonts (it's
> display is just an 8x8 grid of LEDs

I had that problem with a ''7 segment" font...I cheated by dropping into
IIRC ARIAL font for the '°'...

If I had time I would edit that font...

But if the device won't display it, there's no point in sending it, is
there?

--
Any fool can believe in principles - and most of them do!

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor