오늘하루/음악 2016. 6. 29. 21:22

2016년 6월 Last FM

6월의 음악. 


last fm 도 벌써 누적 10만이 다되어 간다. 

물론 나의 모든 음악데이터가 싱크된건 아니라 아쉽긴하지만 데이터가 그럭저럭 많이 쌓이다보니 이제 추천 리스트가 들을만해졌다랄까

추천 방식은 내가 좋아하는 음악이나 아티스트랑 비슷한 새로운 거, 예전엔 많이 듣다가 요새 뜸해진거, 좋아하는 아티스트인데 새로 나와서 아직 안들어본 곡을 다양하게 추천해준다.

듣다가 맘에 안들면 넘어가기 누르면 그만. 데이터에 누적이 안되서 조음.

아무튼 점점 더 좋아지길




'오늘하루 > 음악' 카테고리의 다른 글

2017년 12월 Soundcloud  (0) 2017.12.14
2017년 12월 Last FM  (0) 2017.12.10
2016년 3월 Last FM  (0) 2016.03.31
2015년 12월 Last FM  (0) 2016.01.05
2015년 11월 지니뮤직  (1) 2015.11.16
스터디/Processing 2016. 4. 14. 22:48

Openweather API


1. openweathermap API에서 현재 날씨 불러오기


도시 이름으로 불러오기

도시 ID로 불러오기

위치값으로 불러오기
http://api.openweathermap.org/data/2.5/weather?lat=36.321388&lon=127.419724

우편주소로 불러오기
http://api.openweathermap.org/data/2.5/weather?zip=305701,kr

디폴트 모드는 javascript를 위한 JSON이므로 주소 뒤에 xml로 불러오는 부분 추가
&mode=xml

화씨를 섭씨로 바꾸는 부분
&units=metric


대전 현재 날씨


+ 160428  추가
 APIkey 를 별도로 신청해서 기입해야하는 방식으로 바뀜
http://openweathermap.org/appid#get
가입후 무료 API key 신청 후 할당받은 키를 코드 맨 뒤에  &APPID=12345838 이런 식으로 추가해주면 됨 

2. 날씨 예보

오늘 예보 : weather부분을 forecast/daily 로 교체

5일 예보 : weather부분을 forecast 로 교체

3. Parameters:
  • city
    • city.id City ID
    • city.name City name
    • city.coord
      • city.coord.lon City geo location, longitude
      • city.coord.lat City geo location, latitude
    • city.country Country code (GB, JP etc.)
    • city.sun
      • city.sun.rise Sunrise time
      • city.sun.set Sunset time
  • temperature
    • temperature.value Temperature
    • temperature.min Minimum temperature at the moment of calculation. This is deviation from 'temp' that is possible for large cities and megalopolises geographically expanded (use these parameter optionally).
    • temperature.max Maximum temperature at the moment of calculation. This is deviation from 'temp' that is possible for large cities and megalopolises geographically expanded (use these parameter optionally).
    • temperature.unit Unit of measurements. Possilbe valure is Celsius, Kelvin, Fahrenheit.
  • humidity
    • humidity.value Humidity value
    • humidity.unit %
  • pressure
    • pressure.value Pressure value
    • pressure.unit hPa
  • wind
    • wind.speed
    • wind.direction
      • wind.direction.value Wind direction, degrees (meteorological)
      • wind.direction.code Code of the wind direction. Possilbe value is WSW, N, S etc.
      • wind.direction.name Full name of the wind direction.
  • clouds
    • clouds.value Cloudiness
    • clouds.name Name of the cloudiness
  • visibility
    • visibility.value Visibility, meter
  • precipitation
    • precipitation.value Precipitation, mm
    • precipitation.mode Possible values are 'no", name of weather phenomena as 'rain', 'snow'
  • weather
    • weather.number Weather condition id
    • weather.value Weather condition name
    • weather.icon Weather icon id
  • lastupdate
    • lastupdate.value Last time when data was updated


4. 주요 도시

Daegu
1835329




Seoul
1835848

Daejeon
1835235


오늘하루/음악 2016. 3. 31. 02:52

2016년 3월 Last FM








몇 달 만에 아이폰 리스트 교체. 


'오늘하루 > 음악' 카테고리의 다른 글

2017년 12월 Last FM  (0) 2017.12.10
2016년 6월 Last FM  (1) 2016.06.29
2015년 12월 Last FM  (0) 2016.01.05
2015년 11월 지니뮤직  (1) 2015.11.16
2015년 7월 Last FM  (0) 2015.07.13