Create temp file and update spotweb

Thanks to nightspirit81 for the code