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/

Sending data from the Pi to COSM

by strontium1 on Sat Sep 01, 2012 6:07 pm

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
strontium1
 
Posts: 7
Joined: Sat Sep 01, 2012 5:53 pm

Re: Sending data from the Pi to COSM

by adafruit on Sun Sep 02, 2012 8:52 pm

view it raw, and then copy and paste it - or better yet, git clone it. you have a copy paste error
User avatar
adafruit
 
Posts: 11509
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Sending data from the Pi to COSM

by strontium1 on Fri Sep 07, 2012 11:36 am

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
strontium1
 
Posts: 7
Joined: Sat Sep 01, 2012 5:53 pm