The interactions between antiferromagnetism, tetrahedral sites and electron-phonon coupling in FeSe1-xTex and FeSe/SrTiO3