When you're after the weights for
\begin{equation}
\int_{-1}^1\, f(x)\, dx
\approx
w_{-2}f(-0.8)
+ w_{-1}f(-0.4)
+ w_{0}f(0)
+ w_{1}f(0.4)
+ w_{2}f(0.8)
\end{equation}
a pretty common strategy, but not the only one, is to require the rule to be exact for polynomials of a certain degree. If that's the case it's natural to choose symmetric weights, $w_{-2} = w_2$, $w_{-1} = w_1$ and to require exactness for constants, and
$x$, $x^2$, $x^3$, $x^4$, $x^5$. The symmetric weights will ensure exactness for $x$, $x^3$, and $x^5$, so you're left with
picking $w_0, w_1, w_2$ so that
\begin{align}
2 &= w_2 + w_1 + w_0 + w_1 + w_2 \\
2/3 &= w_2\cdot(-0.8)^2 + w_1\cdot(-0.4)^2 + w_0\cdot(0)^2 + w_1\cdot(0.4)^2 + w_2\cdot(0.8)^2 \\
2/5 &= w_2\cdot(-0.8)^4 + w_1\cdot(-0.4)^4 + w_0\cdot(0)^4 + w_1\cdot(0.4)^4 + w_2\cdot(0.8)^4.
\end{align}
I get
\begin{align}
w_0 & =0.697916666666667, \\
w_1 &= 0.173611111111111, \\
w_2 &= 0.477430555555556.
\end{align}
== ADDED ==
As a check, the rule above gives $\int_{-1}^1\, e^x\,dx \approx 2.35035\dots$, a relative error of $0.00002$.