{"action":"created","issue":{"url":"https://api.github.com/repos/travisgoodspeed/md380tools/issues/153","repository_url":"https://api.github.com/repos/travisgoodspeed/md380tools","labels_url":"https://api.github.com/repos/travisgoodspeed/md380tools/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/travisgoodspeed/md380tools/issues/153/comments","events_url":"https://api.github.com/repos/travisgoodspeed/md380tools/issues/153/events","html_url":"https://github.com/travisgoodspeed/md380tools/pull/153","id":161593141,"number":153,"title":"First iteration of improved firmware downloader/unpacker makefile","user":{"login":"d235j","id":44988,"avatar_url":"https://avatars.githubusercontent.com/u/44988?v=3","gravatar_id":"","url":"https://api.github.com/users/d235j","html_url":"https://github.com/d235j","followers_url":"https://api.github.com/users/d235j/followers","following_url":"https://api.github.com/users/d235j/following{/other_user}","gists_url":"https://api.github.com/users/d235j/gists{/gist_id}","starred_url":"https://api.github.com/users/d235j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d235j/subscriptions","organizations_url":"https://api.github.com/users/d235j/orgs","repos_url":"https://api.github.com/users/d235j/repos","events_url":"https://api.github.com/users/d235j/events{/privacy}","received_events_url":"https://api.github.com/users/d235j/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-22T04:48:45Z","updated_at":"2016-06-22T19:14:35Z","closed_at":"2016-06-22T15:04:08Z","pull_request":{"url":"https://api.github.com/repos/travisgoodspeed/md380tools/pulls/153","html_url":"https://github.com/travisgoodspeed/md380tools/pull/153","diff_url":"https://github.com/travisgoodspeed/md380tools/pull/153.diff","patch_url":"https://github.com/travisgoodspeed/md380tools/pull/153.patch"},"body":"This updates the firmware downloader to\r\n- download firmware images from archive.org, as VA3XPR has started requiring newsletter subscription\r\n- download all versions of the firmware images\r\n- unpack all versions of the firmware\r\n- automatically unwrap all versions of the firmware\r\n- only delete non-downloaded files during a normal \"make clean\", to prevent accidental loss of data\r\n\r\nIt also updates the 2.032 patcher to look in the new location for the firmware image.\r\n\r\nA Phase 2 would provide a more generalized firmware download and unpack Makefile, probably pulling file information (locations, paths inside the zip, firmware checksums) from a text file listing this information."},"comment":{"url":"https://api.github.com/repos/travisgoodspeed/md380tools/issues/comments/227847895","html_url":"https://github.com/travisgoodspeed/md380tools/pull/153#issuecomment-227847895","issue_url":"https://api.github.com/repos/travisgoodspeed/md380tools/issues/153","id":227847895,"user":{"login":"bilbolodz","id":4696144,"avatar_url":"https://avatars.githubusercontent.com/u/4696144?v=3","gravatar_id":"","url":"https://api.github.com/users/bilbolodz","html_url":"https://github.com/bilbolodz","followers_url":"https://api.github.com/users/bilbolodz/followers","following_url":"https://api.github.com/users/bilbolodz/following{/other_user}","gists_url":"https://api.github.com/users/bilbolodz/gists{/gist_id}","starred_url":"https://api.github.com/users/bilbolodz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bilbolodz/subscriptions","organizations_url":"https://api.github.com/users/bilbolodz/orgs","repos_url":"https://api.github.com/users/bilbolodz/repos","events_url":"https://api.github.com/users/bilbolodz/events{/privacy}","received_events_url":"https://api.github.com/users/bilbolodz/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T19:14:35Z","updated_at":"2016-06-22T19:14:35Z","body":"Not working:\r\n\r\nbilbo@bilbo-Latitude-E6520:~/robota/md380tools$ make\r\ncd firmware && make all\r\nmake[1]: Wejście do katalogu '/home/bilbo/robota/md380tools/firmware'\r\nwhich unzip >>/dev/null #Check that we have unzip\r\nunzip -p dl/D002.022.zip 'TYT-MD-380-Firmware-Upgrade/Upgraded software for newest version.bin' >bin/D002.022.bin\r\ndu -k bin/D002.022.bin | grep 980 || rm -f bin/D002.022.bin\r\nwhich unzip >>/dev/null #Check that we have unzip\r\nunzip -p dl/D002.025.zip 'MD-380-D2/MD-380-D2.25.bin' >bin/D002.025.bin\r\ndu -k bin/D002.025.bin | grep 972 || rm -f bin/D002.025.bin\r\nwhich unzip >>/dev/null #Check that we have unzip\r\nunzip -p dl/D002.026.zip 'TYT-MD-380-Firmware-D002-2/MD-380-D2.26.bin' >bin/D002.026.bin\r\ndu -k bin/D002.026.bin | grep 972 || rm -f bin/D002.026.bin\r\nwhich unzip >>/dev/null #Check that we have unzip\r\nunzip -p dl/D002.030.zip 'MD-380-Firmware-v2/MD-380-D2.30.bin' >bin/D002.030.bin\r\ndu -k bin/D002.030.bin | grep 972 || rm -f bin/D002.030.bin\r\nwhich unzip >>/dev/null #Check that we have unzip\r\nunzip -p dl/D002.032.zip 'Firmware 2.32/MD-380-D2.32(AD).bin' >bin/D002.032.bin\r\ndu -k bin/D002.032.bin | grep 972 || rm -f bin/D002.032.bin\r\nunzip -p dl/D002.034.zip 'TYT-MD380-FW-2-34/MD-380-D2.34.bin' >bin/D002.034.bin\r\ndu -k bin/D002.034.bin | grep 972 || rm -f bin/D002.034.bin\r\nunzip -p dl/D003.008.zip 'D003.008.bin' >bin/D003.008.bin\r\ndu -k bin/D003.008.bin | grep 976 || rm -f bin/D003.008.bin\r\ncp dl/D013.009.bin bin/D013.009.bin\r\n../md380-fw --unwrap bin/D002.022.bin unwrapped/D002.022.img\r\nDEBUG: reading \"bin/D002.022.bin\"\r\nTraceback (most recent call last):\r\n  File \"../md380-fw\", line 203, in <module>\r\n    main()\r\n  File \"../md380-fw\", line 167, in main\r\n    with open(args.input[0], 'rb') as f:\r\nIOError: [Errno 2] No such file or directory: 'bin/D002.022.bin'\r\n\r\n"}}
{"actor":{"display_login":"bilbolodz"}}