Sending data from the Pi to COSM

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
strontium1
 
Posts: 7
Joined: Sat Sep 01, 2012 6:53 pm

Sending data from the Pi to COSM

Post by strontium1 »

Hi,

I have followed the Adafruit instructions at
http://learn.adafruit.com/send-raspberr ... m/overview

When I run the python script as advised (sudo ./web2iso.py (program_name)) using the provided code I get the message
"Non ASCII character 'XC2' in file ./web2iso.py in line 13, but no encoding declared"

If I then put the code into IDLE3 and run it it highlights part of the adcnum (adcnu in red) on the above line and says "invalid character in Identifier"

I copied the program from the midori web browser and pasted into IDLE3 and saved as a .py file. I then ran chmod +x.

I'd welcome any ideas on what I am doing wrong.

Many thanks

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Sending data from the Pi to COSM

Post by adafruit »

view it raw, and then copy and paste it - or better yet, git clone it. you have a copy paste error

User avatar
strontium1
 
Posts: 7
Joined: Sat Sep 01, 2012 6:53 pm

Re: Sending data from the Pi to COSM

Post by strontium1 »

Very many thanks, you were absolutely right - temp sensor now talking to the Pi - just need to get it to talk to COSM now.

Once again thanks for the help.

Kindest regards

Jim

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”