{"action":"created","issue":{"url":"https://api.github.com/repos/switchdoclabs/RaspberryPi-WeatherPiArduinoV2/issues/2","repository_url":"https://api.github.com/repos/switchdoclabs/RaspberryPi-WeatherPiArduinoV2","labels_url":"https://api.github.com/repos/switchdoclabs/RaspberryPi-WeatherPiArduinoV2/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/switchdoclabs/RaspberryPi-WeatherPiArduinoV2/issues/2/comments","events_url":"https://api.github.com/repos/switchdoclabs/RaspberryPi-WeatherPiArduinoV2/issues/2/events","html_url":"https://github.com/switchdoclabs/RaspberryPi-WeatherPiArduinoV2/issues/2","id":158571976,"number":2,"title":"Error accessing 0x48: Check your I2C address","user":{"login":"ltdenard","id":2850858,"avatar_url":"https://avatars.githubusercontent.com/u/2850858?v=3","gravatar_id":"","url":"https://api.github.com/users/ltdenard","html_url":"https://github.com/ltdenard","followers_url":"https://api.github.com/users/ltdenard/followers","following_url":"https://api.github.com/users/ltdenard/following{/other_user}","gists_url":"https://api.github.com/users/ltdenard/gists{/gist_id}","starred_url":"https://api.github.com/users/ltdenard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltdenard/subscriptions","organizations_url":"https://api.github.com/users/ltdenard/orgs","repos_url":"https://api.github.com/users/ltdenard/repos","events_url":"https://api.github.com/users/ltdenard/events{/privacy}","received_events_url":"https://api.github.com/users/ltdenard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-05T20:12:03Z","updated_at":"2016-06-07T22:50:13Z","closed_at":null,"body":"After wiring the WeatherPiArduino to my Raspberry Pi 2 model b as laid out in the following link, I get an error about I2C address 48 not being available.\r\nhttps://i0.wp.com/www.switchdoc.com/wp-content/uploads/2014/10/WPA-RaspberryPiB-_bbLogo.png\r\n```\r\npi@jupiter:~/RaspberryPi-WeatherPiArduinoV2/SDL_Pi_WeatherRack$ python SDL_Pi_WeatherRackTest.py \r\nError accessing 0x48: Check your I2C address\r\nError accessing 0x48: Check your I2C address\r\nType Error\r\n---------------------------------------- \r\n----------------- \r\n SDL_Pi_WeatherRack Library\r\n WeatherRack Weather Sensors\r\n----------------- \r\nRain Total=\t0.00 in\r\nWind Speed=\t0.00 MPH\r\nMPH wind_gust=\t0.00 MPH\r\nError accessing 0x48: Check your I2C address\r\nError accessing 0x48: Check your I2C address\r\nTraceback (most recent call last):\r\n  File \"SDL_Pi_WeatherRackTest.py\", line 64, in <module>\r\n    print \"Wind Direction=\\t\\t\\t %0.2f Degrees\" % weatherStation.current_wind_direction()\r\n  File \"/root/RaspberryPi-WeatherPiArduinoV2/SDL_Pi_WeatherRack/SDL_Pi_WeatherRack.py\", line 232, in current_wind_direction\r\n    value = self.ads1015.readADCSingleEnded(1, self.gain, self.sps) # AIN1 wired to wind vane on WeatherPiArduino\r\n  File \"../Adafruit_ADS1x15/Adafruit_ADS1x15.py\", line 278, in readADCSingleEnded\r\n    return ( ((result[0] << 8) | (result[1] & 0xFF)) >> 4 )*pga/2048.0\r\nTypeError: 'int' object has no attribute '__getitem__'\r\n```\r\nWhen I run the following command, it does show it's not there.\r\n```\r\n$ sudo i2cdetect -y 1\r\n     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f\r\n00:          -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- -- \r\n60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- \r\n70: -- -- -- -- -- -- -- 77     \r\n```\r\nDo I need to change the address in SDL_Pi_WeatherRack.py to point to one of these or is something else the issue?\r\n"},"comment":{"url":"https://api.github.com/repos/switchdoclabs/RaspberryPi-WeatherPiArduinoV2/issues/comments/224438068","html_url":"https://github.com/switchdoclabs/RaspberryPi-WeatherPiArduinoV2/issues/2#issuecomment-224438068","issue_url":"https://api.github.com/repos/switchdoclabs/RaspberryPi-WeatherPiArduinoV2/issues/2","id":224438068,"user":{"login":"ltdenard","id":2850858,"avatar_url":"https://avatars.githubusercontent.com/u/2850858?v=3","gravatar_id":"","url":"https://api.github.com/users/ltdenard","html_url":"https://github.com/ltdenard","followers_url":"https://api.github.com/users/ltdenard/followers","following_url":"https://api.github.com/users/ltdenard/following{/other_user}","gists_url":"https://api.github.com/users/ltdenard/gists{/gist_id}","starred_url":"https://api.github.com/users/ltdenard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltdenard/subscriptions","organizations_url":"https://api.github.com/users/ltdenard/orgs","repos_url":"https://api.github.com/users/ltdenard/repos","events_url":"https://api.github.com/users/ltdenard/events{/privacy}","received_events_url":"https://api.github.com/users/ltdenard/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T22:50:13Z","updated_at":"2016-06-07T22:50:13Z","body":"After further googling and documentation reading, I found out the I2C address was trying to connect to a Adafruit ADS1115 device. Now that I have this the device, the script no longer fails; however, it does it properly output data related to the WeatherRack. "}}
{"actor":{"display_login":"ltdenard"}}