As shown in this answer, the only rational values of $\cos\left(\frac pq\pi\right)$ for integer $p$ and $q$, are $\{-1,-\frac12,0,\frac12,1\}$. Thus, to get a rational cosine for rational degree angles we need an angle of $0^\circ$, $60^\circ$, $90^\circ$, or $120^\circ$ mod $180^\circ$
I have translated an article I posted on sci.math on what I called the skew Pythagorean triples.
Skew $\mathbf{-\frac12}$ Pythagorean Triples
Suppose that $a$, $b$, and $c$ are coprime positive integers so that
$$
a^2+ab+b^2=c^2\tag{1}
$$
Note that a triangle with these sides is obtuse and the cosine of the angle opposite $c$ is $-\frac12$. Therefore, let us call $(a,b,c)$ a skew $-\frac12$ Pythagorean triple.
Since $a$, $b$, and $c$ are coprime, at least one of $a$ or $b$ must be odd. Let
us assume that $a$ is odd. If $b$ is odd, then $c^2$, being the sum of three
odd numbers in $(1)$, is odd. If $b$ is even, then $c^2$, being the sum of
one odd and two even numbers in $(1)$, is odd. Thus, $c$ is odd.
Since $a^2\equiv c^2\equiv1\pmod{8}$, $(a+b)b=ab + b^2\equiv0\pmod{8}$ by $(1)$. If $b$ is odd, then $a+b\equiv0\pmod{8}$. If $b$ is even, then $a+b$ is odd and $b\equiv0\pmod{8}$.
Therefore, we have two cases: $a$ and $b$ are both odd and $8$ divides $a+b$, or
one is odd and $8$ divides the other.
Necessary Condition
Equation $(1)$ is equivalent to
$$
3a^2=(2c+2b+a)(2c-2b-a)\tag{2}
$$
Let $d=\gcd(2c+2b+a,2c-2b-a)$. Then by $(2)$, we have $d^2\mid3a^2$; therefore,
we also have
$$
\begin{array}{lr}
d\mid a&\qquad&\because d^2\mid3a^2\\
d\mid 4b&\qquad&\because4b=(2c+2b+a)-(2c-2b-a)-2a\\
d\mid 4c&\qquad&\because4c=(2c+2b+a)+(2c-2b-a)
\end{array}
$$
Thus, $d\mid\gcd(a,4b,4c)$. If $a$ is odd, $\gcd(a,4b,4c)=1$; therefore, $d=1$.
If $a\equiv0\pmod{8}$, then $\gcd(a,4b,4c)=4$. Furthermore, both $b$ and $c$ are
odd, so $4\mid2c+2b+a$ and $4\mid2c-2b-a$. Therefore, $d=4$. Notice that this
means that $3$ divides only one of the factors in $(2)$, and it divides that
factor an odd number of times.
For any coprime triple satisfying $(1)$, $(2)$ and the reasoning above says
that $3a^2=3m^2n^2$ where $3$ does not divide $n$ and either $mn$ is odd and $gcd(m,n)=1$ ($a$ is odd), or $8$ divides $mn$ and $\gcd(m,n) = 2$ ($8$ divides $a$), and furthermore, $3m^2+n^2=4c$ and $|3m^2-n^2|=4b+2a$.
Therefore, for any coprime triple $(a,b,c)$ satisfying $(1)$, there exist $m$
and $n$ so that $3$ does not divide $n$ and either $mn$ is odd and $\gcd(m,n)=1$,
or $8$ divides $mn$ and $\gcd(m,n) = 2$, so that
$$
\begin{align}
a&=mn\tag{3a}\\
b&=\frac{|3m^2-n^2|-2mn}{4}\tag{3b}\\
c&=\frac{3m^2+n^2}{4}\tag{3c}
\end{align}
$$
Conjugate Pairs
Since $3m^2-n^2-2mn=(3m+n)(m-n)$ and $n^2-3m^2-2mn=(n-3m)(n+m)$, to make
$b > 0$ in $(3b)$, we need either $m\gt n$ or $n\gt 3m$. It turns out that for a
pair $(m,n)$ where $m\gt n$, there is a pair $(m',n')$ where $n'\gt3m'$ for which
$(a',b',c')=(b,a,c)$. In particular,
$$
(m',n')=(m,n)\frac12\left[\begin{array}{r}1&3\\-1&1\end{array}\right]\tag{4a}
$$
and
$$
(m,n)=(m',n')\frac12\left[\begin{array}{r}1&-3\\1&1\end{array}\right]\tag{4b}
$$
Thus, we only need consider one case or the other, for example, $m\gt n$,
and then we can remove the absolute value from $(3b)$.
Thus, we have shown
Theorem 1:
All coprime triples $(a,b,c)$ so that $a^2+ab+b^2=c^2$ can be
enumerated, without duplication, by taking two positive integers
$m\gt n$, where $3$ does not divide $n$, and either $mn$ is odd and
$\gcd(m,n)=1$, or $8$ divides $mn$ and $\gcd(m,n)=2$, and by setting
$$
\begin{align}
a&=mn\tag{5a}\\
b&=\frac{(3m+n)(m-n)}{4}\tag{5b}\\
c&=\frac{3m^2+n^2}{4}\tag{5c}\\
\end{align}
$$
Note that $(4)$ and $(5)$ justify the claim above that for $n'\gt 3m'$,
$$
\begin{align}
a'&=b=n'm'\tag{6a}\\
b'&=a=\frac{(n'+m')(n'-3m')}{4}\tag{6b}\\
c'&=c=\frac{n'^2+3m'^2}{4}\tag{6c}
\end{align}
$$
Skew $\mathbf{\frac12}$ Pythagorean Triples
By the same reasoning as above, a triple $(a,b,c)$ which satisfies
$$
a^2-ab+b^2=c^2\tag{7}
$$
is a skew $\frac12$ Pythagorean triple. A triangle whose sides satisfy $(7)$ is
not necessarily obtuse or acute; such triangles come in conjugate pairs,
one acute and one obtuse. Let $(a,b,c)$ satisfy $(7)$ with $a\gt b$, then the
triple $(a,a-b,c)$ also satisfies $(7)$. Furthermore, if $2b\gt a\gt b$, then
$(a,b,c)$ is acute and $(a,a-b,c)$ is obtuse. If $a\gt2b$, then $(a,b,c)$ is
obtuse and $(a,a-b,c)$ is acute.
A Triplet of Triples
If $(a,b,c)$ satisfies $(1)$ with $a\gt b$, then both $(a+b,b,c)$ and $(a,a+b,c)$
satisfy $(7)$; $(a+b,b,c)$ is obtuse and $(a,a+b,c)$ is acute. This is the
conjugate pair of triples mentioned above.
Furthermore, if $(a,b,c)$ satisfies $(7)$ with $a\gt b$, then not only does
$(a,a-b,c)$ satisfy $(7)$ as mentioned above, but $(a-b,b,c)$ satisfies $(1)$.
Therefore, each skew $-\frac12$ triangle is associated with two conjugate
skew $\frac12$ triangles, one obtuse and one acute.
Thus, we have
Theorem 2:
All coprime skew $\frac12$ Pythagorean triples can be enumerated without duplication by
$$
(a+b,b,c)\tag{8a}
$$
which is acute if $a\lt b$ and obtuse if $a\gt b$, and
$$
(a,a+b,c)\tag{8b}
$$
which is obtuse if $a\lt b$ and acute if $a\gt b$, where $(a,b,c)$ is a skew $-\frac12$ Pythagorean triple as enumerated in Theorem 1.