hanpa

Get latest Ikea Trådfri firmware versions

Aug 17th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. #!/usr/bin/env python                                                                                                                          
  2. import os
  3. import json
  4. import urllib
  5.  
  6. file = urllib.urlopen("http://fw.ota.homesmart.ikea.net/feed/version_info.json")
  7. data = file.read()
  8. arr  = json.loads(data)
  9.  
  10. for i in arr:
  11.             if 'fw_binary_url' in i:
  12.                         url = i['fw_binary_url']
  13.                         print (url)
Advertisement
Add Comment
Please, Sign In to add comment