Memorial day is 05/25/2015 – Orders will ship out on May 26th. There will not be any deliveries or shipping on Monday. Any order placed after 11am ET on Friday May 22nd will not start to ship out until Tuesday May 26th.

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/

Sending data from the Pi to COSM

by strontium1 on Sat Sep 01, 2012 7: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 6:53 pm

Re: Sending data from the Pi to COSM

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

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

adafruit
 
Posts: 11905
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Sending data from the Pi to COSM

by strontium1 on Fri Sep 07, 2012 12:36 pm

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 6:53 pm